Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e518ed345299d2c409359760cd425469545342a2
https://github.com/WebKit/WebKit/commit/e518ed345299d2c409359760cd425469545342a2
Author: Brent Fulgham <[email protected]>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.js
M WebDriverTests/TestExpectations.json
Log Message:
-----------
REGRESSION(320518@main): stale node returned from a script reports "no such
element"
https://bugs.webkit.org/show_bug.cgi?id=323695
rdar://187510557
Reviewed by Zak Ridouh and Taher Ali.
320518@main mapped NodeNotFound to "no such element", but _createNodeHandle()
still threw NodeNotFound when a script returned a node that is disconnected
or belongs to another document. The internal JSON clone algorithm requires
"stale element reference" for a stale element, so throw StaleNode for
elements, which the result path already maps to that error.
Other node types keep throwing NodeNotFound. A detached shadow root should
report "detached shadow root" (bug 230612), and other nodes have their own
serialization gap (bug 320453); both are already expected to fail.
* Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.js:
(let.AutomationSessionProxy.prototype._createNodeHandle):
* WebDriverTests/TestExpectations.json:
Canonical link: https://commits.webkit.org/322221@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications