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•2 years 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•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Does something like the attached patch help? I think in desktop this works because of this code.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 4•2 years 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•2 years 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•2 years 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•2 years 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•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
bugherder |
Reporter | ||
Updated•1 years ago
|
Updated•1 years ago
|
Updated•9 months ago
|
Description
•