Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rely on aProgress.isLoadingDocument to decide which onLocationChange …

…means "document-start".

Refs: #1103
  • Loading branch information...
commit 262d5e86304fcf52c0b2b608611e6ba35e53e763 1 parent 0f9e5e4
@arantius arantius authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.