You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@karlcow, any chance you could spare some cycles and check the state of YouTube again? At TPAC, folks from Google said that they (YouTube) had at least added a try/catch around the offending code, but apparently it's still failing in Firefox (Windows Desktop). Not sure if you have access to a Windows box, but maybe you can check?
@karlcow, any chance you could spare some cycles and check the state of YouTube again? At TPAC, folks from Google said that they (YouTube) had at least added a try/catch around the offending code, but apparently it's still failing in Firefox (Windows Desktop).
I can check.
Not sure if you have access to a Windows box, but maybe you can check?
Sorry, I don't think I was very clear. The blockers here are:
Chrome: doesn't implement the policy. @foolip, can you enquire if/when the policy will be implemented?
Firefox: YouTube's code didn't handle Firefox well last we checked. @jgraham or @saschanaz, can you please check in Firefox for Windows? Is YouTube's share button working as expected?
Safari/WebKit: Currently implements "*" as the policy. I can switch it over to 'self' if we get agreement from Chrome to implement (Firefox was already doing the "right thing" per spec).
can you please check in Firefox for Windows? Is YouTube's share button working as expected?
Unfortunately not if I disable site intervention. I do see YT did something to improve if navigator.share fails, but it still ultimately throws an error with the share button from here (the share button inside full YouTube page does not really use Web Share).
Uncaught (in promise) TypeError: can't access property "xk", this.j is undefined
fQ https://www.youtube.com/s/player/a25d4acf/player_ias.vflset/en_US/base.js:9248
Note that Firefox shipped site intervention for YouTube (to not expose navigator.share at all for YouTube iframes), so it by default just opens the in-page share screen. Which is fine, for now.
Safari/WebKit: Currently implements "*" as the policy. I can switch it over to 'self' if we get agreement from Chrome to implement (Firefox was already doing the "right thing" per spec).
We are really pleading (ok, begging) with to Google folks to help us here again. I know a lot of effort has been made by folks at Google to get in touch with the YouTube team, but with no avail. We (webkit folks) have also tried emailing them too, but they haven't responded. cc'ing @inexorabletash, @miketaylr for suggestions.
Thanks @saschanaz for spelling out the error you get in Firefox. I have mentioned this comment to the YouTube team internally.
I do see YT did something to improve if navigator.share fails, but it still ultimately throws an error with the share button
I worked with YT a few months back to add code to catch the NotAllowedError and fall back to the HTML share sheet (this means that any embed without allow=web-share — i.e. basically all of them at the moment as it is not part of the boilerplate — would fall back gracefully to the HTML share sheet instead of doing nothing). However it seems that that fix, at least in Firefox, was buggy.
@marcoscaceres have you tested it in Safari since August? Trying to figure out if this is only a problem in Firefox or if it affects other browsers too.
The larger question is around coordinating across UAs on switching the permissions policy itself. We basically all need to ship that across UAs around the same time (at least, in the case of Safari and Chrome, as Firefox already uses self).
Activity
gsnedders commentedon Oct 16, 2022
Did we ever end up with any tests covering this?
karlcow commentedon Oct 17, 2022
Maybe @marcoscaceres knows.
marcoscaceres commentedon Oct 17, 2022
Yes.
https://github.com/web-platform-tests/wpt/blob/master/web-share/disabled-by-permissions-policy.https.sub.html
However, YouTube might still be a blocker.
marcoscaceres commentedon Oct 17, 2022
Actually, we need a test for
allow="web-share"to test cross origin in WPT. We only have the HTTP test above.marcoscaceres commentedon Oct 17, 2022
I put together some tests:
web-platform-tests/wpt#36495
@karlcow, any chance you could spare some cycles and check the state of YouTube again? At TPAC, folks from Google said that they (YouTube) had at least added a try/catch around the offending code, but apparently it's still failing in Firefox (Windows Desktop). Not sure if you have access to a Windows box, but maybe you can check?
marcoscaceres commentedon Oct 17, 2022
I'm reopening while we discuss...
karlcow commentedon Oct 18, 2022
I can check.
Nope.
karlcow commentedon Oct 18, 2022
YouTube doesn't offer the fancy sharing.
While twitter does.
marcoscaceres commentedon Oct 18, 2022
Sorry, I don't think I was very clear. The blockers here are:
Let me know and @karlcow and I can patch WebKit.
saschanaz commentedon Oct 18, 2022
Unfortunately not if I disable site intervention. I do see YT did something to improve if
navigator.sharefails, but it still ultimately throws an error with the share button from here (the share button inside full YouTube page does not really use Web Share).Note that Firefox shipped site intervention for YouTube (to not expose
navigator.shareat all for YouTube iframes), so it by default just opens the in-page share screen. Which is fine, for now.gsnedders commentedon Oct 18, 2022
And for those confused, https://bugs.webkit.org/show_bug.cgi?id=241363 changed the policy from
selfto*due to various bits of site breakage.marcoscaceres commentedon Oct 19, 2022
We are really pleading (ok, begging) with to Google folks to help us here again. I know a lot of effort has been made by folks at Google to get in touch with the YouTube team, but with no avail. We (webkit folks) have also tried emailing them too, but they haven't responded. cc'ing @inexorabletash, @miketaylr for suggestions.
miketaylr commentedon Oct 21, 2022
😞 I will ping the internal bugs again, and send some emails.
mgiuca commentedon Oct 24, 2022
Thanks @saschanaz for spelling out the error you get in Firefox. I have mentioned this comment to the YouTube team internally.
I worked with YT a few months back to add code to catch the
NotAllowedErrorand fall back to the HTML share sheet (this means that any embed withoutallow=web-share— i.e. basically all of them at the moment as it is not part of the boilerplate — would fall back gracefully to the HTML share sheet instead of doing nothing). However it seems that that fix, at least in Firefox, was buggy.@marcoscaceres have you tested it in Safari since August? Trying to figure out if this is only a problem in Firefox or if it affects other browsers too.
marcoscaceres commentedon Oct 24, 2022
@mgiuca, yes, Karl tested Safari a few days ago: #34 (comment) (it goes to the fallback code, which is ok)
saschanaz commentedon Oct 24, 2022
Please retry with some embedded YT since the full YT does not use Web Share. (otherwise they can't provide embed code)
mgiuca commentedon Oct 26, 2022
The full YT does also use Web Share (under "Apps"), but it's totally different code. The broken code in question is YT embeds.
saschanaz commentedon Oct 27, 2022
Interesting, I don't immediately see any button labeled Apps, could you give me a screenshot?
inexorabletash commentedon Oct 27, 2022
FYI that we're still pushing on this, but if there are YT changes required they're unlikely to happen before the start of 2023.
marcoscaceres commentedon Oct 27, 2022
@inexorabletash, that's ok.
The larger question is around coordinating across UAs on switching the permissions policy itself. We basically all need to ship that across UAs around the same time (at least, in the case of Safari and Chrome, as Firefox already uses
self).ewilligers commentedon Nov 2, 2022
We are preparing to ship the permission policy with
selfin Chrome 110. Stable in Feb '23.marcoscaceres commentedon Nov 3, 2022
Ok, that's great news @ewilligers! I'll patch WebKit now... thanks also for merging that WPT test.
foolip commentedon Feb 2, 2023
This is an Interop 2022 proposal, closing.