<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26673</bug_id>
          
          <creation_ts>2014-08-26 12:59:25 +0000</creation_ts>
          <short_desc>Append topDoc to exitDocs?</short_desc>
          <delta_ts>2014-09-08 07:50:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Fullscreen</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110597</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-26 12:59:25 +0000</bug_when>
    <thetext>http://fullscreen.spec.whatwg.org/#dom-document-exitfullscreen

Since the same thing is done with topDoc as with exitDocs, it would be nice to replace the topDoc bits with e.g. &quot;If exitDocs&apos;s last document has a browsing context container, append that browsing context container&apos;s node document to exitDocs.&quot; after the resize check.

It also looks like it&apos;s possible for topDoc to have an empty fullscreen element stack at this point. Start with a top-level document with a div and an iframe on its stack, and a fullscreen element inside the iframe too. Calling iframe.contentDocument.exitFullscreen() will schedule the animation frame task steps, but resize will be false. If the iframe is moved to another document with nothing on its fullscreen element stack before those steps run, we shouldn&apos;t fire any events on that document. It probably doesn&apos;t matter how we deal with this situation, &quot;fully exit fullscreen&quot; seems fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110646</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-26 21:49:50 +0000</bug_when>
    <thetext>Sorry for mixing issues in a single bug. I filed bug 26676 for in place of the second paragraph.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111155</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-08 07:50:00 +0000</bug_when>
    <thetext>Fixed the first paragraph. No idea how to fix the second, but that&apos;s a separate bug :-)

https://github.com/whatwg/fullscreen/commit/43d2f74803e6e915d2c056d1a5960591a71a0360</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>