Closed Bug 1277712 Opened 8 years ago Closed 4 years ago

The URL bar hiding/unhiding causes the scroll position to jump around when directly viewing images

Categories

(Firefox for Android Graveyard :: Toolbar, defect, P3)

46 Branch
All
Android
defect

Tracking

(firefox46 wontfix, firefox47 wontfix, firefox48 wontfix, firefox49 wontfix, firefox50 wontfix, firefox51 wontfix, firefox52 wontfix, firefox53 affected, firefox60 wontfix, firefox61 affected, firefox62 affected, firefox63 affected)

RESOLVED WONTFIX
Tracking Status
firefox46 --- wontfix
firefox47 --- wontfix
firefox48 --- wontfix
firefox49 --- wontfix
firefox50 --- wontfix
firefox51 --- wontfix
firefox52 --- wontfix
firefox53 --- affected
firefox60 --- wontfix
firefox61 --- affected
firefox62 --- affected
firefox63 --- affected

People

(Reporter: JanH, Unassigned)

References

()

Details

STR:
1. Open some image directly within Firefox.
2. Zoom in.
3. Scroll up and down, so the URL bar hides/unhides.

Actual:
After the URL bar has become completely hidden/unhidden, the image makes a jump approximately the height of the URL bar in the opposite direction (i.e. if I'm scrolling towards the top of the picture, the viewport jumps back down and vice versa). The jump normally happens as soon as the URL bar has finished animating, although once it only occured after also lifting the finger.

Expected:
No jumping around.

Note:
Images are the most prominent example, but I can also reproduce this with the media controls that are displayed when directly opening e.g. an MP3 file. Normal web pages seem unaffected though.
I can also reproduce this with and without APZ in all current Firefox versions.
FWIW I suspect this is because the toolbar show/hide resizes the height available to content, and the ImageDocument implementation probably uses that to position the image.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
Status: REOPENED → NEW
Given this bug was reported 3 years ago, what's the ETA for a fix?
Flags: needinfo?(jh+bugzilla)
No idea.
Flags: needinfo?(jh+bugzilla)
(In reply to jesbugduo from comment #10)
> Given this bug was reported 3 years ago, what's the ETA for a fix?

I don't think we have a good way to fix this category of issues with the current implementation of toolbar hiding.

You can always work around it by disabling toolbar hiding in the settings (Settings -> General -> Full-screen browsing).

Firefox Focus has a different implementation of toolbar hiding which isn't susceptible to this problem, and that may replace the current implementation in Firefox for Android at some point, which would solve this problem. (Note that that implementation has other problems, like position:fixed elements attached to the bottom being partly or fully offscreen when the toolbar is shown. I don't think anyone has figured out how to implement a hiding toolbar without having bad interactions with _something_.)
I tested the Dolphin browser, and it doesn't have this particular problem. So why shouldn't it be possible to fix the bug in Firefox?
I don't know how to fix the code myself, so I just hope everyone else affected can upvote this bug, so that someone can ultimately prioritize fixing the code.
I guess it's possible that this particular issue could be fixed on the ImageDocument side. Would require some investigation.

It may not be worth spending time on that, though, if the toolbar hiding implementation is going to change anyways, to something that doesn't resize the height available to content.
(In reply to Botond Ballo [:botond] from comment #14)
> I guess it's possible that this particular issue could be fixed on the
> ImageDocument side. Would require some investigation.

Given that normal HTML documents don't jump around, something should certainly be possible, especially given that for ImageDocuments (and I think also whatever standalone media files are using) we don't have to worry about possible side effects on position:fixed elements.

Could that be related to Bug 1514429 and Bug 1209426

It was observed in bug 1544633 that this does not happen in Fenix.

I see there is activity here.
Any news on the ETA?

Flags: needinfo?(rbarker)

(In reply to jesbugduo from comment #19)

I see there is activity here.
Any news on the ETA?

Not that I'm aware of.

Flags: needinfo?(rbarker)

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

It was observed in bug 1544633 that this does not happen in Fenix.

As this issue is specific to Fennec, I don't think we're going to be fixing it.

Status: NEW → RESOLVED
Closed: 6 years ago4 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.