<?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>26813</bug_id>
          
          <creation_ts>2014-09-15 23:21:16 +0000</creation_ts>
          <short_desc>Removing parent of element that&apos;s full screen</short_desc>
          <delta_ts>2015-10-06 08:01:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>26584</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111560</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-15 23:21:16 +0000</bug_when>
    <thetext>https://fullscreen.spec.whatwg.org/#model

What happens when:
* you remove an ancestor of an element that&apos;s fullscreen?
* you remove the iframe browsing context container of the browsing context of an element that&apos;s fullscreen?
* you navigate an ancestor browsing context of the browsing context of an element&apos;s that fullscreen?

Should I be speccing some of these?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111562</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-15 23:25:48 +0000</bug_when>
    <thetext>* the document that the fullscreen element is in has its document.open() method invoked, causing the Document to be recycled but the element to go away?
* window.close() is called?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111886</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-20 17:19:15 +0000</bug_when>
    <thetext>&gt; you remove an ancestor of an element that&apos;s fullscreen?

https://github.com/whatwg/fullscreen/commit/b9f36a4db4f298004463062f19f903a3117629bb

&gt; you remove the iframe browsing context container of the browsing context of an element that&apos;s fullscreen?

That&apos;s also covered by the above. An iframe would itself be on a stack.

&gt; you navigate an ancestor browsing context of the browsing context of an element&apos;s that fullscreen?

This one is up to HTML to define I think.

&gt; the document that the fullscreen element is in has its document.open() method invoked, causing the Document to be recycled but the element to go away?

I hate document.open() and have no good suggestions at the moment. I suspect we&apos;d want this to exit fullscreen.

&gt; window.close() is called?

Seems the same as if you hit (x) in the browser, probably exits fullscreen?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112091</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-24 17:41:48 +0000</bug_when>
    <thetext>Any idea how I should phrase this in the HTML spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112165</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-25 08:07:28 +0000</bug_when>
    <thetext>Just invoke the fully exit fullscreen algorithm from those places? Perhaps Philip can help out. He&apos;s been fixing Fullscreen bugs since forever.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112207</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-25 22:28:42 +0000</bug_when>
    <thetext>Won&apos;t calling &quot;fully exit&quot; cause it to exit even if the condition isn&apos;t exactly met? I mean, for example, if document.open() is called on the Doc of an iframe descendant of the element that&apos;s full screen, you wouldn&apos;t want to leave full-screen, surely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112242</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-26 08:45:30 +0000</bug_when>
    <thetext>Yeah, I guess you could first check if document&apos;s fullscreen element stack is non-empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112289</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-26 18:10:47 +0000</bug_when>
    <thetext>Would it be possible for you to provide a hook that does this? Something where I hand you a Document that I know is going away, and you take care of determining if that is a problem and exiting full-screen if it is?

Note that this would be called from such deep and ugly algorithms as &quot;discard a browsing context&quot; and the &quot;unload&quot; steps, so you don&apos;t want to be firing events or queueing tasks or anything if you can help it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112295</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-26 18:22:40 +0000</bug_when>
    <thetext>Can we do it the other way around? Document lifetime hooks seem like a good idea to have in general. I might need them for a revamp to notifications as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112399</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-29 16:52:21 +0000</bug_when>
    <thetext>Sure. There are &quot;unloading document cleanup steps&quot; and &quot;unloading document visibility change steps&quot; already; I&apos;m happy to also add a hook to the history traversal and document discard algorithms, if that would help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112400</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-29 16:52:33 +0000</bug_when>
    <thetext>(Reassign to me if you want me to add something.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112461</commentid>
    <comment_count>11</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-30 13:26:47 +0000</bug_when>
    <thetext>Thanks. I&apos;ll wait for Philip to get back to work on this so we can figure out the appropriate model and then assign as appropriate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117956</commentid>
    <comment_count>12</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-02-16 11:34:34 +0000</bug_when>
    <thetext>Consider me back at work, at least as far as reading and replying to fullscreen bug mail is concerned.

These three seem to be unresolved:

&gt; * you navigate an ancestor browsing context of the browsing context of an
&gt; element&apos;s that fullscreen?

That ancestor must then have an iframe which is the fullscreen element, so there shouldn&apos;t be anything special about this. Is the standard case of navigating a document with a fullscreen element handled well, spec-wise?

&gt; * the document that the fullscreen element is in has its document.open()
&gt; method invoked, causing the Document to be recycled but the element to go
&gt; away?

Does this not indirectly invoke the &quot;Whenever the removing steps run with an oldNode, run these steps&quot; bit in the Fullscreen spec?

&gt; * window.close() is called?

Uh... &quot;fully exit fullscreen&quot; seems appropriate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123496</commentid>
    <comment_count>13</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-10-06 08:01:02 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/230</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>