[webkit-changes] [WebKit/WebKit] 2e7316: Any early attempt to load the background page shou...

kiaraarose noreply at github.com
Wed Apr 3 16:59:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2e7316e13961cb67eede460d56d8ddffc7e4f2d1
      https://github.com/WebKit/WebKit/commit/2e7316e13961cb67eede460d56d8ddffc7e4f2d1
  Author: Kiara Rose <kiara_rose at apple.com>
  Date:   2024-04-03 (Wed, 03 Apr 2024)

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

  Log Message:
  -----------
  Any early attempt to load the background page should return early
https://bugs.webkit.org/show_bug.cgi?id=272120
rdar://125877776

Reviewed by Brian Weinstein.

We return early for premature background page loads. But we're not doing this after toggling the enabled
state of the extension. To fix this, we should set `m_safeToLoadBackgroundContent` back to false when
the extension unloads, since we use this variable to check if we should return early in
`loadBackgroundWebViewIfNeeded`.

* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::unload):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list