-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Consider this testcase, where "win" is a cross-origin window with no subframes:
win[1000];
What happens? We land in https://html.spec.whatwg.org/multipage/window-object.html#windowproxy-get and:
- W is the window, fine.
- IsPlatformObjectSameOrigin returns false.
- Call CrossOriginGet.
So that calls https://html.spec.whatwg.org/multipage/browsers.html#crossoriginget-(-o,-p,-receiver-) which does:
- Let desc be
? O.[[GetOwnProperty]](P). - Assert: desc is not undefined.
OK, so what happened under [[GetOwnProperty]]? It called https://html.spec.whatwg.org/multipage/window-object.html#windowproxy-getownproperty and did:
- W is the window.
- P is an array index property name.
2.1 index is 1000.
2.2 maxProperties is 0.
2.3 value is undefined.
2.4 maxProperties is not greater than 0.
2.5 value is undefined, so return undefined.
So it sure looks to me like we would fail that "desc is not undefined" assert.
Metadata
Metadata
Assignees
Labels
No labels