Bug 1056152 - Fix reference to undefined event variable in content.js. rs=jaws
authorMike Conley <mconley@mozilla.com>
Wed, 20 Aug 2014 11:27:03 -0400
changeset 200826 caa79e0cdc58d18da05decf2d3cf2343427933f8
parent 200825 7871ef26e0c8f4ff85b1abe64fb6614712774d3b
child 200827 cfff821ca4907b338e310dbf69b6af213eb472ff
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjaws
bugs1056152
milestone34.0a1
Bug 1056152 - Fix reference to undefined event variable in content.js. rs=jaws
browser/base/content/content.js
--- a/browser/base/content/content.js
+++ b/browser/base/content/content.js
@@ -216,24 +216,24 @@ let AboutHomeListener = {
 
       case "settings":
         sendAsyncMessage("AboutHome:Settings");
         break;
     }
   },
 
   onPageHide: function(aEvent) {
-    if (event.target.defaultView.frameElement) {
+    if (aEvent.target.defaultView.frameElement) {
       return;
     }
     removeMessageListener("AboutHome:Update", this);
     removeEventListener("click", this, true);
     removeEventListener("pagehide", this, true);
-    if (event.target.documentElement) {
-      event.target.documentElement.removeAttribute("hasBrowserHandlers");
+    if (aEvent.target.documentElement) {
+      aEvent.target.documentElement.removeAttribute("hasBrowserHandlers");
     }
   },
 
   onSearch: function(aEvent) {
     sendAsyncMessage("AboutHome:Search", { searchData: aEvent.detail });
   },
 
   onFocusInput: function () {