Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8ec02226e267b1fc36c96ff7f6ae2bee11d90fca
https://github.com/WebKit/WebKit/commit/8ec02226e267b1fc36c96ff7f6ae2bee11d90fca
Author: Chris Dumez <[email protected]>
Date: 2026-07-01 (Wed, 01 Jul 2026)
Changed paths:
M Source/WebKit/UIProcess/Cocoa/NavigationState.mm
Log Message:
-----------
Use-after-free in WebPageProxy::sendToWebPage from off-main-thread
WKMarketplaceKit completion (interceptMarketplaceKitNavigation)
https://bugs.webkit.org/show_bug.cgi?id=314700
rdar://176819800
Reviewed by Per Arne Vollan.
The block passed to `[WKMarketplaceKit requestAppInstallationWithTopOrigin:]`
may get called on a non-main thread, causing us to call addConsoleError()
on that thread and crash since we expect `addConsoleError()` to always
run on the main thread.
Address the issue by calling `ensureOnMainRunLoop()` to get back to the
main thread before calling `addConsoleError()`.
* Source/WebKit/UIProcess/Cocoa/NavigationState.mm:
(WebKit::interceptMarketplaceKitNavigation):
Originally-landed-as: 305413.897@safari-7624-branch (9911c5cf48d3).
rdar://180436028
Canonical link: https://commits.webkit.org/316299@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications