You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_events (aka. allEvents.events) of WebDriver test throws exception #36890
Latest update: error is due to seen introduced in #27041 (review)
According to spec, seenshould only be used against Object. But in above test image, first row mousemove button, the button and buttons name have the same property: primitive type 0, which causes the error.
Another thing is we need to
Remove the last element of seen
according to step 5, for the sake of backtracking. Otherwise, "cycle" may be flagged when it should not be. This is not really related to this issue tho.
Therefore I am thinking about a PR "rework script::webdriver_handlers::jsval_to_webdriver_inner to avoid false-positive cycle error"
Activity
yezhizhen commentedon May 7, 2025
Probably some regression, as don't have this problem a few weeks ago.
yezhizhen commentedon May 7, 2025
@servo-highfive assign me
servo-highfive commentedon May 7, 2025
Hey @yezhizhen! Thanks for your interest in working on this issue. It's now assigned to you!
yezhizhen commentedon May 7, 2025
Latest update: error is due to
seenintroduced in #27041 (review)According to spec,
seenshould only be used against Object. But in above test image, first rowmousemove button, thebuttonandbuttonsname have the same property: primitive type0, which causes the error.Another thing is we need to
according to step 5, for the sake of backtracking. Otherwise, "cycle" may be flagged when it should not be. This is not really related to this issue tho.
Therefore I am thinking about a PR "rework
script::webdriver_handlers::jsval_to_webdriver_innerto avoid false-positive cycle error"cc @jdm
jdm commentedon May 7, 2025
Yep, my mistake! Happy to review a fix.
yezhizhen commentedon May 7, 2025
I reviewed that one so I also share the mistake!🤣
Will work in this direction then.
rework webdriver deserialization to avoid false-positive cycle error (#…