diff --git a/dom/indexedDB/IndexedDatabaseManager.cpp b/dom/indexedDB/IndexedDatabaseManager.cpp index 8f92fb0279c..caffaf18c51 100644 --- a/dom/indexedDB/IndexedDatabaseManager.cpp +++ b/dom/indexedDB/IndexedDatabaseManager.cpp @@ -343,7 +343,8 @@ IndexedDatabaseManager::FireWindowOnError(nsPIDOMWindow* aOwner, error->GetName(errorName); } - ErrorEventInit init; + ThreadsafeAutoJSContext cx; + RootedDictionary init(cx); request->FillScriptErrorEvent(init); init.mMessage = errorName;