Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid opening the first run page in already closed window

  • Loading branch information...
commit 15c36ab2e64e64b2f96de96c567ef55d8f8cc6fa 1 parent 3e6930a
@janodvarko janodvarko authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 extension/content/firebug/firefox/browserOverlay.js
View
13 extension/content/firebug/firefox/browserOverlay.js
@@ -1176,10 +1176,19 @@ if (checkFirebugVersion(PrefLoader.getPref("currentVersion")) > 0)
if (PrefLoader.getPref("showFirstRunPage"))
{
- setTimeout(function() {
+ var timeout = setTimeout(function()
+ {
+ if (window.closed)
+ return;
+
var version = Firebug.GlobalUI.getVersion();
Firebug.GlobalUI.visitWebsite("firstRunPage", version);
- }, 100);
+ }, 1000);
+
+ window.addEventListener("unload", function()
+ {
+ clearTimeout(timeout);
+ }, false);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.