зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1009624 - startup crash in nsXULPrototypeDocument::GetCompilationGlobal() , r=bholley
This commit is contained in:
Родитель
50b8bd17f4
Коммит
65c972d67f
|
@ -2628,7 +2628,7 @@ nsXULPrototypeScript::Compile(JS::SourceBufferHolder& aSrcBuf,
|
|||
nsIOffThreadScriptReceiver *aOffThreadReceiver /* = nullptr */)
|
||||
{
|
||||
// We'll compile the script in the compilation scope.
|
||||
MOZ_ASSERT(aProtoDoc);
|
||||
NS_ENSURE_STATE(aProtoDoc);
|
||||
NS_ENSURE_TRUE(xpc::GetCompilationScope(), NS_ERROR_UNEXPECTED);
|
||||
AutoSafeJSContext cx;
|
||||
JSAutoCompartment ac(cx, xpc::GetCompilationScope());
|
||||
|
|
|
@ -3551,7 +3551,7 @@ XULDocument::OnStreamComplete(nsIStreamLoader* aLoader,
|
|||
|
||||
rv = mCurrentScriptProto->Compile(srcBuf,
|
||||
uri, 1, this,
|
||||
mCurrentPrototype,
|
||||
mMasterPrototype,
|
||||
this);
|
||||
if (NS_SUCCEEDED(rv) && !mCurrentScriptProto->GetScriptObject()) {
|
||||
// We will be notified via OnOffThreadCompileComplete when the
|
||||
|
|
Загрузка…
Ссылка в новой задаче