Backed out changeset 97e2ac4449a5 (bug 1115375) for bustage.
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 25 Feb 2015 14:15:10 -0500
changeset 221801 0390c73a827bdf889f0ad96c9f9c769c2c56ffac
parent 221800 74b13082204cf27392d56433f5e05f47efc1974c
child 221802 00fbea97ac0eb9fdd10cd71ec6af36e4bc142164
child 221917 597dca428ab4ede10339f8fc9f5eecaba4e5f081
push id406
push userryanvm@gmail.com
push dateWed, 25 Feb 2015 19:15:47 +0000
treeherdermozilla-b2g34_v2_1@0390c73a827b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1115375
milestone34.0
backs out97e2ac4449a56aacd8d0ed33834e883f2ee8d703
Backed out changeset 97e2ac4449a5 (bug 1115375) for bustage.
dom/base/nsJSUtils.cpp
dom/base/nsJSUtils.h
--- a/dom/base/nsJSUtils.cpp
+++ b/dom/base/nsJSUtils.cpp
@@ -315,14 +315,8 @@ nsJSUtils::EvaluateString(JSContext* aCx
 JSObject* GetDefaultScopeFromJSContext(JSContext *cx)
 {
   // DOM JSContexts don't store their default compartment object on
   // the cx, so in those cases we need to fetch it via the scx
   // instead.
   nsIScriptContext *scx = GetScriptContextFromJSContext(cx);
   return  scx ? scx->GetWindowProxy() : nullptr;
 }
-
-bool nsAutoJSString::init(const JS::Value &v)
-{
-  return init(nsContentUtils::RootingCxForThread(), v);
-}
-
--- a/dom/base/nsJSUtils.h
+++ b/dom/base/nsJSUtils.h
@@ -192,14 +192,12 @@ public:
   }
 
   bool init(JSContext* aContext, jsid id)
   {
     JS::Rooted<JS::Value> v(aContext);
     return JS_IdToValue(aContext, id, &v) && init(aContext, v);
   }
 
-  bool init(const JS::Value &v);
-
   ~nsAutoJSString() {}
 };
 
 #endif /* nsJSUtils_h__ */