<?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>26584</bug_id>
          
          <creation_ts>2014-08-14 13:47:03 +0000</creation_ts>
          <short_desc>&quot;fully exit fullscreen&quot; is not invoked for normal navigation</short_desc>
          <delta_ts>2015-10-06 08:00:53 +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>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-history-interface</bug_file_loc>
          <status_whiteboard>blocked on dependencies</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>26813</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</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>roc</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110178</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-08-14 13:47:03 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#the-history-interface
Complete: http://www.whatwg.org/c#the-history-interface
Referrer: 

Comment:
&quot;fully exit fullscreen&quot; is not invoked for normal navigation

Posted from: 185.26.182.28
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.35 Safari/537.36 OPR/24.0.1558.21 (Edition Developer)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110179</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-14 13:49:19 +0000</bug_when>
    <thetext>&quot;fully exit fullscreen&quot; is only invoked by &quot;traverse the history by a delta&quot;, which is used for go(), back() and forward().

The fullscreen spec claims that &quot;HTML invokes the fully exit fullscreen algorithm for navigation.&quot; which isn&apos;t entirely accurate.

What&apos;s the point of exiting fullscreen in these cases but not e.g. when the user followsa link in fullscreen?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110180</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-14 13:50:16 +0000</bug_when>
    <thetext>Context/history:
http://krijnhoetmer.nl/irc-logs/whatwg/20140814#l-567
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18840</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110181</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-14 13:50:57 +0000</bug_when>
    <thetext>annevk and roc probably have opinions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110202</commentid>
    <comment_count>4</comment_count>
    <who name="Robert O&apos;Callahan (Mozilla)">roc</who>
    <bug_when>2014-08-14 22:26:47 +0000</bug_when>
    <thetext>I don&apos;t remember trying to distinguish different navigation methods. I thought we should exit fullscreen on all toplevel navigations.

Basically I&apos;m worried that if you go fullscreen and we show a message about domain A being fullscreen, it&apos;s easy to navigate that browsing context to domain B without A necessarily blessing that navigation. For example if you click on an ad. Also I think if A was window.opened by B, then B can later navigate that window to another B page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110203</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-14 22:42:04 +0000</bug_when>
    <thetext>(In reply to Robert O&apos;Callahan (Mozilla) from comment #4)
&gt; I don&apos;t remember trying to distinguish different navigation methods. I
&gt; thought we should exit fullscreen on all toplevel navigations.

Is that top-level only? Should navigating an iframe (fully) exit fullscreen? I don&apos;t think the HTML spec makes the distinction, but I&apos;m not very familiar with navigation.

How about when a popup is opened while in fullscreen? Chromium will exit fullscreen in that case:
https://code.google.com/p/chromium/issues/detail?id=304547

&gt; Basically I&apos;m worried that if you go fullscreen and we show a message about
&gt; domain A being fullscreen, it&apos;s easy to navigate that browsing context to
&gt; domain B without A necessarily blessing that navigation. For example if you
&gt; click on an ad. Also I think if A was window.opened by B, then B can later
&gt; navigate that window to another B page.

Do you (want to) distinguish between same-origin and cross-origin navigation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110204</commentid>
    <comment_count>6</comment_count>
    <who name="Robert O&apos;Callahan (Mozilla)">roc</who>
    <bug_when>2014-08-14 23:54:01 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #5)
&gt; (In reply to Robert O&apos;Callahan (Mozilla) from comment #4)
&gt; &gt; I don&apos;t remember trying to distinguish different navigation methods. I
&gt; &gt; thought we should exit fullscreen on all toplevel navigations.
&gt; 
&gt; Is that top-level only? Should navigating an iframe (fully) exit fullscreen?

I don&apos;t think navigating an iframe should exit fullscreen, because the domain the user is trusting has not changed.

&gt; How about when a popup is opened while in fullscreen? Chromium will exit
&gt; fullscreen in that case:
&gt; https://code.google.com/p/chromium/issues/detail?id=304547

No opinion on that.

&gt; &gt; Basically I&apos;m worried that if you go fullscreen and we show a message about
&gt; &gt; domain A being fullscreen, it&apos;s easy to navigate that browsing context to
&gt; &gt; domain B without A necessarily blessing that navigation. For example if you
&gt; &gt; click on an ad. Also I think if A was window.opened by B, then B can later
&gt; &gt; navigate that window to another B page.
&gt; 
&gt; Do you (want to) distinguish between same-origin and cross-origin navigation?

No opinion on that either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110207</commentid>
    <comment_count>7</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-15 08:14:39 +0000</bug_when>
    <thetext>It sounds like at a minimum, cross-origin top-level navigation should fully exit fullscreen, regardless of how that navigation happens. That doesn&apos;t match the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110260</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-08-18 20:50:01 +0000</bug_when>
    <thetext>Weird. Why is this in &quot;traverse history by a delta&quot; and not just &quot;traverse&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110263</commentid>
    <comment_count>9</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-08-18 21:18:14 +0000</bug_when>
    <thetext>Weird indeed. It&apos;s been like that since the beginning:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18840
http://html5.org/tools/web-apps-tracker?from=7563&amp;to=7564

If you don&apos;t know why, I don&apos;t think anybody does :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111561</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-15 23:25:08 +0000</bug_when>
    <thetext>Added XXX26584 markers to the spec while I wait for bug 26813. Basically I just need to add something to &quot;update the session history with the new page&quot; and to &quot;discard a  Document&quot;, I think, that is similar to what&apos;s already in the spec. Either that, or move the text from the current place to the &quot;traverse&quot; algorithm and the &quot;discard&quot; algorithm, not quite sure yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111563</commentid>
    <comment_count>11</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-09-15 23:32:24 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8774.
Check-in comment: Add some internal editorial notes for forthcoming fullscreen edits
https://html5.org/tools/web-apps-tracker?from=8773&amp;to=8774</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123495</commentid>
    <comment_count>12</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-10-06 08:00:53 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/230</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>