Skip to content
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

window[0] is throwing an SyntaxError #24943

Closed
pshaughn opened this issue Nov 29, 2019 · 3 comments
Closed

window[0] is throwing an SyntaxError #24943

pshaughn opened this issue Nov 29, 2019 · 3 comments

Comments

@pshaughn
Copy link
Member

@pshaughn pshaughn commented Nov 29, 2019

WPT xhr/open-url-multi-window-* and xhr/open-url-about-blank-window try to find an iframe as self[0], where self is window, and throw "The string did not match the expected pattern." which is defined in script/dom/domexception.rs as the SyntaxError message.

@jdm
Copy link
Member

@jdm jdm commented Nov 29, 2019

This is caused by the missing indexed getter:

//getter WindowProxy (unsigned long index);

@jdm jdm added the A-content/dom label Nov 29, 2019
@jdm jdm added this to To do in web-platform-test failures via automation Nov 29, 2019
@jdm
Copy link
Member

@jdm jdm commented Nov 29, 2019

That being said, the spec doesn't include an indexed getter on the Window interface, and instead includes the GetOwnProperty spec text for WindowProxy: https://html.spec.whatwg.org/multipage/window-object.html#windowproxy-getownproperty

@pshaughn
Copy link
Member Author

@pshaughn pshaughn commented Nov 29, 2019

I am mistaken here; the window[0] part is getting /something/ back, and then something else goes wrong later in the same line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.