Bug 824581 - RemoteOpenFileChild::AsyncRemoteFileOpen crashes on Windows/Mac r=jduell

This commit is contained in:
Bobby Holley 2012-12-26 11:01:00 -08:00
parent 716d31ff14
commit 1bb06209da
2 changed files with 4 additions and 6 deletions

View File

@ -4,7 +4,7 @@ tail =
[test_jarchannel.js]
[test_jarchannel_e10s.js]
skip-if = os == "mac" || os == "win"
skip-if = os == "mac"
[test_bug278262.js]
[test_bug333423.js]
[test_bug336691.js]

View File

@ -108,13 +108,11 @@ RemoteOpenFileChild::AsyncRemoteFileOpen(int32_t aFlags,
}
#if defined(XP_WIN) || defined(MOZ_WIDGET_COCOA)
// we do nothing on these platforms: we'll just open file locally when asked
// for NSPR handle
mListener->OnRemoteFileOpenComplete(NS_OK);
mListener = nullptr;
// Windows/OSX desktop builds skip remoting, and just open file in child
// process when asked for NSPR handle
aListener->OnRemoteFileOpenComplete(NS_OK);
mAsyncOpenCalled = true;
return NS_OK;
#else
URIParams uri;
SerializeURI(mURI, uri);