Skip to content

Commit d1d1b4a

Browse files
committed
Require that the document is fully active in requestFullscreen()
Test: web-platform-tests/wpt#5901
1 parent 3513c94 commit d1d1b4a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

fullscreen.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,15 @@ these steps:
193193
<ol>
194194
<li><p>Let <var>pending</var> be the <a>context object</a>.
195195

196-
<li><p>Let <var>error</var> be false.
196+
<li><p>Let <var>pendingDoc</var> be <var>pending</var>'s <a>node document</a>.
197197

198198
<li><p>Let <var>promise</var> be a new promise.
199199

200+
<li><p>If <var>pendingDoc</var> is not <a>fully active</a>, then reject <var>promise</var> with a
201+
<code>TypeError</code> exception and return <var>promise</var>.
202+
203+
<li><p>Let <var>error</var> be false.
204+
200205
<li>
201206
<p>If any of the following conditions are false, then set <var>error</var> to true:
202207

@@ -216,7 +221,7 @@ these steps:
216221

217222
<li><p>Return <var>promise</var>, and run the remaining steps <a>in parallel</a>.
218223

219-
<li><p>If <var>error</var> is false: Resize <var>pending</var>'s
224+
<li><p>If <var>error</var> is false: Resize <var>pendingDoc</var>'s
220225
<a>top-level browsing context</a>'s <a>active document</a>'s viewport's dimensions to match the
221226
dimensions of the screen of the output device. Optionally display a message how the end user can
222227
revert this.

0 commit comments

Comments
 (0)