Skip to content

Commit

Permalink
Autofix order of keys in extension api JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob--W committed Mar 4, 2024
1 parent e826a72 commit 79dc5ec
Show file tree
Hide file tree
Showing 7 changed files with 162 additions and 162 deletions.
78 changes: 39 additions & 39 deletions webextensions/api/declarativeNetRequest.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,45 @@
}
}
},
"MatchedRule": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MatchedRule",
"support": {
"chrome": {
"version_added": "84"
},
"edge": "mirror",
"firefox": {
"version_added": "113"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
},
"extensionId": {
"__compat": {
"support": {
"chrome": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": "113"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
}
},
"MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL",
Expand Down Expand Up @@ -180,45 +219,6 @@
}
}
},
"MatchedRule": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MatchedRule",
"support": {
"chrome": {
"version_added": "84"
},
"edge": "mirror",
"firefox": {
"version_added": "113"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
},
"extensionId": {
"__compat": {
"support": {
"chrome": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": "113"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
}
},
"Redirect": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/Redirect",
Expand Down
38 changes: 19 additions & 19 deletions webextensions/api/extensionTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,25 @@
}
}
},
"CSSOrigin": {
"__compat": {
"support": {
"chrome": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": "53"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
},
"ImageDetails": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/extensionTypes/ImageDetails",
Expand Down Expand Up @@ -159,25 +178,6 @@
}
}
}
},
"CSSOrigin": {
"__compat": {
"support": {
"chrome": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": "53"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions webextensions/api/history.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@
}
}
},
"onVisitRemoved": {
"onVisited": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/history/onVisitRemoved",
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/history/onVisited",
"support": {
"chrome": {
"version_added": true
Expand All @@ -355,7 +355,8 @@
"version_added": "79"
},
"firefox": {
"version_added": "50"
"version_added": "50",
"notes": "Before version 56, the result object's 'title' was always an empty string. From version 56 onwards, it is set to the last known title, if that is available, or an empty string otherwise."
},
"firefox_android": {
"version_added": false
Expand All @@ -368,9 +369,9 @@
}
}
},
"onVisited": {
"onVisitRemoved": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/history/onVisited",
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/history/onVisitRemoved",
"support": {
"chrome": {
"version_added": true
Expand All @@ -379,8 +380,7 @@
"version_added": "79"
},
"firefox": {
"version_added": "50",
"notes": "Before version 56, the result object's 'title' was always an empty string. From version 56 onwards, it is set to the last known title, if that is available, or an empty string otherwise."
"version_added": "50"
},
"firefox_android": {
"version_added": false
Expand Down
44 changes: 22 additions & 22 deletions webextensions/api/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,28 +616,6 @@
}
}
},
"overrideContext": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/menus/overrideContext",
"support": {
"chrome": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": "64"
},
"firefox_android": {
"version_added": false
},
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
},
"getTargetElement": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/menus/getTargetElement",
Expand Down Expand Up @@ -748,6 +726,28 @@
}
}
},
"overrideContext": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/menus/overrideContext",
"support": {
"chrome": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": "64"
},
"firefox_android": {
"version_added": false
},
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
},
"refresh": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/menus/refresh",
Expand Down
32 changes: 16 additions & 16 deletions webextensions/api/permissions.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
}
}
},
"contains": {
"Permissions": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/contains",
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/Permissions",
"support": {
"chrome": {
"version_added": true
Expand All @@ -52,9 +52,9 @@
}
}
},
"getAll": {
"contains": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/getAll",
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/contains",
"support": {
"chrome": {
"version_added": true
Expand All @@ -78,9 +78,9 @@
}
}
},
"onAdded": {
"getAll": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/onAdded",
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/getAll",
"support": {
"chrome": {
"version_added": true
Expand All @@ -89,9 +89,11 @@
"version_added": "79"
},
"firefox": {
"version_added": "77"
"version_added": "55"
},
"firefox_android": {
"version_added": "79"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": "14"
Expand All @@ -102,9 +104,9 @@
}
}
},
"onRemoved": {
"onAdded": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/onRemoved",
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/onAdded",
"support": {
"chrome": {
"version_added": true
Expand All @@ -126,9 +128,9 @@
}
}
},
"Permissions": {
"onRemoved": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/Permissions",
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/permissions/onRemoved",
"support": {
"chrome": {
"version_added": true
Expand All @@ -137,11 +139,9 @@
"version_added": "79"
},
"firefox": {
"version_added": "55"
},
"firefox_android": {
"version_added": "79"
"version_added": "77"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": "14"
Expand Down
Loading

0 comments on commit 79dc5ec

Please sign in to comment.