Open
Bug 1295108
Opened 9 years ago
Updated 2 years ago
Changes to HTML <base> element cause performance issues
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
NEW
People
(Reporter: art.clarity, Unassigned)
Details
(Keywords: perf, testcase)
Attachments
(1 file)
645 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Steps to reproduce:
1. Generate an HTML page with 10k of <a> elements
2. Modify <base> element 1k times
Actual results:
Page takes 20+ seconds to load
Expected results:
Page should load in under 1 second
Forgot to mention, in other browsers - page does take less than 1 second to load. This issue is unique to Firefox.
![]() |
||
Updated•9 years ago
|
Product: Firefox → Core
![]() |
||
Updated•9 years ago
|
Component: Untriaged → DOM
![]() |
||
Comment 2•9 years ago
|
||
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•9 years ago
|
||
The reason why we are slow is because, when we change the baseURL, we remove the list of Link elements from nsIDocument and then we reinsert them all again.
https://dxr.mozilla.org/mozilla-central/source/dom/base/nsDocument.cpp#8995
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•