[Webkit-unassigned] [Bug 259594] New: Web Automation: Parse WebAutomationSessionProxy as a built-in to get guaranteed non-user-overridden JSC built-ins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 28 07:15:35 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=259594

            Bug ID: 259594
           Summary: Web Automation: Parse WebAutomationSessionProxy as a
                    built-in to get guaranteed non-user-overridden JSC
                    built-ins
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gsnedders at apple.com
                CC: bburg at apple.com, cgarcia at igalia.com,
                    webkit-bug-importer at group.apple.com

rdar://110740489

See also bug 152294 which did similar for the Web Inspector injected script.

Something like this will fail each test:

@pytest.mark.parametrize("expression", [
    ("Promise.prototype.finally"),
    ("Promise.race"),
    ("window.Promise"),
    ("JSON.stringify"),
])
def test_callback(session, expression):
    session.url = "about:blank"
    response = execute_async_script(session, f"""
        let callback = arguments[0];
        delete {expression};
        callback('foobar');
        """)
    assert_success(response, "foobar")

Bug 204151 practically made this worse by introducing all the references to Promises on the common-path, and it's this case (and specifically with Promise.prototype.finally deleted) which was reported as rdar://110740489.

-- 
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/20230728/a9baf9d2/attachment.htm>


More information about the webkit-unassigned mailing list