Open Bug 1614689 Opened 4 years ago Updated 2 months ago

0.12ms uninterruptible reflow at _ensureFormattedHostVisible/<@resource:///modules/UrlbarValueFormatter.sys.mjs:96:9

Categories

(Firefox :: Address Bar, defect, P2)

Desktop
All
defect
Points:
3

Tracking

()

Performance Impact low

People

(Reporter: mconley, Unassigned)

References

(Regression)

Details

(Keywords: perf, perf:frontend, regression, Whiteboard: [ohnoreflow][snt-scrubbed][search-performance])

Here's the stack:

_ensureFormattedHostVisible/<@resource:///modules/UrlbarValueFormatter.jsm:96:9

Version: 75.0a1
Build: 20200211094607

That's this line: https://searchfox.org/mozilla-central/rev/7e92a667e3829831c31e8d46aefe7ef67ad5be1c/browser/components/urlbar/UrlbarValueFormatter.jsm#96

Is this caused by bug 1605889 or is it a more recent regression?

Priority: -- → P2
Regressed by: 1605889
Has Regression Range: --- → yes
Keywords: regression

(In reply to Drew Willcoxon :adw from comment #1)

Is this caused by bug 1605889 or is it a more recent regression?

Most likely bug 1605889.

Keywords: perf

We're setting scrollLeft, we're in a RAF, we likely need a promiseDocumentFlushed.
note: in the past having both may have caused unexpected misbehavior of the scrolling position, so any change should be manually verified against short, long, short_rtl, long_rtl, short_rtldomain, long_rtldomain URIs, and switching across tabs containing those. (we do have an automated test, but it may not catch every edge case).

Whiteboard: [ohnoreflow][fxperf] → [ohnoreflow][fxperf:p3]
Severity: normal → S3
Points: --- → 3
Whiteboard: [ohnoreflow][fxperf:p3] → [ohnoreflow][fxperf:p3][snt-scrubbed][search-performance]

Rather than bringing on this madness with urls that can fade either left or right depending on the origin, we should investigate adding an invisible LTR forcing character when we remove the protocol (whether it's http or https), that would allow us to remove most of the complexity and work we do here to ensure the origin is visible, the origin would always be at the start.

Depends on: 1833091
Depends on: 1836962
No longer depends on: 1833091
Performance Impact: --- → low
Keywords: perf:frontend
OS: Unspecified → All
Hardware: Unspecified → Desktop
Summary: 0.12ms uninterruptible reflow at _ensureFormattedHostVisible/<@resource:///modules/UrlbarValueFormatter.jsm:96:9 → 0.12ms uninterruptible reflow at _ensureFormattedHostVisible/<@resource:///modules/UrlbarValueFormatter.sys.mjs:96:9
Whiteboard: [ohnoreflow][fxperf:p3][snt-scrubbed][search-performance] → [ohnoreflow][snt-scrubbed][search-performance]
You need to log in before you can comment on or make changes to this bug.