mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
script: Fix wrong procedure when deserializing JSValue
from mozjs HandleValue
(#38943)
Spec: https://w3c.github.io/webdriver/#dfn-internal-json-clone This PR 1. moves [clone an object](https://w3c.github.io/webdriver/#dfn-clone-an-object) to `fn clone_an_object` to make things clearer. 2. Fixes the bug where we wrongly put `element` and `WindowProxy` as part of [clone an object](https://w3c.github.io/webdriver/#dfn-clone-an-object), which leads to false-positive `JSError` before. 3. Update spec links to correct ones. Testing: New passing in `{execute_async_script,execute_script}/node.py` --------- Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
parent
08b9eb818c
commit
26fb603d15
3 changed files with 156 additions and 154 deletions
|
@ -5,12 +5,6 @@
|
|||
[test_detached_shadow_root[child_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_stale_element[top_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_stale_element[child_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_element_reference[shadow-root\]]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -5,12 +5,6 @@
|
|||
[test_detached_shadow_root[child_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_stale_element[top_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_stale_element[child_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_web_reference[shadow-root\]]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue