Bug 839838 follow-up - Use the mozilla namespace for ThreadsafeAutoSafeJSContext
☠☠ backed out by 923a414099b1 ☠ ☠
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 08 Oct 2014 19:07:30 -0400
changeset 209495 c41ceb365f003fcc5d8086de6e6ea0fcf14c4efb
parent 209494 626abc356c251ed7377f54273531877e9fe724df
child 209496 46c1cce018dee925d211ba14aa494d55ecebb497
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
bugs839838
milestone35.0a1
Bug 839838 follow-up - Use the mozilla namespace for ThreadsafeAutoSafeJSContext Landed on a CLOSED TREE
dom/base/DOMRequest.cpp
--- a/dom/base/DOMRequest.cpp
+++ b/dom/base/DOMRequest.cpp
@@ -301,17 +301,17 @@ public:
   // Due to the fact that initialization can fail during shutdown (since we
   // can't fetch a js context), set up an initiatization function to make sure
   // we can return the failure appropriately
   static nsresult
   Dispatch(DOMRequest* aRequest,
            const JS::Value& aResult)
   {
     NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
-    ThreadsafeAutoSafeJSContext cx;
+    mozilla::ThreadsafeAutoSafeJSContext cx;
     nsRefPtr<FireSuccessAsyncTask> asyncTask = new FireSuccessAsyncTask(cx, aRequest, aResult);
     if (NS_FAILED(NS_DispatchToMainThread(asyncTask))) {
       NS_WARNING("Failed to dispatch to main thread!");
       return NS_ERROR_FAILURE;
     }
     return NS_OK;
   }