Closed Bug 1637776 Opened 4 years ago Closed 3 years ago

Write mochitests for Fenix hit testing regressions (bug 1637113, bug 1638655, bug 1638458, bug 1638441, bug 1637135, bug 1643212, bug 1638594)

Categories

(Core :: Panning and Zooming, task)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: botond, Assigned: botond)

References

Details

Attachments

(8 files)

Timothy suggested in a review comment that it would be useful to add a test covering the scenario that bug 1637113 regressed to avoid regresseing it in the future.

Will add a test in this bug.

Testing the specific fix of bug 1637113 is good, having a general test in the tree that checks that "scroll down, pinch zoom, tap" actually hits the expected element under the tap would be great.

Summary: Write a mochitest for bug 1637113 → Write a mochitest for bug 1637113, bug 1638655, bug 1638458, bug 1638441
Summary: Write a mochitest for bug 1637113, bug 1638655, bug 1638458, bug 1638441 → Write mochitests for Fenix hit testing regressions (bug 1637113, bug 1638655, bug 1638458, bug 1638441)
Summary: Write mochitests for Fenix hit testing regressions (bug 1637113, bug 1638655, bug 1638458, bug 1638441) → Write mochitests for Fenix hit testing regressions (bug 1637113, bug 1638655, bug 1638458, bug 1638441, bug 1637135)
Summary: Write mochitests for Fenix hit testing regressions (bug 1637113, bug 1638655, bug 1638458, bug 1638441, bug 1637135) → Write mochitests for Fenix hit testing regressions (bug 1637113, bug 1638655, bug 1638458, bug 1638441, bug 1637135, bug 1643212)
Summary: Write mochitests for Fenix hit testing regressions (bug 1637113, bug 1638655, bug 1638458, bug 1638441, bug 1637135, bug 1643212) → Write mochitests for Fenix hit testing regressions (bug 1637113, bug 1638655, bug 1638458, bug 1638441, bug 1637135, bug 1643212, bug 1638594)

I have a mochitest for bug 1637113 that's working locally. It required making some improvements to coordinatesRelativeToScreen() to handle iframes better, and these changes are causing some other mochitest failures which I need to investigate.

Depends on: 1650914

(In reply to Botond Ballo [:botond] from comment #2)

I have a mochitest for bug 1637113 that's working locally. It required making some improvements to coordinatesRelativeToScreen() to handle iframes better, and these changes are causing some other mochitest failures which I need to investigate.

Finally have a green Try push. The patches need a bit of cleanup as my understanding of the issue has evolved over the course of investigating the failures.

Depends on D83018

Keywords: leave-open
Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/461dea66f9f1
Fix coordinatesRelativeToScreen() to work better for targets inside an iframe. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/92b59d89a40e
Add a mochitest for bug 1637113. r=tnikkel
Pushed by rmaries@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/58000ee18336
Fix trailing whitespace in test r=rmaries

The test that was landed for bug 1637113 provides test coverage for bug 1638655 as well: this Try push shows the test failing on Android if the patch for bug 1638655 is backed out.

The test is also revised to fail immediately rather than via a timeout
if the expected event is fired but targets the wrong element.

Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2705663333f
Fix non-unified bustage in nsDisplayList.cpp. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/75650b9112fa
Add a mochitest for bug 1638458. r=tnikkel

We now have test coverage for 5 of the 7 bugs mentioned in the bug title.

The remaining two are:

  • Bug 1643212, which is a dynamic toolbar issue. As discussed here, we don't really have the test infrastructure in place to test issues like this.
  • Bug 1638594, which only affects content that's loaded in the parent-process, which again I'm not quite sure how to exercise in a mochitest environment.

I'm inclined to say that having test coverage for 5 of these 7 issues is good enough, and move on to other things.

(In reply to Botond Ballo [:botond] from comment #20)

  • Bug 1638594, which only affects content that's loaded in the parent-process, which again I'm not quite sure how to exercise in a mochitest environment.

mochitest-chrome or browser-chrome test?

I'm inclined to say that having test coverage for 5 of these 7 issues is good enough, and move on to other things.

Sounds reasonable. Thanks for working on this!

This doesn't really block desktop zooming on nightly, so let's disconnect it.

No longer blocks: desktop-zoom-nightly

The leave-open keyword is there and there is no activity for 6 months.
:botond, maybe it's time to close this bug?

Flags: needinfo?(botond)

I was going to write a browser chrome test for bug 1638594 as suggested in comment 21 but realistically I don't think I'm going to get to it.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(botond)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: