Skip to content

Commit

Permalink
Update schema for Firefox 124 (#5216)
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand authored Mar 12, 2024
1 parent fe8b4c5 commit 19fe3a4
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 357 deletions.
2 changes: 0 additions & 2 deletions src/schema/imported/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import theme from './theme.json';
import topSites from './top_sites.json';
import types from './types.json';
import url_overrides from './url_overrides.json';
import urlbar from './urlbar.json';
import userScripts from './userScripts.json';
import webNavigation from './web_navigation.json';
import webRequest from './web_request.json';
Expand Down Expand Up @@ -116,7 +115,6 @@ export default [
topSites,
types,
url_overrides,
urlbar,
userScripts,
webNavigation,
webRequest,
Expand Down
3 changes: 0 additions & 3 deletions src/schema/imported/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,6 @@
},
{
"$ref": "telemetry#/definitions/PermissionPrivileged"
},
{
"$ref": "urlbar#/definitions/PermissionPrivileged"
}
]
},
Expand Down
62 changes: 62 additions & 0 deletions src/schema/imported/runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,52 @@
]
}
]
},
{
"name": "onPerformanceWarning",
"type": "function",
"description": "Fired when a runtime performance issue is detected with the extension. Observe this event to be proactively notified of runtime performance problems with the extension.",
"parameters": [
{
"type": "object",
"name": "details",
"properties": {
"category": {
"allOf": [
{
"$ref": "#/types/OnPerformanceWarningCategory"
},
{
"description": "The performance warning event category, e.g. 'content_script'."
}
]
},
"severity": {
"allOf": [
{
"$ref": "#/types/OnPerformanceWarningSeverity"
},
{
"description": "The performance warning event severity, e.g. 'high'."
}
]
},
"tabId": {
"type": "integer",
"description": "The $(ref:tabs.Tab) that the performance warning relates to, if any."
},
"description": {
"type": "string",
"description": "An explanation of what the warning means, and hopefully how to address it."
}
},
"required": [
"category",
"severity",
"description"
]
}
]
}
],
"definitions": {
Expand Down Expand Up @@ -880,6 +926,22 @@
"os_update",
"periodic"
]
},
"OnPerformanceWarningCategory": {
"type": "string",
"enum": [
"content_script"
],
"description": "The performance warning event category, e.g. 'content_script'."
},
"OnPerformanceWarningSeverity": {
"type": "string",
"enum": [
"low",
"medium",
"high"
],
"description": "The performance warning event severity. Will be 'high' for serious and user-visible issues."
}
}
}
Loading

0 comments on commit 19fe3a4

Please sign in to comment.