Bug 981218 - Remove default compartment objects. r=luke

\o/
This commit is contained in:
Bobby Holley
2014-08-21 17:13:51 -07:00
parent c04fe41556
commit 5e56e20a5f
14 changed files with 2 additions and 103 deletions

View File

@@ -741,8 +741,7 @@ nsJSContext::nsJSContext(bool aGCOnDestruction,
::JS_SetContextPrivate(mContext, static_cast<nsIScriptContext *>(this));
// Make sure the new context gets the default context options
JS::ContextOptionsRef(mContext).setPrivateIsNSISupports(true)
.setNoDefaultCompartmentObject(true);
JS::ContextOptionsRef(mContext).setPrivateIsNSISupports(true);
// Watch for the JS boolean options
Preferences::RegisterCallback(JSOptionChangedCallback,