Skip to content

Commit

Permalink
Remove compile_flag from the schema (#3752)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbeck authored and Elchi3 committed Apr 9, 2019
1 parent 2401a76 commit 2428be0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 32 deletions.
12 changes: 2 additions & 10 deletions api/Document.json
Original file line number Diff line number Diff line change
Expand Up @@ -5852,18 +5852,10 @@
},
"firefox": [
{
"version_added": "61",
"version_removed": "63",
"flags": [
{
"type": "compile_flag",
"name": "MOZ_BREAK_XUL_OVERLAYS",
"value_to_set": "False"
}
],
"version_added": true,
"version_removed": "61",
"notes": [
"Available only to <a href='https://developer.mozilla.org/docs/Mozilla/Tech/XUL'>XUL documents</a>.",
"If a XUL document attempts to load an overlay without the compile flag, an error will be thrown (see <a href='https://bugzil.la/1448162'>bug 1448162</a>).",
"See <a href='https://bugzil.la/1449791'>bug 1449791</a>"
]
},
Expand Down
16 changes: 2 additions & 14 deletions javascript/operators/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,10 @@
"version_added": false
},
"firefox": {
"version_added": "58",
"flags": [
{
"name": "--enable-pipeline-operator",
"type": "compile_flag"
}
]
"version_added": false
},
"firefox_android": {
"version_added": "58",
"flags": [
{
"name": "--enable-pipeline-operator",
"type": "compile_flag"
}
]
"version_added": false
},
"ie": {
"version_added": false
Expand Down
1 change: 0 additions & 1 deletion schemas/compat-data-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ array will have one item, but there are cases where two or more flags can be req
An object in the `flags` array consists of three properties:
* `type` (mandatory): an enum that indicates the flag type:
* `preference` a flag the user can set (like in `about:config` in Firefox).
* `compile_flag` a flag to be set before compiling the browser.
* `runtime_flag` a flag to be set before starting the browser.
* `name` (mandatory): a string giving the value which the specified flag must be set to for this feature to work.
* `value_to_set` (optional): representing the actual value to set the flag to.
Expand Down
2 changes: 1 addition & 1 deletion schemas/compat-data.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"type": {
"type": "string",
"description": "An enum that indicates the flag type.",
"enum": ["preference", "compile_flag", "runtime_flag"]
"enum": ["preference", "runtime_flag"]
},
"name": {
"type": "string",
Expand Down
4 changes: 0 additions & 4 deletions scripts/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,6 @@ function writeFlagsNote(supportData, browserId) {
output += `${flagText} preference${valueToSet}. ${prefSettings}`;
}

if (supportData.flag.type === 'compile_flag') {
output += `${flagText} compile flag${valueToSet}.`;
}

return output;
}

Expand Down
3 changes: 1 addition & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ export interface SimpleSupportStatement {
/**
* An enum that indicates the flag type:
* - `preference` a flag the user can set (like in `about:config` in Firefox).
* - `compile_flag` a flag to be set before compiling the browser.
* - `runtime_flag` a flag to be set before starting the browser.
*/
type: 'preference' | 'compile_flag' | 'runtime_flag';
type: 'preference' | 'runtime_flag';

/**
* A `string` representing the flag or preference to modify.
Expand Down

0 comments on commit 2428be0

Please sign in to comment.