Bug 642604 - window.close() from a content tab closes Fennec window [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Fri, 18 Mar 2011 15:05:20 -0700
changeset 67529 ac2b12d9cb45763012b03c466317933c2842ff98
parent 67528 bbcf6fcae61d7808764002adcdf45b574d75f6a5
child 67530 c9f894ae705d0fc5a5f1de550a9cb16bbd3d6780
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs642604
Bug 642604 - window.close() from a content tab closes Fennec window [r=mfinkle]
mobile/chrome/content/bindings/browser.js
--- a/mobile/chrome/content/bindings/browser.js
+++ b/mobile/chrome/content/bindings/browser.js
@@ -267,18 +267,18 @@ let DOMEvents =  {
 
         sendAsyncMessage("DOMLinkAdded", json);
         break;
 
       case "DOMWillOpenModalDialog":
       case "DOMModalDialogClosed":
       case "DOMWindowClose":
         let retvals = sendSyncMessage(aEvent.type, { });
-        for (rv in retvals) {
-          if (rv.preventDefault) {
+        for (let i in retvals) {
+          if (retvals[i].preventDefault) {
             aEvent.preventDefault();
             break;
           }
         }
         break;
     }
   }
 };