View Selection Source on a few selected cells within a huge table displays the entire table source [and consumes large amounts of memory and loops with high cpu]
Categories
(Toolkit :: View Source, defect, P3)
Tracking
()
People
(Reporter: martijn.martijn, Unassigned)
References
()
Details
(Keywords: hang, perf, testcase)
Attachments
(3 files)
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
Comment 3•19 years ago
|
||
Comment 4•19 years ago
|
||
Comment 5•19 years ago
|
||
Comment 6•18 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Comment 7•17 years ago
|
||
Reporter | ||
Comment 8•17 years ago
|
||
Comment 9•16 years ago
|
||
![]() |
||
Comment 10•16 years ago
|
||
![]() |
||
Comment 11•16 years ago
|
||
![]() |
||
Comment 12•16 years ago
|
||
Comment 13•16 years ago
|
||
![]() |
||
Comment 14•16 years ago
|
||
Reporter | ||
Updated•8 years ago
|
![]() |
||
Updated•8 years ago
|
Comment 15•3 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Comment 16•2 years ago
|
||
Comment 17•2 years ago
|
||
Still a bit slow. https://share.firefox.dev/3TKkwoT
STR for the profile above:
- Navigate to attachment 9325003 [details]
- Scroll to the bottom of the table
- Select the last few table cells which contain no visible text
- Right click on the selection, click "View Selection Source"
The resulting data URI is about 4.2MB. There might be a more relevant bug to dupe this over to, but I can't find anything at the moment.
Comment 18•2 years ago
|
||
Bug 1800596 is at least somewhat related, given that part of the issue here is the time it takes to create the massive textrun for the data URI we're trying to display in the location bar. There have been some improvements recently (see the dependent bugs there), but shaping multiple mega-characters of text can still be quite expensive. Especially if the system UI font includes OpenType features like ligatures and kerning, which it does at least on macOS.
Another issue here is that View Selection Source doesn't seem to be able to deal with a selection within a table; the resulting View Source window contains the entire table, not just the selected cells. And that's why it's so huge and performs so poorly, even though just a few empty cells were selected.
I'm updating the title and component here to focus on the latter issue, as that's what seems to be unique to this example, while other bugs like 1800596 are about the more general issue with huge data URIs.
Comment 19•2 years ago
|
||
The issue here seems to occur if the selection in the table spans multiple rows, but not if it spans just some cells within a single row.
Comment 20•2 years ago
|
||
The severity field is not set for this bug.
:Honza, could you have a look please?
For more information, please visit BugBot documentation.
Comment 21•2 years ago
|
||
I can reproduce the issue with the current Firefox Nightly 122 using STRs from comment #17
(note that selectable cells are just underneath of the end of the big table)
The source page takes about ~6s to load and the data URI is about 4.2MB for me too.
Honza
Description
•