Skip to content

Commit

Permalink
Don't try to update bookmark icon, if tab was closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed May 22, 2014
1 parent b9b15d1 commit cad291d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3884,6 +3884,8 @@ API.prototype = {
e && browser.removeEventListener(e.type, onLoaded, true);
_dbgv && _log("_updateBookmarkFavicon(): " + (e ? e.type : "already loaded"));
browser.ownerDocument.defaultView.setTimeout(function() { // Wait for possible changes
if(!tab.parentNode) // Tab was closed
return;
_dbgv && _log("_updateBookmarkFavicon(): delay");
var icon = (tab.getAttribute("image") || "")
.replace(/#-moz-resolution=.*$/, "");
Expand Down

0 comments on commit cad291d

Please sign in to comment.