Repository navigation
rework webdriver deserialization to avoid false-positive cycle error - #36908
Conversation
|
To make it always pass, need to solve synchronizatoin issue. |
|
Another thing baffling me right now is the following: sometimes the first mousemove won't occur.. But they are all MouseEvent and should follow the same route tho. #35685 (comment) |
| match jsval_to_webdriver_inner(cx, global_scope, value.handle(), seen) { | ||
| Ok(converted_item) => Ok(converted_item), | ||
| err @ Err(_) => return err, | ||
| } |
There was a problem hiding this comment.
error: this match expression is unnecessary
--> components/script/webdriver_handlers.rs:357:17
|
357 | / match jsval_to_webdriver_inner(cx, global_scope, value.handle(), seen) {
358 | | Ok(converted_item) => Ok(converted_item),
359 | | err @ Err(_) => return err,
360 | | }
| |_________________^ help: replace it with: `jsval_to_webdriver_inner(cx, global_scope, value.handle(), seen)`
I think Clippy has bugs... The suggested way has totally different logic. With its suggestion, Step 5 would be run even with failure..
To get around it, I am thinking about
| match jsval_to_webdriver_inner(cx, global_scope, value.handle(), seen) { | |
| Ok(converted_item) => Ok(converted_item), | |
| err @ Err(_) => return err, | |
| } | |
| Ok(jsval_to_webdriver_inner(cx, global_scope, value.handle(), seen)?) |
There was a problem hiding this comment.
I prefer this replacement over the match.
| match jsval_to_webdriver_inner(cx, global_scope, value.handle(), seen) { | ||
| Ok(converted_item) => Ok(converted_item), | ||
| err @ Err(_) => return err, | ||
| } |
There was a problem hiding this comment.
I prefer this replacement over the match.
|
Should I also update potentially affected wpt-test results like #36744? Even tho it is not in CI yet. |
|
Yes please! |
b979208 to
fdbfe57
Compare
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
fdbfe57 to
381ae60
Compare
I think I finally know why this happens! The hit-test is unstable, and sometimes has length servo/components/compositing/compositor.rs Lines 315 to 317 in 2aaf969 And this can happen for any input event here: So there are So #36676 is due to two reasons:
As for why the hit test is unstable, I have not checked yet. |
Correction: servo/components/compositing/compositor.rs Lines 326 to 332 in 2aaf969 has unmatched epoch with a low probability. This part is same as #35788 (comment) |



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