diff --git a/controllers/scriptStorage.js b/controllers/scriptStorage.js index 4e980d7bb..1ff618087 100644 --- a/controllers/scriptStorage.js +++ b/controllers/scriptStorage.js @@ -92,6 +92,15 @@ if (!mediaDB['image/jxr']) { }); } +// Allow some Chromium based browsers to test +if (!mediaDB['application/signed-exchange']) { + mediaDB = _.extend(mediaDB, { + 'application/signed-exchange' : { + source: 'google', + extensions: [] + } + }); +} if (!mediaDB['*/*']) { mediaDB = _.extend(mediaDB, {'*/*' : { source: 'iana'}}); @@ -550,7 +559,7 @@ exports.sendScript = function (aReq, aRes, aNext) { let matches = null; let rAnyLocalMetaUrl = new RegExp( '^' + patternHasSameOrigin + - '/(?:meta|install|src/scripts)/(.+?)/(.+?)\.meta\.js$' + '/(?:meta|install|src/scripts)/(.+?)/(.+?)\.(?:meta|user)\.js$' ); let hasAlternateLocalUpdateURL = false; diff --git a/libs/modelParser.js b/libs/modelParser.js index ef92ab08b..f074f97a3 100644 --- a/libs/modelParser.js +++ b/libs/modelParser.js @@ -233,7 +233,7 @@ var parseScript = function (aScript) { ); var rAnyLocalMetaUrl = new RegExp( '^' + patternHasSameOrigin + - '/(?:meta|install|src/scripts)/(.+?)/(.+?)\.meta\.js$' + '/(?:meta|install|src/scripts)/(.+?)/(.+?)\.(?:meta|user)\.js$' ); var rSameOrigin = new RegExp(