Differentiate Chromium restricted URLs (where extensions cannot operate).
This commit is contained in:
parent
781514cfb9
commit
4e5f12a6c2
|
@ -1,22 +1,22 @@
|
||||||
{
|
{
|
||||||
// see https://bugzilla.mozilla.org/show_bug.cgi?id=1415644
|
// see https://bugzilla.mozilla.org/show_bug.cgi?id=1415644
|
||||||
let domains = [
|
let domains = UA.isMozilla ? [
|
||||||
"accounts-static.cdn.mozilla.net",
|
"accounts-static.cdn.mozilla.net",
|
||||||
"accounts.firefox.com",
|
"accounts.firefox.com",
|
||||||
"addons.cdn.mozilla.net",
|
"addons.cdn.mozilla.net",
|
||||||
"addons.mozilla.org",
|
"addons.mozilla.org",
|
||||||
"api.accounts.firefox.com",
|
"api.accounts.firefox.com",
|
||||||
"content.cdn.mozilla.net",
|
"content.cdn.mozilla.net",
|
||||||
"content.cdn.mozilla.net",
|
"content.cdn.mozilla.net",
|
||||||
"discovery.addons.mozilla.org",
|
"discovery.addons.mozilla.org",
|
||||||
"input.mozilla.org",
|
"input.mozilla.org",
|
||||||
"install.mozilla.org",
|
"install.mozilla.org",
|
||||||
"oauth.accounts.firefox.com",
|
"oauth.accounts.firefox.com",
|
||||||
"profile.accounts.firefox.com",
|
"profile.accounts.firefox.com",
|
||||||
"support.mozilla.org",
|
"support.mozilla.org",
|
||||||
"sync.services.mozilla.com",
|
"sync.services.mozilla.com",
|
||||||
"testpilot.firefox.com",
|
"testpilot.firefox.com",
|
||||||
];
|
] : [ "chrome.google.com" ];
|
||||||
|
|
||||||
function isRestrictedURL(u) {
|
function isRestrictedURL(u) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue