Browse Source

b=596989, r=mfinkle, Ctrl-W causes shutdown to be called on Linux when child window is closed

matthew.gertner@gmail.com 14 years ago
parent
commit
410a90d0b3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      chrome/content/webrunner.js

+ 2 - 1
chrome/content/webrunner.js

@@ -887,7 +887,8 @@ var WebRunner = {
         this._getBrowser().reload();
         break;
       case "cmd_close":
-        if (this._handleWindowClose())
+        // If there is no XUL window set then this is a child window and we don't have to call handleWindowClose()
+        if (!this._xulWindow || this._handleWindowClose())
           close();
         break;
       case "cmd_quit":