Closed Bug 1686794 Opened 5 years ago Closed 4 years ago

Really late inputs on Facebook messenger Youtube Twitch

Categories

(Core :: JavaScript Engine, defect)

Firefox 84
Desktop
Unspecified
defect

Tracking

()

RESOLVED INCOMPLETE
Performance Impact medium

People

(Reporter: darvinxd, Unassigned, NeedInfo)

Details

(Whiteboard: [responsiveness])

Attachments

(1 file)

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

Steps to reproduce:

I tried:

  1. making a clean profile
  2. restarting mozilla w addons off
  3. i ran a performance capture profile
  4. and i tired a different browser to see if it was an issue with my hardware

Actual results:

1-2) still late inputs
3) It found some web jank but i dont know what it exactly is
4) Everything was fine on the other browser (opera)

Expected results:

Quick and responsive inputs

Mike? What do you think about this performance profile?
How do you think this bug should be addressed?

Thank you.

Flags: needinfo?(mconley)

Here is the profile: https://share.firefox.dev/3caEPbf

The selected region shows some pretty long periods of jank on the content process main thread on keypress events. The site, scripts and JS function calls are obfuscated, so I can't make much sense of them. It does seem that there's a bunch of time spent inside of Node.cloneNode for a custom element. So I'm tempted to move this to DOM for now, but I'm not certain that the bug is actionable as it is without a clearer sense of what the site is doing.

I think I'll move this to Core :: Performance for now.

Component: Untriaged → Performance
Flags: needinfo?(mconley)
Product: Firefox → Core

Reporter, do you have some Kaspersky tool installed? Anti-virus or some such?
KasperskyLab* code is taking basically all the time

Flags: needinfo?(darvinxd)

Ted, do you have any comments on this. The Kaspersky stuff is bad and seems to be the second part of the jank block. The first half of that block is quite large as well though, and as with some other things we've looked at, there's a lot of property manipulation stuff in there that we've seen in other places like slack. Even the Kaspersky stuff is all JS that appears quite slow.

Component: Performance → JavaScript Engine
Flags: needinfo?(tcampbell)
Whiteboard: [qf:p2][responsiveness]

I can confirm that I'm getting the same behaviour as the reporter on YouTube. I can also confirm that:

  1. I have Kaspersky Anti-Virus installed
  2. It doesn't happen when I exit Kaspersky (obviously leaving my computer vulnerable)
  3. It doesn't happen in Chrome or other Chromium based browsers installed (Edge, Opera GX). Though there's often an annoying green interference in those browsers (unrelated I'm sure).

While I'm not a little concerned that Kaspersky is keyboard logging, hopefully this report helps to resolve the performance issue.

I can't really see a difference with or without Kaspersky v21.3.10.391 (b) on Firefox Release v88.0.1 or Nightly v90.0a1 and neither did I notice a difference with or without the Kaspersky Protection addon installed.

I will confirm this issue based on the comment above.

darvinxd:

  1. Does it still reproduce in your case?
  2. Can you tell me which Firefox and Kaspersky version you see it reproduce with?
  3. Do you also have the Kaspersky addon?
  4. What do you mean when you say "late inputs"? Maybe a screen recording might help.

the_new_mr:
Can you answer the same questions I asked above?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(the_new_mr)
Hardware: Unspecified → Desktop

(In reply to Bodea Daniel [:danibodea] from comment #6)

I can't really see a difference with or without Kaspersky v21.3.10.391 (b) on Firefox Release v88.0.1 or Nightly v90.0a1 and neither did I notice a difference with or without the Kaspersky Protection addon installed.

I will confirm this issue based on the comment above.

darvinxd:

  1. Does it still reproduce in your case?
  2. Can you tell me which Firefox and Kaspersky version you see it reproduce with?
  3. Do you also have the Kaspersky addon?
  4. What do you mean when you say "late inputs"? Maybe a screen recording might help.

the_new_mr:
Can you answer the same questions I asked above?

Hi Daniel

At the time I wrote the above comment, I tried changing all kinds of settings in Kaspersky and did a serious amount of online searching to see if I could figure out how to stop Kaspersky from interfering with Firefox in this way.

I do remember finding a setting that required a restart of Firefox to take effect and it seemed to be the one that made the difference. I'm not sure I can remember correctly but I think that returning settings back to how they were when the problem was occurring ended up with the issue no longer showing but I'm not sure if my memory is serving me correctly here.

To answer your questions:

  1. Does it still reproduce in your case?
    I can no longer reproduce it as described above.
  2. Can you tell me which Firefox and Kaspersky version you see it reproduce with?
    Currently running Firefox 88.0.1 (32-bit) and Kaspersky 21.3.10.391 (b)
  3. Do you also have the Kaspersky addon?
    I didn't have the add-on installed then or now. Which was concerning as it felt intrusive.
  4. What do you mean when you say "late inputs"? Maybe a screen recording might help.
    A screen recording won't really help. Basically, typing in the search field was very very laggy. When a video was playing, trying to pause using the keyboard shortcut in YouTube (k) would lag by about a second or two.

It's worth noting that I was also noticing lag (to a lesser extent) in web apps like Gmail that I am also no longer noticing.

If it starts happening again, I shall update here with more info.

Flags: needinfo?(the_new_mr)

Resolving as incomplete, as there seems to have been a Kaspersky setting that resolved this.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Performance Impact: --- → P2
Whiteboard: [qf:p2][responsiveness] → [responsiveness]
Flags: needinfo?(tcampbell)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: