Bug 625199 - Convert one more JSAutoEnterCompartment in ObserverPair.h (r=bustage)
authorLuke Wagner <luke@mozilla.com>
Thu, 23 Aug 2012 18:13:08 -0700
changeset 105300 a3b7774cb5be105704f09a5f36169acf7c86354b
parent 105299 d5f32f0e1c05005f5e2a5bfeb6cd85353add3823
child 105301 ecaff5097b0b0b775e56f23bb65734b7658c46e7
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersbustage
bugs625199
milestone17.0a1
Bug 625199 - Convert one more JSAutoEnterCompartment in ObserverPair.h (r=bustage)
toolkit/components/alerts/mac/ObserverPair.h
--- a/toolkit/components/alerts/mac/ObserverPair.h
+++ b/toolkit/components/alerts/mac/ObserverPair.h
@@ -46,17 +46,17 @@ GetWindowOfObserver(nsIObserver* aObserv
   nsCOMPtr<nsIThreadJSContextStack> stack =
     do_GetService("@mozilla.org/js/xpc/ContextStack;1", &rv);
   NS_ENSURE_SUCCESS(rv, nullptr);
 
   JSContext* cx = stack->GetSafeJSContext();
   NS_ENSURE_TRUE(cx, nullptr);
 
   JSAutoRequest ar(cx);
-  JSAutoEnterCompartment ac(cx, obj);
+  JSAutoCompartment ac(cx, obj);
 
   JSObject* global = JS_GetGlobalForObject(cx, obj);
   NS_ENSURE_TRUE(global, nullptr);
 
   nsCOMPtr<nsIXPConnect> xpc(do_GetService(nsIXPConnect::GetCID()));
   NS_ENSURE_TRUE(xpc, nullptr);
 
   nsCOMPtr<nsIXPConnectWrappedNative> wrapper;