aboutsummaryrefslogtreecommitdiffstats
path: root/platform/firefox
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-08-01 11:30:54 -0400
committergorhill <rhill@raymondhill.net>2015-08-01 11:30:54 -0400
commit528354f5945d12fdff5dc7c4a699c4d6aec76125 (patch)
tree154217d9fa4d895919c25e4ac6a2e4af5425dfc2 /platform/firefox
parentf1cf2036fc4f1d5853f0436dd565cf0b1773663c (diff)
downloaduBlock-528354f5945d12fdff5dc7c4a699c4d6aec76125.zip
uBlock-528354f5945d12fdff5dc7c4a699c4d6aec76125.tar.gz
uBlock-528354f5945d12fdff5dc7c4a699c4d6aec76125.tar.bz2
this fixes #507
Diffstat (limited to 'platform/firefox')
-rw-r--r--platform/firefox/vapi-background.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js
index 8ea2036..16d796b 100644
--- a/platform/firefox/vapi-background.js
+++ b/platform/firefox/vapi-background.js
@@ -669,7 +669,17 @@ vAPI.tabs.open = function(details) {
continue;
}
+ // Or simply .equals if we care about the fragment
+ if ( URI.equalsExceptRef(browser.currentURI) === false ) {
+ continue;
+ }
+
this.select(tab);
+
+ // Update URL if fragment is different
+ if ( URI.equals(browser.currentURI) === false ) {
+ browser.loadURI(URI.asciiSpec);
+ }
return;
}
}