Open Bug 1910268 Opened 1 year ago Updated 11 months ago

When tapping a link, the address bar opens and shifts the current page before loading the new page

Categories

(Firefox for Android :: Toolbar, enhancement, P3)

Firefox 130
All
Android
enhancement

Tracking

()

People

(Reporter: raj.azharuddin, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [qa-triaged])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Android 14; Mobile; rv:130.0) Gecko/130.0 Firefox/130.0

Steps to reproduce:

Set toolbar to top
Browse any webpage and scroll
The toolbar and address bar will hide as expected
Now click any hyperlink in the webpage
Toolbar is display and webpage is shifted bit down which kinds of feel weird

In chrome browsers, after clicking hyperlink the toolbar is displayed without shifting webpage

Expected results:

Should not shift webpage position

Attached video Firefox.mp4

I was able to reproduce this issue on Firefox Nightly 130 (2024-08-05) and Firefox 129 RC on Samsung Galaxy A32 with Android 13 and Google Pixel 8 with Android 14. I confirm that the page is scrolled a bit down just before redirecting to the new page.

Attached video Chrome.mp4

Comparing with Chrome

Severity: -- → S4
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [qa-triaged]

Toolbar is display and webpage is shifted bit down which kinds of feel weird

Raj, thanks for the bug report! Are you referring to the first page ("Andaman and Nicobar Islands") shifting or the second page ("Indira Point")?

In the Vasilica's recordings, I see that:

  • Firefox displays the address bar before loading the second page. This causes the first page to shift.
  • Chrome displays the address bar after loading the second page. This causes the second page to shift. While dragging the video playback frame by frame, during second 0:03 of the Chrome video, the "Indira Point" page title shifts down.

I think displaying the address bar before loading the second page provides quick visual feedback to the user that Firefox is opening the hyperlink, but I agree that the shift the first page is distracting. Maybe we can display the address bar without shifting the first page.

Summary: Shift in webpage click position when clicking any hyperlink in the webpage → When tapping a link, the address bar opens and shifts the current page before loading the new page

Yeah correct the first page shift in position is distracting

On closer inspection of the Chrome recording, I see that Chrome starts to open the address bar before loading the second page, but it doesn't shift the first page.

I asked the Firefox security team if there might be a security or phishing risk if we simply didn't show the distracting address bar at all when navigating to a new page. As long as the user is navigating to the same origin (for example: from https://en.m.wikipedia.org/wiki/Andaman_and_Nicobar_Islands to https://en.m.wikipedia.org/wiki/Indira_Point), they didn't think there was security risk. We still might want to overlay the address bar without shifting the page so the user knows we're handling their tap and loading the new page.

Type: defect → enhancement
Priority: -- → P3
See Also: → 1915714

This should be fixed by 1914119.

Depends on: 1914119

Hi team any update?

(In reply to raj.azharuddin from comment #7)

Hi team any update?

This is still on our radar but although a small edgecase fixing it is not straightforward at the moment.
It does tie in with much bigger changes that we have planned and are actively working on with the hope of fixing ~all such edgecases.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: