Bug 856413 - Once UIEvent#view property is read, value of UIEvent#view property will be null, r=Ms2ger , a=akeybl
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Tue, 02 Apr 2013 19:46:06 +0300
changeset 133297 ff987617abf8a976f40d36e1b3f5bc32e2e54d39
parent 133296 917b21d005bbc4b3da57e8d511a43358417e0849
child 133298 d47000234ce75e47037aed73da4f170a57554368
push id3587
push useropettay@mozilla.com
push dateThu, 04 Apr 2013 00:25:14 +0000
treeherdermozilla-aurora@ff987617abf8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger, akeybl
bugs856413
milestone22.0a2
Bug 856413 - Once UIEvent#view property is read, value of UIEvent#view property will be null, r=Ms2ger , a=akeybl
content/events/src/nsDOMUIEvent.h
--- a/content/events/src/nsDOMUIEvent.h
+++ b/content/events/src/nsDOMUIEvent.h
@@ -95,17 +95,17 @@ public:
   virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope)
   {
     return mozilla::dom::UIEventBinding::Wrap(aCx, aScope, this);
   }
 
   already_AddRefed<nsIDOMWindow> GetView()
   {
     nsCOMPtr<nsIDOMWindow> view = mView;
-    return mView.forget();
+    return view.forget();
   }
 
   int32_t Detail()
   {
     return mDetail;
   }
 
   int32_t LayerX()