Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add complete BCD for Window Management API #20600

Merged
merged 4 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions api/Element.json
Original file line number Diff line number Diff line change
Expand Up @@ -7177,6 +7177,40 @@
}
}
},
"options_screen_parameter": {
"__compat": {
"description": "<code>options.screen</code> parameter",
"spec_url": "https://w3c.github.io/window-management/#dom-fullscreenoptions-screen",
"support": {
"chrome": {
"version_added": "100"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"returns_promise": {
"__compat": {
"description": "Returns a <code>Promise</code>",
Expand Down
38 changes: 37 additions & 1 deletion api/Permissions.json
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,42 @@
}
}
},
"permission_window-management": {
"__compat": {
"description": "<code>window-management</code> permission",
"spec_url": "https://w3c.github.io/window-management/#api-permission-api-integration",
"support": {
"chrome": {
"version_added": "100"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"query": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Permissions/query",
Expand Down Expand Up @@ -891,4 +927,4 @@
}
}
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw this change in your PRs and ignored it but then Vinyl opened #20560 so I think we do care about this. Please fix your editor config and don't change this from now on :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, I honestly never knew this was a thing to be concerned about! I have removed the odd newline here and there because I thought they were unnecessary.

I've updated my config so VSCode adds newlines to the end of all files on save, and added the missing ones into this PR. Sorted.

18 changes: 9 additions & 9 deletions api/ScreenDetailed.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"availLeft": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#ref-for-dom-screendetailed-availleft",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this change necessary?

@sideshowbarker has opinions about where to link in the specs. I think it has to do with where the MDN ribbon appears.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The practice followed by the majority of the existing spec URLs is to use the URL for the developer part of the spec, if any. In this case, that’s https://w3c.github.io/window-management/#ref-for-dom-screendetailed-availleft

And yeah the effect of that as far as the rendering of the published specs goes is that it causes the MDN annotation in the spec to be shown next the developer part of the spec (rather than the implementor part).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, makes sense. I've reverted those changes, and added some other developer spec URLs

"spec_url": "https://w3c.github.io/window-management/#dom-screendetailed-availleft",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -67,7 +67,7 @@
},
"availTop": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#ref-for-dom-screendetailed-availtop",
"spec_url": "https://w3c.github.io/window-management/#dom-screendetailed-availtop",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -100,7 +100,7 @@
},
"devicePixelRatio": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#ref-for-dom-screendetailed-devicepixelratio",
"spec_url": "https://w3c.github.io/window-management/#dom-screendetailed-devicepixelratio",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -133,7 +133,7 @@
},
"isInternal": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#ref-for-dom-screendetailed-isinternal",
"spec_url": "https://w3c.github.io/window-management/#dom-screendetailed-isinternal",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -166,7 +166,7 @@
},
"isPrimary": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#ref-for-dom-screendetailed-isprimary",
"spec_url": "https://w3c.github.io/window-management/#dom-screendetailed-isprimary",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -199,7 +199,7 @@
},
"label": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#ref-for-dom-screendetailed-label",
"spec_url": "https://w3c.github.io/window-management/#dom-screendetailed-label",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -232,7 +232,7 @@
},
"left": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#ref-for-dom-screendetailed-left",
"spec_url": "https://w3c.github.io/window-management/#dom-screendetailed-left",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -265,7 +265,7 @@
},
"top": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#ref-for-dom-screendetailed-top",
"spec_url": "https://w3c.github.io/window-management/#dom-screendetailed-top",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -298,4 +298,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions api/ScreenDetails.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"api": {
"ScreenDetails": {
"__compat": {
"spec_url": "https://w3c.github.io/window-management/#screendetails",
"spec_url": "https://w3c.github.io/window-management/#api-screendetails-interface",
"support": {
"chrome": {
"version_added": "100"
Expand Down Expand Up @@ -174,4 +174,4 @@
}
}
}
}
}
38 changes: 37 additions & 1 deletion http/headers/Permissions-Policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,42 @@
}
}
},
"window-management": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/Permissions-Policy/window-management",
"spec_url": "https://w3c.github.io/window-management/#api-permission-policy-integration",
"support": {
"chrome": {
"version_added": "100"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"xr-spatial-tracking": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/Permissions-Policy/xr-spatial-tracking",
Expand Down Expand Up @@ -1481,4 +1517,4 @@
}
}
}
}
}