summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/permissions
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-10-20 21:40:07 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-10-20 21:40:07 +0300
commit0d7afa78f0125aa606d5f47cd9518514770dd474 (patch)
tree27aaf185452606a5c6f3fd2e76431964936ec528 /application/palemoon/components/permissions
parenta9fbfba2ada6a6a87eacdd189129ebb0c8ec228a (diff)
downloadUXP-0d7afa78f0125aa606d5f47cd9518514770dd474.tar
UXP-0d7afa78f0125aa606d5f47cd9518514770dd474.tar.gz
UXP-0d7afa78f0125aa606d5f47cd9518514770dd474.tar.lz
UXP-0d7afa78f0125aa606d5f47cd9518514770dd474.tar.xz
UXP-0d7afa78f0125aa606d5f47cd9518514770dd474.zip
[PALEMOON] Add filter query to about:permissions
Diffstat (limited to 'application/palemoon/components/permissions')
-rw-r--r--application/palemoon/components/permissions/aboutPermissions.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/application/palemoon/components/permissions/aboutPermissions.js b/application/palemoon/components/permissions/aboutPermissions.js
index 6a02daa29..421b65a0e 100644
--- a/application/palemoon/components/permissions/aboutPermissions.js
+++ b/application/palemoon/components/permissions/aboutPermissions.js
@@ -516,6 +516,14 @@ var AboutPermissions = {
Services.obs.notifyObservers(null, "browser-permissions-preinit", null);
this._initPart2();
+
+ // Process about:permissions?filter=<string>
+ // About URIs don't support query params, so do this manually
+ var loc = document.location.href;
+ var matches = /[?&]filter\=([^&]+)/i.exec(loc);
+ if (matches) {
+ this.sitesFilter.value = decodeURIComponent(matches[1]);
+ }
},
sitesReload: function() {