Changeset 271887 in webkit
- Timestamp:
- Jan 26, 2021, 10:52:40 AM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r271885 r271887 1 2021-01-26 Alex Christensen <achristensen@webkit.org> 2 3 Revert part of r271493 4 https://bugs.webkit.org/show_bug.cgi?id=220066 5 <rdar://problem/73615999> 6 7 We have an internal app that calls registerSchemeForCustomProtocol on a non-main thread before WebKit initializes. 8 While this is a problem, we have to not crash on launch until they fix this. 9 10 * UIProcess/API/Cocoa/WKBrowsingContextController.mm: 11 (+[WKBrowsingContextController registerSchemeForCustomProtocol:]): 12 (+[WKBrowsingContextController unregisterSchemeForCustomProtocol:]): 13 1 14 2021-01-26 Per Arne <pvollan@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKBrowsingContextController.mm
r271493 r271887 106 106 WebKit::WebProcessPool::registerGlobalURLSchemeAsHavingCustomProtocolHandlers(scheme); 107 107 else { 108 RunLoop::main().dispatch([scheme = retainPtr(scheme)] { 108 // This cannot be RunLoop::main().dispatch because it is called before the main runloop is initialized. See rdar://problem/73615999 109 dispatch_async(dispatch_get_main_queue(), makeBlockPtr([scheme = retainPtr(scheme)] { 109 110 WebKit::WebProcessPool::registerGlobalURLSchemeAsHavingCustomProtocolHandlers(scheme.get()); 110 }) ;111 }).get()); 111 112 } 112 113 } … … 117 118 WebKit::WebProcessPool::unregisterGlobalURLSchemeAsHavingCustomProtocolHandlers(scheme); 118 119 else { 119 RunLoop::main().dispatch([scheme = retainPtr(scheme)] { 120 // This cannot be RunLoop::main().dispatch because it is called before the main runloop is initialized. See rdar://problem/73615999 121 dispatch_async(dispatch_get_main_queue(), makeBlockPtr([scheme = retainPtr(scheme)] { 120 122 WebKit::WebProcessPool::unregisterGlobalURLSchemeAsHavingCustomProtocolHandlers(scheme.get()); 121 }) ;123 }).get()); 122 124 } 123 125 }
Note:
See TracChangeset
for help on using the changeset viewer.