[webkit-changes] [WebKit/WebKit] 7900c6: Exception in WebKit::WebExtensionTab::processes().
Timothy Hatcher
noreply at github.com
Wed Feb 14 15:59:15 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7900c68de6a3191a59ddff3938d08e3334189187
https://github.com/WebKit/WebKit/commit/7900c68de6a3191a59ddff3938d08e3334189187
Author: Timothy Hatcher <timothy at apple.com>
Date: 2024-02-14 (Wed, 14 Feb 2024)
Changed paths:
M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionTabCocoa.mm
Log Message:
-----------
Exception in WebKit::WebExtensionTab::processes().
https://webkit.org/b/269409
rdar://122974809
Reviewed by Jeff Miller and Brian Weinstein.
When mainWebView() is nil, we need to be careful. Use [NSArray arrayWithObjects:]
instead of [NSArray arrayWithObject:] since that will make a zero item array
if the web view is nil, instead of throwing an exception.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionTabCocoa.mm:
(WebKit::WebExtensionTab::processes const):
Canonical link: https://commits.webkit.org/274669@main
More information about the webkit-changes
mailing list