mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Fix crash caused by Protocol::RegisterProtocol.
From crash report this exists on OS X too, previously the fix is only available on Linux. However we should remove all calls of protocol things in UI thread in future.
This commit is contained in:
@@ -368,11 +368,9 @@ void Protocol::Initialize(v8::Handle<v8::Object> target) {
|
||||
// Remember the protocol object, used for emitting event later.
|
||||
g_protocol_object.reset(target);
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
// Make sure the job factory has been created.
|
||||
AtomBrowserContext::Get()->url_request_context_getter()->
|
||||
GetURLRequestContext();
|
||||
#endif
|
||||
|
||||
NODE_SET_METHOD(target, "registerProtocol", RegisterProtocol);
|
||||
NODE_SET_METHOD(target, "unregisterProtocol", UnregisterProtocol);
|
||||
|
||||
Reference in New Issue
Block a user