зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1491024 - Rename userScripts manifest property to follow manifest property name conventions. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5777 --HG-- extra : source : f1cc448b5137c220962a35f1816f112f931de119
This commit is contained in:
Родитель
4262fca58d
Коммит
87e37e32a0
|
@ -536,7 +536,7 @@ class UserScript extends Script {
|
|||
// the particular userScript and it is passed as a parameter to the custom
|
||||
// userScripts APIs defined by the extension.
|
||||
this.scriptMetadata = matcher.userScriptOptions.scriptMetadata;
|
||||
this.apiScriptURL = extension.manifest.userScripts && extension.manifest.userScripts.apiScript;
|
||||
this.apiScriptURL = extension.manifest.user_scripts && extension.manifest.user_scripts.api_script;
|
||||
|
||||
this.promiseAPIScript = null;
|
||||
this.scriptPromises = null;
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
{
|
||||
"$extend": "WebExtensionManifest",
|
||||
"properties": {
|
||||
"userScripts": {
|
||||
"user_scripts": {
|
||||
"type": "object",
|
||||
"optional": true,
|
||||
"properties": {
|
||||
"apiScript": { "$ref": "manifest.ExtensionURL"}
|
||||
"api_script": { "$ref": "manifest.ExtensionURL"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -299,8 +299,8 @@ add_task(async function test_userScripts_exported_APIs() {
|
|||
permissions: [
|
||||
"http://localhost/*/file_sample.html",
|
||||
],
|
||||
userScripts: {
|
||||
apiScript: "api-script.js",
|
||||
user_scripts: {
|
||||
api_script: "api-script.js",
|
||||
},
|
||||
},
|
||||
background,
|
||||
|
|
|
@ -40,8 +40,8 @@ add_task(async function test_userScripts_telemetry() {
|
|||
permissions: [
|
||||
"http://*/*/file_sample.html",
|
||||
],
|
||||
userScripts: {
|
||||
apiScript: "api-script.js",
|
||||
user_scripts: {
|
||||
api_script: "api-script.js",
|
||||
},
|
||||
},
|
||||
background,
|
||||
|
|
Загрузка…
Ссылка в новой задаче