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

Throw when accessing IDL members on arbitrary objects with platform prototypes #11600

Closed
nox opened this issue Jun 4, 2016 · 2 comments
Closed
Labels
A-content/bindings The DOM bindings A-content/dom Interacting with the DOM from web content I-wrong An incorrect behaviour is observed.

Comments

@nox
Copy link
Contributor

nox commented Jun 4, 2016

See the test tests/wpt/web-platform-tests/dom/collections/HTMLCollection-as-proto-length-get-throws.html.

We probably don't implement the various "if O is not a platform object that implements interface I, throw a TypeError" steps that the WebIDL spec defines.

@nox nox added A-content/dom Interacting with the DOM from web content A-content/bindings The DOM bindings I-wrong An incorrect behaviour is observed. labels Jun 4, 2016
@nox
Copy link
Contributor Author

nox commented Jun 4, 2016

Blocks #2185.

@Ms2ger
Copy link
Contributor

Ms2ger commented Jun 6, 2016

This was fixed for Gecko in https://bugzilla.mozilla.org/show_bug.cgi?id=785941; the bug in Servo is probably similar.

bors-servo pushed a commit that referenced this issue Aug 24, 2016
Pass the receiver to get_property_on_prototype (fixes #11600)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13017)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Aug 24, 2016
Pass the receiver to get_property_on_prototype (fixes #11600)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13017)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Aug 24, 2016
Pass the receiver to get_property_on_prototype (fixes #11600)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13017)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Aug 25, 2016
Pass the receiver to get_property_on_prototype (fixes #11600)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13017)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Aug 25, 2016
Pass the receiver to get_property_on_prototype (fixes #11600)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13017)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-content/bindings The DOM bindings A-content/dom Interacting with the DOM from web content I-wrong An incorrect behaviour is observed.
Projects
None yet
Development

No branches or pull requests

2 participants