From 15c66feed1e1873a5f69b3792c485bf963a7dd77 Mon Sep 17 00:00:00 2001 From: Tom Schuster Date: Thu, 20 Mar 2014 18:48:43 +0100 Subject: [PATCH] Bug 355430 - Fix rooting issue on CLOSED TREE --- dom/indexedDB/IndexedDatabaseManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;