From fbc32b2e2d51c32fe6cfdbfc08f4d49ded3d8eeb Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Thu, 21 Aug 2014 17:13:51 -0700 Subject: [PATCH] Bug 981218 - Stop using a default compartment object in the IndexedDB and ProxyAutoConfig JSRuntimes. r=bobowen --- dom/indexedDB/IDBObjectStore.cpp | 1 - netwerk/base/src/ProxyAutoConfig.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/dom/indexedDB/IDBObjectStore.cpp b/dom/indexedDB/IDBObjectStore.cpp index 912f6e054540..554d64c40de4 100644 --- a/dom/indexedDB/IDBObjectStore.cpp +++ b/dom/indexedDB/IDBObjectStore.cpp @@ -650,7 +650,6 @@ class ThreadLocalJSRuntime JS::FireOnNewGlobalHook); NS_ENSURE_TRUE(mGlobal, NS_ERROR_OUT_OF_MEMORY); - js::SetDefaultObjectForContext(mContext, mGlobal); return NS_OK; } diff --git a/netwerk/base/src/ProxyAutoConfig.cpp b/netwerk/base/src/ProxyAutoConfig.cpp index e121415f52c6..11b56aacc1f5 100644 --- a/netwerk/base/src/ProxyAutoConfig.cpp +++ b/netwerk/base/src/ProxyAutoConfig.cpp @@ -581,7 +581,6 @@ private: JS::Rooted global(mContext, mGlobal); JSAutoCompartment ac(mContext, global); - js::SetDefaultObjectForContext(mContext, global); JS_InitStandardClasses(mContext, global); JS_SetErrorReporter(mContext, PACErrorReporter);