Very slow chrome to content DOM access
Categories
(Core :: XPConnect, defect)
Tracking
()
Performance Impact | low |
People
(Reporter: bzbarsky, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: perf, perf:pageload)
Attachments
(1 file)
23.54 KB,
application/zip
|
Details |
![]() |
Reporter | |
Comment 1•15 years ago
|
||
![]() |
Reporter | |
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Comment 4•8 years ago
|
||
![]() |
Reporter | |
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
![]() |
Reporter | |
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
![]() |
Reporter | |
Comment 11•8 years ago
|
||
![]() |
Reporter | |
Comment 13•8 years ago
|
||
Comment 14•8 years ago
|
||
![]() |
Reporter | |
Comment 15•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Comment 16•7 years ago
|
||
![]() |
Reporter | |
Comment 18•7 years ago
|
||
Updated•7 years ago
|
Comment 19•7 years ago
|
||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
[qf:p1] is now reserved for pageload, so let's call this p2.
Comment 22•7 years ago
|
||
Alas, this almost certainly affects page load in a lot of cases.
Comment 23•7 years ago
|
||
Kris, do you happen to have any profiles showing that? Since if this affects page load badly, we should probably re-triage.
Comment 24•7 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #23)
Kris, do you happen to have any profiles showing that? Since if this affects page load badly, we should probably re-triage.
I don't, but I know this tends to show up in extensions that walk the entire DOM for one reason or other (e.g., form fill extensions looking for fields to fill), and they tend to do that during page load.
Comment 25•7 years ago
|
||
OK, thanks for the heads up. A profile for demonstration/investigation of pageload impact would be nice, but for now let's call it [qf:p1:pageload] then.
Comment 27•6 years ago
|
||
Can we get a profile on this from someone? And Peter, can you prioritize? Thanks!
Comment 28•6 years ago
|
||
The original testcase attached to this bug seems to perform ok for me. But maybe it doesn't show the underlying issues that this bug was supposed to be about?
![]() |
Reporter | |
Comment 29•6 years ago
|
||
Sessionstore got moved into C++, so the original testcase is no longer exercising "chrome to content DOM access" case, right?
This bug could probably benefit from actual extension testcases showing these problems...
Comment 30•6 years ago
|
||
I remember that around 2017 one of the extensions that ran into performance problems because of this bug was Grammarly. Sadly I don't remember any exact STRs, but I just captured this profile from Nightly by pasting the text of Tom Sawyer into a Bugzilla text box with Grammarly installed, in case it would be helpful.
Updated•4 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 31•9 months ago
•
|
||
Profile from Nightly (doesnt finish loading): https://share.firefox.dev/4fZlAzz (this is all nsINode::ComputeIndexOf )
Chrome: Almost instant
Comment 32•8 months ago
|
||
That profile doesn't seem to have much to do with this bug.
Also, see https://bugzilla.mozilla.org/show_bug.cgi?id=613498#c29
Description
•