Permalink
Browse files

Rely on aProgress.isLoadingDocument to decide which onLocationChange …

…means "document-start".

Refs: #1103
  • Loading branch information...
1 parent 0f9e5e4 commit 262d5e86304fcf52c0b2b608611e6ba35e53e763 @arantius arantius committed Jul 21, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 content/browser.js
View
4 content/browser.js
@@ -27,9 +27,7 @@ GM_BrowserUI.init = function() {
GM_BrowserUI.progressListener = {
onLocationChange:function(aBrowser, aProgress, aRequest, aURI) {
- if (aProgress.loadType & aProgress.LOAD_CMD_NORMAL
- || aProgress.loadType & aProgress.LOAD_CMD_RELOAD
- ) {
+ if (aProgress.isLoadingDocument) {
GM_BrowserUI.gmSvc.runScripts(
'document-start', aProgress.DOMWindow, window);
}

0 comments on commit 262d5e8

Please sign in to comment.