Fix for bug 803872 (Remove remaining references to the dom.new_bindings pref). r=Ms2ger.

This commit is contained in:
Peter Van der Beken 2012-10-21 13:06:55 +02:00
parent a185f26b64
commit ea23f44eff
3 changed files with 0 additions and 16 deletions

View File

@ -2232,7 +2232,6 @@ CompartmentNameCallback(JSRuntime *rt, JSCompartment *comp,
memcpy(buf, name.get(), name.Length() + 1);
}
bool XPCJSRuntime::gNewDOMBindingsEnabled;
bool XPCJSRuntime::gExperimentalBindingsEnabled;
bool PreserveWrapper(JSContext *cx, JSObject *obj)
@ -2290,8 +2289,6 @@ XPCJSRuntime::XPCJSRuntime(nsXPConnect* aXPConnect)
#endif
DOM_InitInterfaces();
Preferences::AddBoolVarCache(&gNewDOMBindingsEnabled, "dom.new_bindings",
false);
Preferences::AddBoolVarCache(&gExperimentalBindingsEnabled,
"dom.experimental_bindings",
false);

View File

@ -115,7 +115,6 @@ XPCWrappedNativeScope::XPCWrappedNativeScope(XPCCallContext& ccx,
mPrototypeJSObject(nullptr),
mPrototypeNoHelper(nullptr),
mScriptObjectPrincipal(nullptr),
mNewDOMBindingsEnabled(ccx.GetRuntime()->NewDOMBindingsEnabled()),
mExperimentalBindingsEnabled(ccx.GetRuntime()->ExperimentalBindingsEnabled())
{
// add ourselves to the scopes list

View File

@ -914,11 +914,6 @@ public:
static void ActivityCallback(void *arg, JSBool active);
bool NewDOMBindingsEnabled()
{
return gNewDOMBindingsEnabled;
}
bool ExperimentalBindingsEnabled()
{
return gExperimentalBindingsEnabled;
@ -939,7 +934,6 @@ private:
void ReleaseIncrementally(nsTArray<nsISupports *> &array);
static bool gNewDOMBindingsEnabled;
static bool gExperimentalBindingsEnabled;
static const char* mStrings[IDX_TOTAL_COUNT];
@ -1748,11 +1742,6 @@ public:
}
void TraceDOMPrototypes(JSTracer *trc);
JSBool NewDOMBindingsEnabled()
{
return mNewDOMBindingsEnabled;
}
JSBool ExperimentalBindingsEnabled()
{
return mExperimentalBindingsEnabled;
@ -1798,7 +1787,6 @@ private:
nsDataHashtable<nsDepCharHashKey, JSObject*> mCachedDOMPrototypes;
JSBool mNewDOMBindingsEnabled;
JSBool mExperimentalBindingsEnabled;
};