Mouse coordinates are wrong for scaled out-of-process iframes without WebRender
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
People
(Reporter: hsivonen, Assigned: mattwoodrow)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Steps to reproduce
- Set
fission.autostart
totrue
. - Set
gfx.webrender.force-disabled
totrue
. - Restart Firefox.
- Navigate to https://hsivonen.fi/fission-host.html
- Click the button in the second frame.
- Keep clicking as you move the mouse to the left over the text field.
Actual results
The first click doesn't go to the button. However, once your mouse has moved left to the position where the button would be if the frame hadn't been stretched, the click goes to the button.
Expected results
Correct targeting as with WebRender enabled.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
This is a regression from bug 1558482 I think, removing the scale factors fixes it.
Assignee | ||
Comment 2•5 years ago
|
||
Passing a scale factor down should only affect Layers within the remote iframe. I'd expect that the root Layer has the inverse scaling of the css transform in the outer document, and then the actual leaf Layers to have the CSS transform's scaling.
I haven't yet got my head around the fission hit testing code, but are we including the root remote Layer in the transform-to-window matrix we compute? That would be wrong I think since it'd include the downscale (and cancel out the css transform scale), and actual hit testing for clicking wouldn't apply the up-scale later.
I think the transform we want is from outside the root remote layer (the RefLayer created by the outer document) up to the root of the Layer tree.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Pushed by mwoodrow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/da65877c0fec Use only transforms outside of the subtree when computing the subtree transform to root. r=kats
Comment 5•5 years ago
|
||
bugherder |
Comment 6•5 years ago
|
||
I have managed to reproduce this issue using Firefox 69.0a1 (BuildId:20190627214735) on Windows 10 64bit.
This issue is verified fixed using Firefox 70.0a1 (BuildId:20190714214027) on Windows 10 64bit, macOS 10.13.6 and Ubuntu 18.04 64bit
Updated•5 years ago
|
Description
•