dispatchMouseEvent test is broken
Categories
(Remote Protocol :: CDP, defect, P3)
Tracking
(firefox78 fixed)
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: etienne, Assigned: etienne)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4128.3 Safari/537.36
Steps to reproduce:
Regarding these tests:
Actual results:
The test succeeds regardless of the event actually firing, because this.mouseDownPromise
is undefined
.
await undefined
works, it just resolves immediately with undefined
Expected results:
I'm guessing the mouseDownPromise
should be saved under content
and not this
Assignee | ||
Comment 1•5 years ago
|
||
The "this" state is not persistent across spawn-calls, using "this" in
"function" also does not make a whole lot of sense.
In order to persist the Promise across spawn-calls, the value is stored
in "content" instead.
Since one cannot reliably return an Event from SpecialPowers.spawn (due
to serialization issues), we are awaiting them instead of returning.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
The actual problem can be reproduced by changing line 33, mousePressed
into something like mouseReleased
.
Without the fix, the test still passes. With the fix, the test fails as expected.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 4•5 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•