Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b975cb59e092d8b7f82dc9d32647f9d6eac6e43e
https://github.com/WebKit/WebKit/commit/b975cb59e092d8b7f82dc9d32647f9d6eac6e43e
Author: Timothy Hatcher <[email protected]>
Date: 2025-02-24 (Mon, 24 Feb 2025)
Changed paths:
M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm
Log Message:
-----------
Crash at WTF::HashTable<WebKit::WebExtensionEventListenerType>
https://webkit.org/b/288412
rdar://144855270
Reviewed by Brian Weinstein.
An std::initializer_list was stored in a variable and copied into a lambda.
Since copying doesn’t
preserve the backing array, the lambda referenced invalid values after the list
went out of scope.
Recent HashSet release assertions exposed this, causing a crash.
Fix by using multiple initializer lists and constexpr variables.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::resourceLoadDidSendRequest):
(WebKit::WebExtensionContext::resourceLoadDidPerformHTTPRedirection):
(WebKit::WebExtensionContext::resourceLoadDidReceiveChallenge):
(WebKit::WebExtensionContext::resourceLoadDidReceiveResponse):
(WebKit::WebExtensionContext::resourceLoadDidCompleteWithError):
Canonical link: https://commits.webkit.org/290998@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes