Skip to content

BREAKING CHANGE: make share() consume user activation #137

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

Merged
merged 3 commits into from
Jun 17, 2020
Merged
Changes from all commits
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
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ <h4>
|data:ShareData|, run the following steps:
</p>
<ol class="algorithm">
<li>Let |window| be [=relevant global object=] of [=this=].
</li>
<li>If |window| does not have [=transient activation=], return [=a
promise rejected with=] with a {{"NotAllowedError"}}
{{DOMException}}.
</li>
<li>[=Consume user activation=] of |window|.
</li>
<li>If {{[[sharePromise]]}} is not `null`, return <a>a promise
rejected with</a> {{InvalidStateError}}.
</li>
Expand Down Expand Up @@ -170,10 +178,9 @@ <h4>
</li>
</ol>
</li>
<li>If the [=relevant global object=] of [=this=] does not have
[=transient activation=], or a file type is being blocked due to
security considerations, return <a>a promise rejected with</a> with
a {{"NotAllowedError"}} {{DOMException}}.
<li>If a file type is being blocked due to security considerations,
return <a>a promise rejected with</a> with a {{"NotAllowedError"}}
{{DOMException}}.
</li>
<li>Set {{[[sharePromise]]}} to be <a>a new promise</a>.
</li>
Expand Down