-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebExtensionControllerProxy ASSERT in WebProcess when loading a page.
https://webkit.org/b/268511 rdar://problem/122051926 Reviewed by Jeff Miller. The check for HashMap `contains()` ASSERTs return `true`, even though the WeakPtr is null. Check if the pointer is null instead of just contained in the map. Change the `WeakPtr` to be `WeakRef`, to better signal that the map should be only non-null references. Also be explicit about the smart pointers. * Source/WebKit/UIProcess/Extensions/WebExtensionContext.cpp: (WebKit::webExtensionContexts): (WebKit::WebExtensionContext::get): (WebKit::WebExtensionContext::WebExtensionContext): * Source/WebKit/UIProcess/Extensions/WebExtensionController.cpp: (WebKit::webExtensionControllers): (WebKit::WebExtensionController::get): (WebKit::WebExtensionController::WebExtensionController): * Source/WebKit/WebProcess/Extensions/Cocoa/WebExtensionContextProxyCocoa.mm: (WebKit::webExtensionContextProxies): (WebKit::WebExtensionContextProxy::get): (WebKit::WebExtensionContextProxy::WebExtensionContextProxy): (WebKit::WebExtensionContextProxy::~WebExtensionContextProxy): (WebKit::WebExtensionContextProxy::getOrCreate): * Source/WebKit/WebProcess/Extensions/WebExtensionControllerProxy.cpp: (WebKit::webExtensionControllerProxies): (WebKit::WebExtensionControllerProxy::get): (WebKit::WebExtensionControllerProxy::getOrCreate): (WebKit::WebExtensionControllerProxy::WebExtensionControllerProxy): (WebKit::WebExtensionControllerProxy::~WebExtensionControllerProxy): Canonical link: https://commits.webkit.org/273880@main
- Loading branch information
Showing
4 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters