Closed Bug 1102218 Opened 10 years ago Closed 8 years ago

Regression: mouse events no longer fired for SVG elements with large coordinates and translate values

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

33 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox33 --- affected
firefox34 --- affected
firefox35 --- affected
firefox36 --- affected
firefox-esr31 --- unaffected

People

(Reporter: gwilliamson, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20141106120505

Steps to reproduce:

I render a page with SVG content, comprised of SVG path elements.  Under certain conditions, the coordinate system used is changed such that larger coordinate values are used along with larger compensating transform translate values in order to maintain proper geographic positioning.  My application relies on mouseover and mouseout events to function properly.  The actual application is a flavor of geographic mapping application with zoom capabilities, which cause the coordinate transformations.  I have attached a demo app that shows the problem, "working" with "normal" coordinates and "not working" with "large" coordinates.  The actual application and the demo app both work fine in versions up through 32.0.3, and break starting in version 33.0.


Actual results:

The SVG content is rendered perfectly, but when the coordinate system is adjusted so that coordinate and compensating transform translate values exceed roughly 525,000, mouseover, mouseout, and mousemove events are no longer fired in versions 33.0 and above, including version 35.0a2 dated 2014-11-19.  There may be other events missing as well: I have only tested the three events cited above.


Expected results:

The mouseover, mouseout, and mousemove events should be fired when using "large" coordinates and transform translate values as they are when using "normal" coordinates and transform translate values.
Regression window(m-i)
Good:
https://hg.mozilla.org/integration/mozilla-inbound/rev/93b66a3f8e7d
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0 ID:20140707214932
Bad:
https://hg.mozilla.org/integration/mozilla-inbound/rev/15b924cf6eab
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0 ID:20140707215730
Pushlog;
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=93b66a3f8e7d&tochange=15b924cf6eab
Regressed by:
15b924cf6eab	Matt Woodrow — Bug 1031948 - Cull points that have w <= 0 when untransforming layer coordinates. r=bjacob
Flags: needinfo?(matt.woodrow)
Hi,

Build ID 	20160315153207
User Agent 	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID 	20160331030231
User Agent 	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0

I have tested this on the latest Firefox release (45.0.1) and the latest Nightly (48.0a1) and it is no longer reproducible. I can confirm that this was indeed an issue in Firefox 37.0. 
Considering this I will mark this issue as Resolved-WORKSFORME. If anyone can still reproduce it, feel free to reopen the issue and provide more information.

Thanks,
Cipri
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: