[webkit-changes] [WebKit/WebKit] d08338: Prevent suspension for extension background pages

Miguel Salinas noreply at github.com
Fri Dec 9 07:52:26 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d08338ef7145c7a3444b67ebdc3c4b72d63cab56
      https://github.com/WebKit/WebKit/commit/d08338ef7145c7a3444b67ebdc3c4b72d63cab56
  Author: Miguel Salinas <miguel_salinas at apple.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M Source/WebKit/UIProcess/ProcessThrottler.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.h

  Log Message:
  -----------
  Prevent suspension for extension background pages
https://bugs.webkit.org/show_bug.cgi?id=247707
rdar://problem/102167829

Reviewed by Chris Dumez.

Web content processes for web extension background pages are currently
being fully suspended when the WebKit:Suspended assertion is disabled.
We should disable full suspension when
_setPageVisibilityBasedProcessSuppressionEnabled is set to false as in
web extension background pages.

* Source/WebKit/UIProcess/ProcessThrottler.cpp:
(WebKit::ProcessThrottler::setShouldTakeSuspendedAssertion):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::shouldTakeSuspendedAssertion):
(WebKit::WebProcessProxy::addExistingWebPage):
(WebKit::WebProcessProxy::didFinishLaunching):
* Source/WebKit/UIProcess/WebProcessProxy.h:

Canonical link: https://commits.webkit.org/257628@main




More information about the webkit-changes mailing list