-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<iframe> and Window's named properties #145
Comments
So if an I think that for named properties it would make sense to not expose |
Makes sense. (There are other related issues too, I think even bugs filed, about iframes in shadow DOM. For example how should history API work?) |
The basic rule should be:
We might want to judge case by case carefully, however, we should honer this basic rule as possible as we can. In a strict sense, we should use an "unclosed node" in this rule because it's okay to see a node in the parent tree. |
That matches my assumptions. @smaug---- that would be #184. I'm not entirely sure how that should work, but we can discuss it there. |
For this issue, can we conclude that
and close? |
Ah, I didn't understand
then. https://html.spec.whatwg.org/multipage/browsers.html#accessing-other-browsing-contexts
so we don't have to touch the spec, either. |
I think we do, since the named property access text is not as precise at the moment... |
Ah, okay, I'll take a look today. |
Sorry for not saying something sooner, but I think once whatwg/html#1312 lands this should not be too hard to define as an addition to that algorithm. |
Thanks, it helps. |
@TakayoshiKochi It looks whatwg/html#1312 was merged. Do you have any action item for this issue? |
There is an action item here. We need to update https://html.spec.whatwg.org/#child-browsing-context and decide whether to change "in a document" to "in a document tree" or "is connected". It may be possible that we need to change it to "is connected" for other parts of the spec to make sense, but we still want to not include browsing context names unless they are "in a document tree". In that case we should both update the definition of child browsing context, but also update https://html.spec.whatwg.org/#child-browsing-context-name-property-set to add an additional "in a document tree" check (or some similar check that the browsing context container's root is a document). That seems most likely. Let's assign this to me. I was recently messing with child browsing context stuff and can take this on. It sounds like there is consensus to not include them in the name property set. |
Oh :(. I really don't want to solve #184 here as that seems to have turned into a super-complex idea that overhauls how history works in browser implementations. Maybe I will leave "in a document" in the definition of child browsing context to reflect that we are unsure about #184, but add an additional "in a document tree" check to the browsing context names check for a targeted fix there. |
Should |
Part of WICG/webcomponents#145. Although we don't want to expose such shadow-encapsulated browsing contexts via indexed or named property access on the Window, we in general do want to treat them as child browsing contexts. (A subsequent commit will change named and indexed property access.)
Per discussion in WICG/webcomponents#145 and WICG/webcomponents#536, elements in shadow trees should not contribute to the named properties of Window and Document objects, and should not contribute to the indexed properties of Window objects. This makes that very clear, by using "in a document tree" appropriately and defining "document-tree child browsing context" for use in the Window case. Fixes WICG/webcomponents#145. Fixes WICG/webcomponents#536.
I have a pull request for this at whatwg/html#1625. I assumed that #536 would be resolved in favor of not using other elements' ids and names in the named properties. |
yes, at least as long as we don't have any stronger encapsulation than 'closed'. |
Part of WICG/webcomponents#145. Although we don't want to expose such shadow-encapsulated browsing contexts via indexed or named property access on the Window, we in general do want to treat them as child browsing contexts. (A subsequent commit will change named and indexed property access.)
Part of WICG/webcomponents#145. Although we don't want to expose such shadow-encapsulated browsing contexts via indexed or named property access on the Window, we in general do want to treat them as child browsing contexts. (A subsequent commit will change named and indexed property access.)
Per discussion in WICG/webcomponents#145 and WICG/webcomponents#536, elements in shadow trees should not contribute to the named properties of Window and Document objects, and should not contribute to the indexed properties of Window objects. This makes that very clear, by using "in a document tree" appropriately and defining "document-tree child browsing context" for use in the Window case. Fixes WICG/webcomponents#145. Fixes WICG/webcomponents#536.
Title: [Shadow](assuming iframes should work inside shadow DOM) Should the contentWindow objects of iframes in shadow DOM show up in window.frames? (bugzilla: 28086)
Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28086
comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28086#c0
Olli Pettay wrote on 2015-02-23 23:28:45 +0000.
.
comment: 1
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28086#c1
Tab Atkins Jr. wrote on 2015-02-24 02:27:14 +0000.
Kneejerk reaction: no, it shouldn't, because the contents of the shadow DOM should be hidden by default.
(And yes, iframes totally work inside shadow DOM, why wouldn't they?)
comment: 2
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28086#c2
Olli Pettay wrote on 2015-02-24 13:16:01 +0000.
Yeah, I agree it shouldn't, but per specs... well, not sure, because
iframe handling in shadow DOM isn't really spec'ed.
(iframes shouldn't per current specs work in shadow DOM.
https://code.google.com/p/chromium/issues/detail?id=393350
Afaik everyone agrees they they should work,
but there are several spec bugs to fix.
Like this and bug 27325 and bug 26365)
The text was updated successfully, but these errors were encountered: