diff --git a/application/palemoon/base/content/browser-places.js b/application/palemoon/base/content/browser-places.js index 7130f7f28a..4283ad25c2 100644 --- a/application/palemoon/base/content/browser-places.js +++ b/application/palemoon/base/content/browser-places.js @@ -428,7 +428,7 @@ var PlacesCommandHook = { */ updateBookmarkAllTabsCommand: function() { // There's nothing to do in non-browser windows. - if (window.location.href != getBrowserURL()) { + if (!window.location || window.location.href != getBrowserURL()) { return; }