[Webkit-unassigned] [Bug 200735] New: Error thrown during "acceptNode" lookup is overridden

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 14 14:09:18 PDT 2019


            Bug ID: 200735
           Summary: Error thrown during "acceptNode" lookup is overridden
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Test case:
let myError = {name: "test"};
let el = document.createElement("div"); el.append("node");
let walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT, {
    get acceptNode() { throw myError; }

TypeError is thrown

myError is thrown

WPT: https://github.com/web-platform-tests/wpt/pull/15122
WebIDL: https://heycam.github.io/webidl/#call-a-user-objects-operation (step 10.2)

Both Firefox 68 and Chrome 76 throw correct error.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190814/e5ba3a5a/attachment.html>

More information about the webkit-unassigned mailing list