thisValue is not always set correctly when calling JS callbacks. This is causing us to fail the last subtest on: http://w3c-test.org/dom/traversal/TreeWalker-acceptNode-filter.html The specification for TreeWalker is here: - https://dom.spec.whatwg.org/#concept-node-filter Step 6 refers to [call a user object’s operation] in the WebIDL specification: - https://heycam.github.io/webidl/#call-a-user-objects-operation Step 10.5 says: "Set thisArg to O (overriding the provided value)." We're missing this step in our implementation so thisValue ends up being undefined (per earlier step 2).
Created attachment 405310 [details] Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Committed r264948: <https://trac.webkit.org/changeset/264948> All reviewed patches have been landed. Closing bug and clearing flags on attachment 405310 [details].
<rdar://problem/66184276>
*** Bug 213716 has been marked as a duplicate of this bug. ***