From b1b684a9cbc1801a2ce872b2780067036c5223d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Fri, 12 May 2017 11:34:09 +0200 Subject: [PATCH] Require that the document is fully active in requestFullscreen() Test: https://github.com/w3c/web-platform-tests/pull/5901 --- fullscreen.bs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fullscreen.bs b/fullscreen.bs index efe1364..b461e28 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -193,10 +193,15 @@ these steps:
  1. Let pending be the context object. -

  2. Let error be false. +

  3. Let pendingDoc be pending's node document.

  4. Let promise be a new promise. +

  5. If pendingDoc is not fully active, then reject promise with a + TypeError exception and return promise. + +

  6. Let error be false. +

  7. If any of the following conditions are false, then set error to true: @@ -216,7 +221,7 @@ these steps:

  8. Return promise, and run the remaining steps in parallel. -

  9. If error is false: Resize pending's +

  10. If error is false: Resize pendingDoc's top-level browsing context's active document's viewport's dimensions to match the dimensions of the screen of the output device. Optionally display a message how the end user can revert this.