[webkit-changes] [WebKit/WebKit] 5ac28a: Invalidate extension's reference to database after...
kiaraarose
noreply at github.com
Fri Mar 15 14:57:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5ac28a0be1efce40c52c3f3a87aec2f2ebed6fe9
https://github.com/WebKit/WebKit/commit/5ac28a0be1efce40c52c3f3a87aec2f2ebed6fe9
Author: Kiara Rose <kiara_rose at apple.com>
Date: 2024-03-15 (Fri, 15 Mar 2024)
Changed paths:
M Source/WebKit/Platform/spi/Cocoa/FoundationSPI.h
M Source/WebKit/UIProcess/API/Cocoa/_WKWebExtensionControllerConfigurationPrivate.h
M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionControllerCocoa.mm
M Source/WebKit/UIProcess/Extensions/WebExtensionController.cpp
M Source/WebKit/UIProcess/Extensions/WebExtensionController.h
Log Message:
-----------
Invalidate extension's reference to database after it's been deleted.
https://bugs.webkit.org/show_bug.cgi?id=271020
rdar://124037961
Reviewed by Sihui Liu and Timothy Hatcher.
When an extension's SQL database is deleted, send a notification to the WebExtensionController to
invalidate the extension context's reference to the database. A distrubuted notification here
is important since this deletion may happen from a process where the WebExtensionContext isn't
loaded.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionControllerCocoa.mm:
(-[_WKWebExtensionControllerHelper initWithWebExtensionController:]):
(-[_WKWebExtensionControllerHelper _didDeleteLocalStorage:]):
(WebKit::WebExtensionController::createWebExtensionControllerHelper):
(WebKit::WebExtensionController::removeData):
* Source/WebKit/UIProcess/Extensions/WebExtensionController.cpp:
(WebKit::WebExtensionController::WebExtensionController):
* Source/WebKit/UIProcess/Extensions/WebExtensionController.h:
Canonical link: https://commits.webkit.org/276202@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