Closed
Bug 916454
Opened 11 years ago
Closed 11 years ago
Browser hanging when reloading some pages while the debugger is open and source maps are enabled
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 27
People
(Reporter: vporof, Assigned: fitzgen)
Details
Attachments
(2 files)
9.63 KB,
text/plain
|
Details | |
7.50 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Go to http://todomvc.com/
2. Open debugger, wait for sources to be shown
3. Refresh
It takes around 20 seconds for the sources to finish fetching. The browser freezes in the meantime.
Reporter | ||
Comment 1•11 years ago
|
||
Refreshing is instant if I disable source maps via the gear menu. Nick?
Flags: needinfo?(nfitzgerald)
Comment 2•11 years ago
|
||
Backing out bug 914930 and bug 762761 doesn't fix this FWIW.
Reporter | ||
Updated•11 years ago
|
Summary: Browser hanging when reloading some pages while the debugger is open → Browser hanging when reloading some pages while the debugger is open and source maps are enabled
Assignee | ||
Comment 3•11 years ago
|
||
I can reproduce, and verify that when source maps aren't enabled it doesn't happen. Will look into this.
Assignee: nobody → nfitzgerald
Flags: needinfo?(nfitzgerald)
Priority: -- → P2
Assignee | ||
Comment 4•11 years ago
|
||
I tried to upload a profile, but it is too big for bugzilla to accept it.
The culprit is parsing the mappings, which I think we can lazily delay until we actually query for a source mapped location. However, that will still cause a hang, just later on down the line.
Might need to change the SourceMapConsumer interface, let more stuff be async and put parsing in a yielding loop.
Assignee | ||
Comment 5•11 years ago
|
||
This patch delays the parsing of a source map's mappings until queried for a source location.
Attachment #812360 -
Flags: review?(past)
Assignee | ||
Comment 6•11 years ago
|
||
Associate PR: https://github.com/mozilla/source-map/pull/81
Comment 7•11 years ago
|
||
Comment on attachment 812360 [details] [diff] [review]
bug-916454-source-maps-reload-hang.patch
Review of attachment 812360 [details] [diff] [review]:
-----------------------------------------------------------------
I have to say Nightly no longer seems to hang with the STR in comment 0, so I'm guessing something else must have fixed this, but the change in the patch seems reasonable and works fine in my testing.
Attachment #812360 -
Flags: review?(past) → review+
Comment 8•11 years ago
|
||
Scratch that, I forgot that my main browser on Linux is the stable version of Firefox. The bug is still there on Nightly without this patch.
Assignee | ||
Comment 9•11 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 10•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 27
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•