Closed Bug 1707557 Opened 4 years ago Closed 4 years ago

fix TransformFrameRectToAncestor call in DoubleTapToZoom for fixed content where the ancestor frame isn't an ancestor

Categories

(Core :: Panning and Zooming, defect)

defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox89 --- fixed
firefox90 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

Details

(Whiteboard: [proton-uplift])

Attachments

(3 files, 1 obsolete file)

Attached file fgs4.html

Bug 1705599 made the calculation we do in nsLayoutUtils::GetBoundingFrameRect work if its inside fixed content. But bug 1701749 added a similar calculation in DoubleTapToZoom.cpp which we didn't fix up for the same problem.

Bug 1705599 made the calculation we do in nsLayoutUtils::GetBoundingFrameRect work if its inside fixed content. But bug 1701749 added a similar calculation in DoubleTapToZoom.cpp which we didn't fix up for the same problem.

Assignee: nobody → tnikkel
Status: NEW → ASSIGNED
Attached file Bug 1707557. Add test. r?botond,emilio (obsolete) —

Comment on attachment 9218864 [details]
Bug 1707557. Add test. r?botond,emilio

Revision D113623 was moved to bug 1707234. Setting attachment 9218864 [details] to obsolete.

Attachment #9218864 - Attachment is obsolete: true
Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/869a82f47afa Fix TransformFrameRectToAncestor call in DoubleTapToZoom for fixed content where the ancestor frame isn't guaranteed to be an ancestor r=emilio https://hg.mozilla.org/integration/autoland/rev/24f512e5e212 Add test. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Whiteboard: [proton-uplift]

Comment on attachment 9218315 [details]
Bug 1707557. Fix TransformFrameRectToAncestor call in DoubleTapToZoom for fixed content where the ancestor frame isn't guaranteed to be an ancestor r?botond

Beta/Release Uplift Approval Request

  • User impact if declined: double tap inside some fixed content will choose a not ideal rect to zoom to
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): just changes code from assuming one node is an ancestor of another to allow them to not be ancestors
  • String changes made/needed:
Attachment #9218315 - Flags: approval-mozilla-beta?
Attachment #9218853 - Flags: approval-mozilla-beta?

Comment on attachment 9218315 [details]
Bug 1707557. Fix TransformFrameRectToAncestor call in DoubleTapToZoom for fixed content where the ancestor frame isn't guaranteed to be an ancestor r?botond

Approved for 89 beta 7, thanks.

Attachment #9218315 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9218853 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: