Open Bug 1864196 Opened 1 year ago Updated 16 days ago

view-source:https://discourse.mozilla.org/ takes 10 minutes+ to load and makes the tab unresponsive (70% time spent in nsLineBox::IndexOf)

Categories

(Core :: Layout, defect)

Firefox 119
x86_64
Linux
defect

Tracking

()

People

(Reporter: zn7esutb, Unassigned)

References

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0

Steps to reproduce:

I visited view-source:https://discourse.mozilla.org/.

Actual results:

The browser slowed to a crawl until the tab was closed and did not ever actually load the source code.

Expected results:

The source code should have been loaded, and the tab should not have affected the rest of the browser.

Attached image The other tabs.

Most Mozilla tabs ceased to load.

It works flawlessly on google-chrome-unstable-120.0.6090.0-1.src.rpm on cpe:/o:opensuse:tumbleweed:20231106.

Component: Untriaged → General
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
See Also: → 1864195
Duplicate of this bug: 1864195
Component: General → Performance
Product: Firefox → Core

Profile (8 minutes, incomplete) : https://share.firefox.dev/3ugvppz
Can confirm that the view-source continued to load for >10minutes
Can repro on a build from 2019. So not a recent regression

Status: UNCONFIRMED → NEW
Component: Performance → Layout
Ever confirmed: true
Summary: View Source slows browser. → view-source:https://discourse.mozilla.org/ takes 5 minutes+ to load and makes the tab unresponsive
Summary: view-source:https://discourse.mozilla.org/ takes 5 minutes+ to load and makes the tab unresponsive → view-source:https://discourse.mozilla.org/ takes 10 minutes+ to load and makes the tab unresponsive
Summary: view-source:https://discourse.mozilla.org/ takes 10 minutes+ to load and makes the tab unresponsive → view-source:https://discourse.mozilla.org/ takes 10 minutes+ to load and makes the tab unresponsive (70% time spent in nsLineBox::IndexOf)

This sounds similar to reports such as bug 726637 and more specifically bug 727831.

See Also: → 726637, 727831
See Also: 1864195

The severity field is not set for this bug.
:TYLin, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(aethanyc)
Severity: -- → S3
Flags: needinfo?(aethanyc)

Profile with bug 727831 fixed:
With wrapping : https://share.firefox.dev/3XetePn (truncated, took more than 1 minute after which i got bored)
Without wrapping: https://share.firefox.dev/4dERbFG (truncated, took more than 1 minute after which i got bored)

Hmm. So the profile is no longer dominated by nsLineBox::IndexOf, so I guess that's progress. But it's still taking far too long, with a surprisingly large amount of time apparently in SVG-related stuff, and also continuation-frame management.

HEre is a complete profile: https://share.firefox.dev/ (at 2ms sampling interval so each sample is equal to 4ms of wall clock time)
Profile from a fresh instance: https://share.firefox.dev/3MCEbEF (12m+ and then i got bored)

Proifle with latest Nightly: https://share.firefox.dev/3UpMwzu (3m+ and then I got bored)

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

Attachment

General

Created:
Updated:
Size: