Add Tampermonkey WebExtension manifest and managed storage compatibility

This commit is contained in:
wuggy 2026-09-19 04:45:24 -07:00
commit cc3106406f
5 changed files with 80 additions and 3 deletions

View file

@ -183,6 +183,29 @@
"optional": true
},
"optional_permissions": {
"type": "array",
"items": {
"choices": [
{ "$ref": "Permission" },
{
"type": "string",
"deprecated": "Unknown optional permission ${value}"
}
]
},
"optional": true
},
"user_scripts": {
"type": "object",
"optional": true,
"properties": {
"api_script": { "$ref": "ExtensionURL" }
},
"additionalProperties": { "$ref": "UnrecognizedProperty" }
},
"web_accessible_resources": {
"type": "array",
"items": { "type": "string" },
@ -218,6 +241,7 @@
"enum": [
"alarms",
"clipboardWrite",
"contextualIdentities",
"dns",
"idle",
"menus",
@ -387,8 +411,7 @@
},
{
"id": "PersistentBackgroundProperty",
"type": "boolean",
"deprecated": "Event pages are not currently supported. This will run as a persistent background page."
"type": "boolean"
}
]
}

View file

@ -220,7 +220,6 @@
}
},
"managed": {
"unsupported": true,
"$ref": "StorageArea",
"description": "Items in the <code>managed</code> storage area are set by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error."
}