rework webdriver deserialization to avoid false-positive cycle error (#36908)

1. Avoid false-positive cycle error when deserilizing
 - Only detect cycle for Objects
  - Remove last element of seen when success
2. Cite spec

Testing: `./mach test-wpt --product servodriver -r
tests\wpt\tests\webdriver\tests\classic\element_click\events.py`
Fixes: #36890 
cc @jdm @xiaochengh

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-05-08 21:54:58 +08:00 committed by GitHub
parent b6b80d4f6f
commit f58b0c6ad4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 30 additions and 22 deletions

View file

@ -1,7 +1,4 @@
[collections.py]
[test_array_in_array]
expected: FAIL
[test_file_list]
expected: FAIL

View file

@ -4,6 +4,3 @@
[test_html_all_collection]
expected: FAIL
[test_array_in_array]
expected: FAIL