W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2012

[whatwg] Sublties with seamless navigation

From: Adam Barth <w3c@adambarth.com>
Date: Tue, 10 Apr 2012 18:39:05 -0700
Message-ID: <CAJE5ia-OLudZWVcazPWVLwDGMwruJyjjKpcmtUPzbOd8QJX0_w@mail.gmail.com>
Consider the following requirement for seamless iframes:

http://www.whatwg.org/specs/web-apps/current-work/#seamlessLinks

[[
If the source browsing context is the same as the browsing context
being navigated, and this browsing context has its seamless browsing
context flag set, and the browsing context being navigated was not
chosen using an explicit self-navigation override, then find the
nearest ancestor browsing context that does not have its seamless
browsing context flag set, and continue these steps as if that
browsing context was the one that was going to be navigated instead.
]]

However, that requirement seems to be a bit too agressive.  For
example, setting the "src" attribute on the iframe element loads the
document in the iframe using the Navigate keyword.  Should we be more
explicit in <http://www.whatwg.org/specs/web-apps/current-work/#dom-iframe-src>
about what the source browsing context is?  Is it always the browsing
context that contains the <iframe> element, or does it depend on which
script is manipulating the src attribute (e.g., via the DOM)?  Should
setting the src attribute use an explicit self-navigation override?

The easiest solution is probably to specify the source browsing
context explicitly, as we do for window.open
<http://www.whatwg.org/specs/web-apps/current-work/#dom-open> and
location.href <http://www.whatwg.org/specs/web-apps/current-work/#dom-location-href>.

Thanks!
Adam
Received on Tuesday, 10 April 2012 18:39:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:07 GMT