Open Bug 1608567 Opened 4 years ago Updated 2 years ago

Multi-second hang for minified file

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: Harald, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No good STR, sorry. I debugged codesandbox output and paused on event handler. This paused in LastPass' minified content script. Loading this script caused several minutes of hangs, even after I switched away from the tab.

30s of that are captured in https://perfht.ml/2QH5Mbp

setDebugLine is triggered a lot.

Analysis draft:

DebugLine.js is a PureComponent and has 3 props: location , why and source.

So what changes so often … the prop frame:

Before

  {
    "id": "server0.conn0.child1/frame28",
    "displayName": "execute/<",
    "location": {
      "sourceId": "sourceURL-https://github.githubassets.com/assets/github-bootstrap-2763eb02.js/originalSource-a10863dd7db0e216177b98f701567864",
      "sourceUrl": "https://github.githubassets.com/app/assets/modules/github/characters-remaining.js",
      "line": 31,
      "column": 4
    }
  }

After:

  {
    "id": "server0.conn0.child1/frame28",
    "displayName": "execute/<",
    "location": {
      "sourceId": "sourceURL-https://github.githubassets.com/assets/github-bootstrap-2763eb02.js/originalSource-a10863dd7db0e216177b98f701567864",
      "sourceUrl": "https://github.githubassets.com/app/assets/modules/github/characters-remaining.js",
      "line": 31,
      "column": 4
    }
  }
]

Then again, frame isn't even used in the component itself.

frame was added in https://github.com/firefox-devtools/debugger/pull/7779 , not sure when it was removed from props while still being used in redux mapping.

Assignee: nobody → hkirschner
Status: NEW → ASSIGNED

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:Harald, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(hkirschner)

Hefty test failures across the board. This is not the easy prop change that I thought it is.

Flags: needinfo?(hkirschner)
Assignee: bugzilla → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: