Closed Bug 1600418 Opened 6 years ago Closed 6 years ago

Delay during switching tabs (after long browsing session)

Categories

(Firefox :: Untriaged, defect)

70 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID
Performance Impact low

People

(Reporter: lambdadelta.witch, Unassigned)

Details

(Keywords: perf:responsiveness, Whiteboard: [fxperf:p3])

Attachments

(1 file)

9.40 KB, application/x-zip-compressed
Details

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

Sometimes firefox become unresponsive when I open new tabs/switch between tabs. It seems to correlate with how long Firefox has been open and how active/intense I am with my browsing. It usually happens after couple days of browsing without restarting firefox (I put my PC to sleep, so firefox is not closed).

Actual results:

Switching between tabs became slow (about 1 to 2 seconds). It doesn't matter what sites are loaded in tabs, even empty tabs have the same delay. Closing all tabs doesn't fix the issue. The only way I found to fix it is to restart firefox, then switching between tabs became near instantaneous again.

Expected results:

Switching between tabs shouldn't became slow.

Here I captured switching tabs couple times https://perfht.ml/35INGKE

Hi Cirno,

I wasn't able to reproduce this issue on my end, I've tried it both on Firefox 70.0.1 and Firefox Nightly 73.0a1

Could you check if this also occurs to you while using a new profile? You can find the steps to do that here:
https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles?redirectlocale=en-US&redirectslug=Managing-profiles#w_starting-the-profile-manager

Thanks!

Flags: needinfo?(lambdadelta.witch)

Mike, if you've got the time, could you take a look over the performance profile from Comment 1?

Thanks!

Flags: needinfo?(mconley)

(In reply to Peter_M from comment #2)

Could you check if this also occurs to you while using a new profile?

Can I use addons on that new profile? Because it can take several days or even up to a week until I catch the bug and using firefox without all addons is inconvenient

By the way, I have a suspicion that cause of the bug could be the Stylus addon.
Here https://www.reddit.com/r/firefox/comments/cifd2q/major_performance_issues_with_firefox_ui_freezing/
some guy described the same bug, and he was able to find that the cause of it was addon Dark Reader. I do not use Dark Reader, but I have Stylus installed (main purpose of both addons is changing css of pages).
Can you tell from the performance profile whether the slowness is due to that addon or not?

Wow! The parent process is really bogged down doing style computations. I'm seeing style flushes lasting ~700ms!

Cirno, have you modified the style of the browser in the parent process using a userChrome.css file?

Flags: needinfo?(mconley)
Whiteboard: [qf][fxperf]

Yes, I have restyled scrollbar and context menu. Here the content of chrome folder.

Flags: needinfo?(lambdadelta.witch)

If you (temporarily) remove those customizations (perhaps by renaming the chrome folder to chrome-disabled or something), does the performance issue go away?

Flags: needinfo?(lambdadelta.witch)

I'll do it and check. Right now I don't have any performance problems, it usually should pass some time after last browser restart until the bug occurs (and last restart was today after firefox update). I'll report in a few days (or a week)

Whiteboard: [qf][fxperf] → [qf][fxperf][qf:p3:responsiveness]
Whiteboard: [qf][fxperf][qf:p3:responsiveness] → [fxperf][qf:p3:responsiveness]

Cirno, were you able to reproduce this problem without the customizations?

Marking this as fxperf:p3 until we have additional information.

Flags: needinfo?(cirno)
Whiteboard: [fxperf][qf:p3:responsiveness] → [fxperf:p3][qf:p3:responsiveness]

No. I tested it about a week and there's no delay. So previous delay was definitely due bugs in my userChrome
I'm sorry for bothering you all, it was my fault. And thank you for help

Flags: needinfo?(lambdadelta.witch)

Not a problem, thanks for reporting.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Flags: needinfo?(cirno)
Performance Impact: --- → P3
Whiteboard: [fxperf:p3][qf:p3:responsiveness] → [fxperf:p3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: