Closed Bug 1827329 Opened 1 year ago Closed 1 year ago

Fix layout/base/tests/test_zoom_restore_bfcache.html on Android Fission

Categories

(GeckoView Graveyard :: Sandboxing, task, P1)

All
Android

Tracking

(firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: owlish, Assigned: emilio)

References

(Regressed 1 open bug)

Details

(Whiteboard: [fission:android][fxdroid])

Attachments

(2 files)

Attached file logcat log

I've attached a snippet of the logcat log for the run of this test. It appears the failure is caused by some issue with zoom not being correctly restored during BFCache navigations on android. IIRC the zoom infrastructure is somewhat controlled by the frontend right now, so there's a chance that we need to make some changes on the Android side to align with the changes we did on Desktop.

I believe this check is the one which is failing: https://searchfox.org/mozilla-central/rev/11dbac7f64f509b78037465cbb4427ed71f8b565/layout/base/tests/test_zoom_restore_bfcache.html#54

Leaving a ni? for :emilio to potentially look into this, as he's more familiar than I am with the zooming logic.

Flags: needinfo?(emilio)

Does something like the attached patch help? I think in desktop this works because of this code.

Flags: needinfo?(emilio) → needinfo?(bugzeeeeee)
Severity: -- → N/A
Flags: needinfo?(bugzeeeeee)
Priority: -- → P1

I tried the change in the patch locally - I still get the same error when I run the test with Fission.

Apologies, looked closer - the initial error was FAIL Should preserve zoom when restored - got 1, expected 2, but with the change in the patch I get UNEXPECTED-PASS Should preserve zoom on frames too - 2 should equal 2

(In reply to [:owlish] 🦉 PST from comment #5)

Apologies, looked closer - the initial error was FAIL Should preserve zoom when restored - got 1, expected 2, but with the change in the patch I get UNEXPECTED-PASS Should preserve zoom on frames too - 2 should equal 2

Irene, that sounds like Emilio's patch fixed the bug and we just need to update the test expectation in the patch.

If you change todo_is to is in the test, do the rest of the tests pass? And do the tests still pass on desktop with Emilio's patch?

https://searchfox.org/mozilla-central/rev/32c74afbb24dce4b5dd6b33be71197e615631d71/layout/base/tests/test_zoom_restore_bfcache.html#66

todo_is(msg.frameDevicePixelRatio, originalDPR * 2, "Should preserve zoom on frames too");
Flags: needinfo?(bugzeeeeee)
Whiteboard: [fission:android]

Oh, yes - when I change that line the way you said, the test passes! Excellent!

Emilio, can we have a non-WIP patch please?

Flags: needinfo?(bugzeeeeee) → needinfo?(emilio)
Flags: needinfo?(emilio)
Assignee: nobody → emilio
Attachment #9328139 - Attachment description: WIP: Bug 1827329 - Keep full/text zoom across bfcached navigations. → Bug 1827329 - Keep full/text zoom across bfcached navigations. r=nika,smaug
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0cc4558be019
Keep full/text zoom across bfcached navigations. r=smaug
Regressions: 1837500
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Regressions: 1846141
Blocks: 1849389
Whiteboard: [fission:android] → [fission:android][fxdroid]
Blocks: 1855511
No longer blocks: 1855511
Product: GeckoView → GeckoView Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: