Closed
Bug 1299199
Opened 8 years ago
Closed 8 years ago
[Pointer Events] Replace all `sendPointerEvent()` with `sendMouseEvent()` in testcases.
Categories
(Core :: DOM: Events, defect, P2)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: bhsu, Assigned: bhsu)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
1.92 KB,
patch
|
smaug
:
review+
bevis
:
feedback+
|
Details | Diff | Splinter Review |
8.36 KB,
patch
|
smaug
:
review+
bevis
:
feedback+
|
Details | Diff | Splinter Review |
Now, we can directly synthesize WidgetMouseEvents, WidgetTouchEvents, and
WidgetPointerEvents in testcases. However, WidgetPointerEvents are only created after `PresShell`, so the test automation API shouldn't send WidgetPointerEvents directly. Instead, we should only send WidgetMouseEvents and WidgetTouchEvents, and let Gecko create WidgetPointerEvents itself.
Comment 1•8 years ago
|
||
Hi Ben, if I understand your plan correctly, this is something we aim at by the end of this quarter. So, I mark it as P2, i.e. in the next release/few months. Let me know if I misunderstand the plan.
Priority: -- → P2
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → bhsu
Assignee | ||
Comment 2•8 years ago
|
||
Assignee | ||
Comment 3•8 years ago
|
||
Assignee | ||
Comment 4•8 years ago
|
||
Attachment #8788407 -
Attachment is obsolete: true
Assignee | ||
Comment 5•8 years ago
|
||
Attachment #8788478 -
Attachment is obsolete: true
Assignee | ||
Comment 6•8 years ago
|
||
The first patch replaces all `sendPointerEvent()` to `sendMouseEvent()`, but the widget event sequences are neither verified nor updated in this patch. Given the fact that Gecko generates widget pointer events itself, doing this doesn't change the behavior of any testcase.
The second patch removes `sendPointerEvent()` only in `mochitest_support_external.js`. In fact, I am thinking remove this method entirely, but IMHO we should secure the sanity of the test automation and testcases first, and file another bug to investigate whether and how to remove `sendPointerEvent()` entirely (i.e., in EventUtils.js).
Assignee | ||
Comment 7•8 years ago
|
||
Comment on attachment 8788408 [details] [diff] [review]
Part 2: Remove `sendPointerEvent` in mochitest_support_external.js.
Hi Bevis, and sorry for bothering you again.
Do you mind giving feedback on these two patches?
Please refer to comment 6 for more information.
Attachment #8788408 -
Flags: feedback?(btseng)
Assignee | ||
Updated•8 years ago
|
Attachment #8788734 -
Flags: feedback?(btseng)
Updated•8 years ago
|
Attachment #8788734 -
Flags: feedback?(btseng) → feedback+
Comment 8•8 years ago
|
||
Comment on attachment 8788408 [details] [diff] [review]
Part 2: Remove `sendPointerEvent` in mochitest_support_external.js.
Review of attachment 8788408 [details] [diff] [review]:
-----------------------------------------------------------------
This is our 1st step to clean up the abuse of synthesizePointer in pointerevent test cases.
The next step is to clean up the use of synthesizePointer in the test framework.
Please have a followup bug for tracking this, thanks!
Attachment #8788408 -
Flags: feedback?(btseng) → feedback+
Assignee | ||
Comment 9•8 years ago
|
||
(In reply to Bevis Tseng[:bevistseng][:btseng] from comment #8)
>
> Please have a followup bug for tracking this, thanks!
Thanks for reminding, bug 1302034 is filed for tracking this :)
Assignee | ||
Comment 10•8 years ago
|
||
Comment on attachment 8788408 [details] [diff] [review]
Part 2: Remove `sendPointerEvent` in mochitest_support_external.js.
Hi Olli,
Do you mind reviewing these patches? The detailed description is in comment 6, and the following bug 1302034 is also fired.
Attachment #8788408 -
Flags: review?(bugs)
Assignee | ||
Updated•8 years ago
|
Attachment #8788734 -
Flags: review?(bugs)
Updated•8 years ago
|
Attachment #8788408 -
Flags: review?(bugs) → review+
Updated•8 years ago
|
Attachment #8788734 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 11•8 years ago
|
||
Keywords: checkin-needed
Comment 12•8 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/48d5b33726be
Part 1: Replace 'sendPointerEvent()' with 'sendMouseEvent()' in testcases. f=btseng, r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/4569b204d657
Part 2: Remove 'sendPointerEvent' from mochitest_support_external.js. f=btseng, r=smaug
Keywords: checkin-needed
Comment 13•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/48d5b33726be
https://hg.mozilla.org/mozilla-central/rev/4569b204d657
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•