WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
259594
Web Automation: Parse WebAutomationSessionProxy as a built-in to get guaranteed non-user-overridden JSC built-ins
https://bugs.webkit.org/show_bug.cgi?id=259594
Summary
Web Automation: Parse WebAutomationSessionProxy as a built-in to get guarante...
Sam Sneddon [:gsnedders]
Reported
2023-07-28 07:15:35 PDT
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
.
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug