Change Background freezing to freeze the execution context.
The execution context state was never adjusted when a page was frozen. ContextStateChangedListeners fire when the state of execution context changes. This adds a number of things that are desirable for background tab freezing: - Workers being frozen as well - Mojo channels are appropriately dropped for IPCs while in the frozen state Add PauseExecutionContextOnBackgroundFreeze feature to control this and enable feature experimentally for now. Added a content feature kill switch for this as well. The desire is that bfcache, iframe freezing, sync event calls (window.print()) and background tab freezing all will share the same code paths for task scheduling adjustment. Intent to Implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/KwDF6Eavfek/Qb48J5ceAwAJ BUG=957589 Change-Id: Ic5b94ed971f4fe0883c39039534efd64ffd290f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1588158Reviewed-by:Nasko Oskov <nasko@chromium.org> Reviewed-by:
Shubhie Panicker <panicker@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/master@{#663151}
Showing
Please register or sign in to comment