You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement indexed access on Window (window.frames). #4589
That's correct. You can see the implementation in the various proxy handler methods on nsOuterWindowProxy in Gecko.
This is, in fact, the only sane way to implement it without major spidermonkey changes, since you want the thing that has these indexed props to be a proxy and SpiderMonkey doesn't support proxies as globals.
I've implemented IndexedGetter and it works as expected. However, the finer points of the specification aren't met. Specifically servo is missing gecko's outer+inner window concept. What is there is essentially the inner window. This has two implications w.r.t. to the specified order.
The initial order depends on the order in which frames' documents are loaded. Also, the window is not accessible until it was asynchronously loaded (Iframe.contentWindow always returns null #5500).
Whenever a frame's document changes, its browsing context is moved to the end of the list. (Its Page is removed from page.children and a new one pushed onto it).
TL;DR: The initial order may be wrong and it may incorrectly change on top of that. To fix this, something like geckos outer+inner window pairing is needed. I would like to work on that, unless there are plans for some other solution.
Activity
Ms2ger commentedon Jan 9, 2015
Blocks #2968, #2185.
bzbarsky commentedon Jan 9, 2015
That's correct. You can see the implementation in the various proxy handler methods on nsOuterWindowProxy in Gecko.
This is, in fact, the only sane way to implement it without major spidermonkey changes, since you want the thing that has these indexed props to be a proxy and SpiderMonkey doesn't support proxies as globals.
evilpie commentedon Jan 9, 2015
I will try to implement parts of the WindowProxy based on the nsOuterWindowProxy in Gecko.
auto merge of #4594 : evilpie/servo/window-proxy, r=jdm
Ms2ger commentedon Jan 12, 2015
What remains to be done is implementing
IndexedGetteron Window; it always returnsNonenow.servo#4589 - Implement indexed access on Window (window.frames).
servo#4589 - Implement indexed access on Window (window.frames).
benschulz commentedon Jun 23, 2015
I've implemented IndexedGetter and it works as expected. However, the finer points of the specification aren't met. Specifically servo is missing gecko's outer+inner window concept. What is there is essentially the inner window. This has two implications w.r.t. to the specified order.
Pageis removed frompage.childrenand a new one pushed onto it).TL;DR: The initial order may be wrong and it may incorrectly change on top of that. To fix this, something like geckos outer+inner window pairing is needed. I would like to work on that, unless there are plans for some other solution.
bzbarsky commentedon Jun 23, 2015
You need the inner/outer thing for basic web compat anyway, so I doubt there should be any other plans...
jdm commentedon Jun 23, 2015
We do actually have an inner/outer concept already, it's just incorrect. That's tracked in #5238.
6 remaining items
asajeffrey commentedon Apr 9, 2018
The IRC chat: https://mozilla.logbot.info/servo/20180409#c14583689
@KiChjang I think we're going to need some RPC to get the state of the browsing context tree from the constellation to the script thread.
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=<try>
Auto merge of #20615 - KiChjang:window-indexed-getter, r=emilio
Auto merge of #20615 - KiChjang:window-indexed-getter, r=emilio
Auto merge of #20615 - KiChjang:window-indexed-getter, r=emilio