Fix layout/base/tests/test_zoom_restore_bfcache.html on Android Fission
Categories
(GeckoView Graveyard :: Sandboxing, task, P1)
Tracking
(firefox116 fixed)
Tracking | Status | |
---|---|---|
firefox116 | --- | fixed |
People
(Reporter: owlish, Assigned: emilio)
References
(Regressed 1 open bug)
Details
(Whiteboard: [fission:android][fxdroid])
Attachments
(2 files)
Mochitest-plain variant. All builds.
Comment 1•1 year ago
|
||
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.
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
Does something like the attached patch help? I think in desktop this works because of this code.
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 4•1 year ago
|
||
I tried the change in the patch locally - I still get the same error when I run the test with Fission.
Reporter | ||
Comment 5•1 year ago
•
|
||
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
Comment 6•1 year ago
|
||
(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 getUNEXPECTED-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?
todo_is(msg.frameDevicePixelRatio, originalDPR * 2, "Should preserve zoom on frames too");
Reporter | ||
Comment 7•1 year ago
|
||
Oh, yes - when I change that line the way you said, the test passes! Excellent!
Emilio, can we have a non-WIP patch please?
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0cc4558be019 Keep full/text zoom across bfcached navigations. r=smaug
Comment 9•1 year ago
|
||
bugherder |
Reporter | ||
Updated•10 months ago
|
Updated•10 months ago
|
Updated•1 month ago
|
Description
•