[webkit-changes] [WebKit/WebKit] ec4101: Take a foreground activity assertion for Web Exten...
Timothy Hatcher
noreply at github.com
Wed Oct 30 15:02:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ec4101c7ba77986e1c0d4919df38a3e896ff2e3c
https://github.com/WebKit/WebKit/commit/ec4101c7ba77986e1c0d4919df38a3e896ff2e3c
Author: Timothy Hatcher <timothy at apple.com>
Date: 2024-10-30 (Wed, 30 Oct 2024)
Changed paths:
M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm
M Source/WebKit/UIProcess/Extensions/WebExtensionContext.h
Log Message:
-----------
Take a foreground activity assertion for Web Extension background content.
https://webkit.org/b/282346
rdar://problem/138936474
Reviewed by Brian Weinstein.
We need to take a foreground activity assertion to prevent the background web view process
from being suspended and not responding to events.
Refactor the inspector extension maps into one, since we need to track an activity there too,
and having a single map is more maintainable.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::unload):
(WebKit::WebExtensionContext::getCurrentTab const):
(WebKit::WebExtensionContext::inspectorBackgroundPageIdentifiers const):
(WebKit::WebExtensionContext::inspectorPageIdentifiers const):
(WebKit::WebExtensionContext::loadBackgroundWebView):
(WebKit::WebExtensionContext::unloadBackgroundWebView):
(WebKit::WebExtensionContext::unloadBackgroundContentIfPossible):
(WebKit::WebExtensionContext::loadedInspectors const):
(WebKit::WebExtensionContext::inspectorExtension const):
(WebKit::WebExtensionContext::inspector const):
(WebKit::WebExtensionContext::processes const):
(WebKit::WebExtensionContext::isInspectorBackgroundPage const):
(WebKit::WebExtensionContext::loadInspectorBackgroundPage):
(WebKit::WebExtensionContext::unloadInspectorBackgroundPage):
* Source/WebKit/UIProcess/Extensions/WebExtensionContext.h:
Canonical link: https://commits.webkit.org/285928@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