[Webkit-unassigned] [Bug 214448] Web Share permission policy "web-share" and "self" as the allowlist

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 2 22:01:48 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=214448

--- Comment #12 from Marcos Caceres <marcos at marcosc.com> ---
(In reply to Devin Rousso from comment #11)
> Interesting.  `TypeError` feels kinda wrong to me.  Maybe it should be
> `InvalidStateError`?  ��

Coincidently, Kagami from Mozilla said the same thing [1]. I don't mind TypeError, as this is quite an edge-case. Also, using TypeError is "cheap", as the fully-active check happens now in canUse(). 

Alternatively, we can do the check in both share() and canUse(), which is fine too.

Let me know which you prefer and I can update the pull request for the spec [2].   

[1] https://github.com/w3c/web-share/issues/218#issuecomment-912122895
[2] https://github.com/w3c/web-share/pull/219

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210903/42daafa5/attachment-0001.htm>


More information about the webkit-unassigned mailing list