[Webkit-unassigned] [Bug 97032] Web Inspector: load sourcemaps asynchronously, part 1/2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 20 14:12:54 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=97032





--- Comment #7 from johnjbarton <johnjbarton at chromium.org>  2012-09-20 14:13:23 PST ---
(In reply to comment #5)
> 
> (I believe this already occurs, at least I recall seeing exceptions related to rawLocationToUILocation).

Ok here is one such exception:

WebInspector.JavaScriptSource.workingCopyCommitted() :
   var rawLocation = this.uiLocationToRawLocation(0, 0);
will be null if
  1) the source file had a syntax error,
  2) the user edits the file to fix the syntax error,
  3) the user saves.

This is a consequent of UISourceCode.uiLocationToRawLocation:
        if (!this._sourceMapping)
            return null;

(reported as https://code.google.com/p/chromium/issues/detail?id=151399)

So there are other circumstances where we don't have a sourceMapping: we need to handle these cases gracefully.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list