Skip to content

Commit f62dc29

Browse files
author
Marcos Cáceres
authored
BREAKING CHANGE: make share() consume user activation (#137)
1 parent 4ef0a2d commit f62dc29

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

index.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@

137137
|data:ShareData|, run the following steps:
138138
p>
139139
<ol class="algorithm">
140+
<li>Let |window| be [=relevant global object=] of [=this=].
141+
li>
142+
<li>If |window| does not have [=transient activation=], return [=a
143+
promise rejected with=] with a {{"NotAllowedError"}}
144+
{{DOMException}}.
145+
li>
146+
<li>[=Consume user activation=] of |window|.
147+
li>
140148
<li>If {{[[sharePromise]]}} is not `null`, return <a>a promise
141149
rejected witha> {{InvalidStateError}}.
142150
li>
@@ -170,10 +178,9 @@

170178
li>
171179
ol>
172180
li>
173-
<li>If the [=relevant global object=] of [=this=] does not have
174-
[=transient activation=], or a file type is being blocked due to
175-
security considerations, return <a>a promise rejected witha> with
176-
a {{"NotAllowedError"}} {{DOMException}}.
181+
<li>If a file type is being blocked due to security considerations,
182+
return <a>a promise rejected witha> with a {{"NotAllowedError"}}
183+
{{DOMException}}.
177184
li>
178185
<li>Set {{[[sharePromise]]}} to be <a>a new promisea>.
179186
li>

0 commit comments

Comments
 (0)