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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comprehensive coverage for WindowProperties object #27970

Conversation

shvaikalesh
Copy link
Member

@shvaikalesh shvaikalesh commented Mar 9, 2021

Implementation bugs

This PR tests exclusively the current spec for named properties object.

  • Gecko (tested on Firefox Dev 89.0b14):

    1. [[GetOwnProperty]] doesn't return supported properties that are indices.
    2. Reflect.set and Reflect.defineProperty incorrectly throw TypeError in case of failure.
    3. [[OwnPropertyKeys]] is not an ordinary method.
  • Blink (tested on Chrome 92.0.4512.0):

    1. [[DefineOwnProperty]] doesn't fail for string keys, allowing expando properties. 馃帀 Now fixed! 馃帀
    2. [[DefineOwnProperty]] doesn't fail for symbols.
    3. Reflect.defineProperty incorrectly returns true for string properties (supported & not).
    4. [[Get]] fails to perform named property visibility algorithm for supported indexed properties.
    5. [[Set]] doesn't fail for symbols.
    6. Reflect.set incorrectly return true for string properties (supported & not).
    7. [[Delete]] doesn't fail for symbols.
  • WebKit: all passing with bug #222918.

@domenic
Copy link
Member

domenic commented Mar 11, 2021

I'll hold off on reviewing this until we settle whatwg/webidl#963; please ping for re-review if I don't get to it then!

@shvaikalesh shvaikalesh force-pushed the named-properties-object-allow-symbols branch from a89845b to b96e64b Compare May 18, 2021 15:34
@shvaikalesh
Copy link
Member Author

@domenic Hey, I've decided not to pursue the spec changes and updated this PR to match the current spec. Although these tests were already approved by a WebKit reviewer, I was hoping you could take a look as well?

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Shall we close whatwg/webidl#963 and file bugs on Blink and Gecko?

@shvaikalesh
Copy link
Member Author

Thank you for reviewing this Domenic! I've closed the issue and filed implementation bugs:

@shvaikalesh shvaikalesh merged commit 4b3a24b into web-platform-tests:master May 20, 2021
@shvaikalesh shvaikalesh deleted the named-properties-object-allow-symbols branch May 20, 2021 18:38
shvaikalesh added a commit that referenced this pull request May 20, 2021
var names = Object.getOwnPropertyNames(gsp);
assert_equals(names.filter((name) => name == "baz").length, 1);

assert_equals(gsp.baz, document.getElementsByTagName("iframe")[1]);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, this is wrong. #29063

shvaikalesh added a commit that referenced this pull request May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants