[webkit-changes] [WebKit/WebKit] c57208: Adopt inactiveSchedulingPolicy for Web Extension b...

Timothy Hatcher noreply at github.com
Tue Oct 17 19:01:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c57208d41ef8e86f8cf6f8412ecc04e25a4e7b1d
      https://github.com/WebKit/WebKit/commit/c57208d41ef8e86f8cf6f8412ecc04e25a4e7b1d
  Author: Timothy Hatcher <timothy at apple.com>
  Date:   2023-10-17 (Tue, 17 Oct 2023)

  Changed paths:
    M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm
    M Source/WebKit/UIProcess/Inspector/mac/WKInspectorViewController.mm

  Log Message:
  -----------
  Adopt inactiveSchedulingPolicy for Web Extension background pages.
https://bugs.webkit.org/show_bug.cgi?id=263287
rdar://problem/117096484

Reviewed by Brian Weinstein, Brent Fulgham and Chris Dumez.

Adopt `_hiddenPageDOMTimerThrottlingEnabled` on all platform, instead of the macOS only `_domTimersThrottlingEnabled`.
Also adopt `inactiveSchedulingPolicy` by setting it to `WKInactiveSchedulingPolicyNone` to prevent runningboard from
suspending the background page and inspector background page.

* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::webViewConfiguration):
* Source/WebKit/UIProcess/Inspector/mac/WKInspectorViewController.mm:
(-[WKInspectorViewController webViewConfiguration]):

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




More information about the webkit-changes mailing list