[tbb-commits] [tor-browser/esr24] Bug 958867 - Consistent OwningObject handling in IDBFactory::Create methods. r=bent, a=sledru

mikeperry at torproject.org mikeperry at torproject.org
Fri Aug 29 05:26:37 UTC 2014


commit 1b768e2f4c6ed464264efaef40d7c8efda730ab3
Author: Olli Pettay <Olli.Pettay at helsinki.fi>
Date:   Sun Jan 12 04:45:15 2014 +0200

    Bug 958867 - Consistent OwningObject handling in IDBFactory::Create methods. r=bent, a=sledru
---
 dom/indexedDB/IDBFactory.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/dom/indexedDB/IDBFactory.cpp b/dom/indexedDB/IDBFactory.cpp
index 43a6cc4..1e7b73a 100644
--- a/dom/indexedDB/IDBFactory.cpp
+++ b/dom/indexedDB/IDBFactory.cpp
@@ -133,6 +133,9 @@ IDBFactory::Create(nsPIDOMWindow* aWindow,
   factory->mWindow = aWindow;
   factory->mContentParent = aContentParent;
 
+  NS_HOLD_JS_OBJECTS(factory, IDBFactory);
+  factory->mRootedOwningObject = true;
+
   if (!IndexedDatabaseManager::IsMainProcess()) {
     TabChild* tabChild = GetTabChildFrom(aWindow);
     NS_ENSURE_TRUE(tabChild, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);





More information about the tbb-commits mailing list