#948: this possibly addresses the 1st reported error case

This commit is contained in:
gorhill 2015-11-19 18:07:27 -05:00
parent 75f8802487
commit 4e9d41a150
2 changed files with 6 additions and 3 deletions

View file

@ -2240,7 +2240,10 @@ vAPI.net.registerListeners = function() {
var browser = e.target; var browser = e.target;
// I have seen this happens (at startup time) // I have seen this happens (at startup time)
if ( !browser.currentURI ) { // https://github.com/gorhill/uBlock/issues/948
// On older version of Firefox, `browser.webNavigation` can be null,
// which would cause currentURI to fail.
if ( !browser.webNavigation || !browser.currentURI ) {
return; return;
} }