[Webkit-unassigned] [Bug 197779] Using Web Share API preceded by an AJAX call

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 6 08:12:25 PST 2020


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

--- Comment #10 from Chris Dumez <cdumez at apple.com> ---
(In reply to Chris Dumez from comment #9)
> Spec says that the relevant global object should have *transient* activation:
> [1] https://w3c.github.io/web-share/#dom-navigator-share
> [2]
> https://html.spec.whatwg.org/multipage/interaction.html#transient-activation
> 
> So basically, for a certain amount of time after a user gesture, the API
> should work. If our implementation requires a user gesture, then it is not
> aligned with the spec.

>From Navigator::share():
    if (!UserGestureIndicator::processingUserGesture()) {
        promise->reject(NotAllowedError);
        return;
    }

This is not quite right indeed.

-- 
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/20200106/65fd54cf/attachment.htm>


More information about the webkit-unassigned mailing list