Bug 148230 - Web Inspector: console assertion when populating script content for call frame before source map resource loads
Summary: Web Inspector: console assertion when populating script content for call fram...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://www.disney.com
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-08-20 10:08 PDT by BJ Burg
Modified: 2016-12-13 15:37 PST (History)
3 users (show)

See Also:


Attachments
Screenshot of assertion in Inspector^2 (971.82 KB, image/png)
2015-08-20 10:08 PDT, BJ Burg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2015-08-20 10:08:39 PDT
Created attachment 259476 [details]
Screenshot of assertion in Inspector^2

I was not able to reproduce this reliably, but I did get a screenshot with some relevant state.

It appears that in some cases, we may try to show a script resource (load triggered via SourceMap) in a call frame before that script has been loaded from the backend.

I don't really understand what SourceCodeTextEditor can assume in _populateWithScriptContent(). In my understanding, a script will not be associated with a resource until the DebuggerManager receives the parser notification (scriptDidParse) and makes a new WebInspector.Script. But in this case, it has nothing, and this is a normal call frame whose resource has a source map.

Joe, does anything stand out to you? The call stack may provide some extra clues. Unfortunately I didn't save the Inspector's debugger call frames it was trying to show.
Comment 1 Radar WebKit Bug Importer 2015-08-20 10:09:17 PDT
<rdar://problem/22363055>