Bug 355430 - Fix rooting issue on CLOSED TREE

This commit is contained in:
Tom Schuster 2014-03-20 18:48:43 +01:00
parent 32435b8674
commit 15c66feed1

View File

@ -343,7 +343,8 @@ IndexedDatabaseManager::FireWindowOnError(nsPIDOMWindow* aOwner,
error->GetName(errorName);
}
ErrorEventInit init;
ThreadsafeAutoJSContext cx;
RootedDictionary<ErrorEventInit> init(cx);
request->FillScriptErrorEvent(init);
init.mMessage = errorName;