Closed
Bug 788401
Opened 12 years ago
Closed 12 years ago
Avoid warnings in EventUtils.synthesizeWheel()
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file, 1 obsolete file)
1.93 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
In the test log, there are some warnings:
> JavaScript strict warning: chrome://mochikit/content/tests/SimpleTest/EventUtils.js, line 310: reference to undefined property aEvent.deltaX
> JavaScript strict warning: chrome://mochikit/content/tests/SimpleTest/EventUtils.js, line 314: reference to undefined property aEvent.deltaY
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #658377 -
Flags: review?(bugs)
Comment 2•12 years ago
|
||
Comment on attachment 658377 [details] [diff] [review]
Patch
Do we need to change aEvent.lineOrPageDeltaX != null too?
I mean, is it possible that aEvent.lineOrPageDeltaX is undefined, and would
that cause a warning?
Attachment #658377 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #2)
> Do we need to change aEvent.lineOrPageDeltaX != null too?
Hmm, I guess it's not problem because it's checking the fact but I'll check it later.
Assignee | ||
Comment 4•12 years ago
|
||
Smaug:
It's not a problem, browser_overflowScroll.js calls it only with deltaX and deltaMode. However, there is no warnings with this patch:
https://tbpl.mozilla.org/php/getParsedLog.php?id=15002058&tree=Try&full=1
https://tbpl.mozilla.org/php/getParsedLog.php?id=15003870&tree=Try&full=1
https://tbpl.mozilla.org/php/getParsedLog.php?id=15003290&tree=Try&full=1
This patch makes the method simpler than the previous patch. I'd like to use this instead.
Attachment #658377 -
Attachment is obsolete: true
Attachment #658807 -
Flags: review?(bugs)
Updated•12 years ago
|
Attachment #658807 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Target Milestone: --- → mozilla18
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•