Closed Bug 1969260 Opened 3 months ago Closed 2 months ago

After screen rotation to portrait the URL is slow to focus the domain

Categories

(Firefox for Android :: Toolbar, defect)

All
Android
defect

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox139 --- unaffected
firefox140 --- unaffected
firefox141 --- fixed

People

(Reporter: petru, Assigned: michel)

References

Details

Attachments

(2 files)

Attached video SlowToScrollDomain.mp4

Steps to reproduce

  1. Access a URL with a long subdomain and a long domain
  2. Observe that when in portrait the last part of the domain will be shown
  3. Rotate the screen to landscape and then to portrait

Expected behavior

The same as before - the last part of the domain will be shown

Actual behavior

For some seconds, until other toolbar is interacted with / webpage is reloaded the subdomain is shown.

Device information

Firefox version: Issue is for now particular to v. 141 as it follows a recent feature.

Any additional information?

The time needed for the URL to scroll to the last part of the domain can vary a lot.

Assignee: nobody → michel

I think that we should override onSizeChanged or onLayout and call scrollToShowRegistrableDomain there. I'm not sure about where it is better to do that.

See Also: → 1969437

There seems to be a broader issue with the toolbar refresh that I reported in https://bugzilla.mozilla.org/show_bug.cgi?id=1969437

Could you please review the proposed solution in the attached revision?

Flags: needinfo?(petru)

Thank you for the quick fix!
Approved the patch.
Sensible solution which should avoid any other related issues.

Flags: needinfo?(petru)
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: