From: Cheng Zhao Date: Thu, 27 Feb 2014 02:44:45 +0000 (+0800) Subject: Fix crash caused by Protocol::RegisterProtocol. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b386ec40beec4a6779eace1e6704278a5d1e045e;p=electron.git 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. --- diff --git a/browser/api/atom_api_protocol.cc b/browser/api/atom_api_protocol.cc index 1499f38c..7c44f81d 100644 --- a/browser/api/atom_api_protocol.cc +++ b/browser/api/atom_api_protocol.cc @@ -368,11 +368,9 @@ void Protocol::Initialize(v8::Handle 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);