<?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>27325</bug_id>
          
          <creation_ts>2014-11-14 12:33:35 +0000</creation_ts>
          <short_desc>[Shadow]: Figure out how session history should work for &lt;iframe&gt;s in shadow DOM</short_desc>
          <delta_ts>2015-07-06 08:03:13 +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>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>---</target_milestone>
          <dependson>20144</dependson>
    
    <dependson>26365</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olli Pettay">bugs</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>rniwa</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114930</commentid>
    <comment_count>0</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2014-11-14 12:33:35 +0000</bug_when>
    <thetext>Currently &lt;iframe&gt;s shouldn&apos;t be loaded at all in shadow DOM, but that
will probably change in bug 26365.

If some pages are then loaded to a shadow iframe, should the pages end up to
session history?
https://html.spec.whatwg.org/multipage/browsers.html#traverse-the-history-by-a-delta is the tricky part, and 
https://html.spec.whatwg.org/multipage/browsers.html#joint-session-history in particular.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114935</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-11-14 15:49:50 +0000</bug_when>
    <thetext>I would really like to have as little difference between an iframe in a shadow tree and a document tree as possible. For the developer, the shadow tree should walk and quack like a document tree :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114937</commentid>
    <comment_count>2</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2014-11-14 16:09:08 +0000</bug_when>
    <thetext>Well, integrating shadow &lt;iframe&gt;&apos;s history to the rest of the page reveals 
information that there is an &lt;iframe&gt;. And especially if and when we get the proper information hiding, this will be an issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114946</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-11-14 19:29:45 +0000</bug_when>
    <thetext>(In reply to Olli Pettay from comment #2)
&gt; Well, integrating shadow &lt;iframe&gt;&apos;s history to the rest of the page reveals 
&gt; information that there is an &lt;iframe&gt;. And especially if and when we get the
&gt; proper information hiding, this will be an issue.

I see. Yes, this is applicable for the &quot;closed/private&quot; mode (bug 20144).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114968</commentid>
    <comment_count>4</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2014-11-15 15:59:46 +0000</bug_when>
    <thetext>Not only to that, IMO. If we just randomly expose information about the shadow DOM to the outside world, what is the use of shadow DOM.

I consider this similar to https://code.google.com/p/chromium/issues/detail?id=394327 though less critical given that session history is rather
odd beast anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114969</commentid>
    <comment_count>5</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2014-11-15 16:00:53 +0000</bug_when>
    <thetext>Also, I think it is more important to have consistency within
shadow DOM, whether or not we&apos;re in closed/private mode, than consistency
with the normal DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114970</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-11-15 16:18:08 +0000</bug_when>
    <thetext>(In reply to Olli Pettay from comment #4)
&gt; Not only to that, IMO. If we just randomly expose information about the
&gt; shadow DOM to the outside world, what is the use of shadow DOM.
&gt; 
&gt; I consider this similar to
&gt; https://code.google.com/p/chromium/issues/detail?id=394327 though less
&gt; critical given that session history is rather
&gt; odd beast anyway.

I agree about the priority.

As for the use of shadow DOM, I would like for us to get on the same page. I tried to write the main goal here: https://gist.github.com/dglazkov/efd2deec54f65aa86f2e. This aligns closely with the thrust of the very early explorations of the problem: http://www.w3.org/2008/webapps/wiki/Component_Model_Use_Cases#Layout_Manager

In this perspective, exposing information or making Shadow DOM presence detectable is not as big of a concern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121625</commentid>
    <comment_count>7</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:03:13 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/184</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>