mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
script: Upgrade node_ids
to pipeline_to_node_ids
to track the owner pipeline of the node (#37213)
Upgrade `ScriptThread::node_ids` to `pipeline_to_node_ids` to track the owner pipeline of the node This will enable webdriver to know if it is requesting element from other origins and properly distinguish "stale element reference" from "no such element". Testing: [Action run](https://github.com/yezhizhen/servo/actions/runs/15385994907), no regression. We can now pass WebDriver "cross origin" tests. Fixes: #35749 --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
2a07ef01f5
commit
c28394f476
5 changed files with 61 additions and 43 deletions
|
@ -132,7 +132,7 @@ fn find_node_by_unique_id(
|
|||
document
|
||||
.upcast::<Node>()
|
||||
.traverse_preorder(ShadowIncluding::Yes)
|
||||
.find(|candidate| candidate.unique_id() == node_id)
|
||||
.find(|candidate| candidate.unique_id(pipeline) == node_id)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue