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 Feature-Policy:web-share #6979

Merged
merged 1 commit into from
Nov 13, 2020

Conversation

hamishwillee
Copy link
Collaborator

This confirms Feature-Policy web-share is supported in FF81 but makes the note that the protected feature (Web Share API) is itself not implemented. The bug that should track the implementation is included in that note.

I have set the other browsers as null. It is possible that some of them do support this, but there is no obvious information and no easy way to test (i.e. to test would take more effort than knowing would be worth).

@github-actions github-actions bot added the data:http 🚠 Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP label Oct 19, 2020
@hamishwillee
Copy link
Collaborator Author

@ddbeck Is this something you might look at?

@ddbeck ddbeck self-requested a review October 26, 2020 17:10
Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

Thanks for this PR, @hamishwillee. A few comments in line comments. Also, could you link to a bug or test or something to substantiate the Firefox implementation claim? It's nice to have a record of why set values to what we did. Thank you!

"mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/Feature-Policy/web-share",
"support": {
"chrome": {
"version_added": null
Copy link
Collaborator

Choose a reason for hiding this comment

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

This appears to have not yet shipped in Chromium: https://www.chromestatus.com/feature/6362499966304256. I'd apply this change to all the Chromium browsers (Chrome, Edge, Opera, Samsung Internet, and WebView)

Suggested change
"version_added": null
"version_added": false

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed (and rebased). Thank you!

"version_added": null
},
"safari": {
"version_added": null
Copy link
Collaborator

Choose a reason for hiding this comment

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

I couldn't find evidence that WebKit has implemented this: https://bugs.webkit.org/show_bug.cgi?id=214448. I'd set both Safaris to false too.

http/headers/feature-policy.json Outdated Show resolved Hide resolved
Co-authored-by: Daniel D. Beck <[email protected]>
@hamishwillee
Copy link
Collaborator Author

Hi @ddbeck
Thanks for all the help. I have marked up all the non-Firefox cases as false, and accepted your note for both the firefox versions.

Thanks for this PR, @hamishwillee. A few comments in line comments. Also, could you link to a bug or test or something to substantiate the Firefox implementation claim? It's nice to have a record of why set values to what we did. Thank you!

Isn't that the bug report you thought we should remove? https://bugzilla.mozilla.org/show_bug.cgi?id=1653199
Either way, it went in in FF81 and that is the bug that says so! Should I add this back into the text?

@ddbeck
Copy link
Collaborator

ddbeck commented Nov 13, 2020

Sorry for being unclear, @hamishwillee. I meant to ask for you to link to the bug in the PR description—not the notes.

Isn't that the bug report you thought we should remove? https://bugzilla.mozilla.org/show_bug.cgi?id=1653199
Either way, it went in in FF81 and that is the bug that says so! Should I add this back into the text?

Ah, this is the key thing. Thank you! Your original note linked to bug 1653481, ("[Meta] Implement and maintain WebShare API"). This new bug 1653199 ("Web Share should be controlled by permission policy"), is what I was thinking of for the PR record keeping. I just needed something, apart from the diff, which claimed that the stuff in the diff was true. 😄

Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

This is ready to go now. Thank you! 🎉

@ddbeck ddbeck merged commit 6e0993b into mdn:master Nov 13, 2020
@hamishwillee hamishwillee deleted the feature_policy-web_share branch November 16, 2020 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:http 🚠 Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants