Bug 170189 - Web Inspector: Unable to Format JSON Request Data
Summary: Web Inspector: Unable to Format JSON Request Data
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-28 11:41 PDT by Joseph Pecoraro
Modified: 2017-03-28 12:21 PDT (History)
4 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.93 KB, patch)
2017-03-28 11:45 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2017-03-28 11:41:52 PDT
Summary:
Unable to Format JSON Request Data

Exception:
null is not an object (evaluating 'this._delegate.textEditorScriptSourceType')​ (at TextEditor.js:​842:​40)​
    _startWorkerPrettyPrint @ TextEditor.js:​842:​40
    ?​ @ TextEditor.js:​825:​45
    initializePromise @ [native code]​
    Promise @ [native code]​
    prettyPrint @ TextEditor.js:​816:​27
    _format @ TextEditor.js:​796:​51
    updateFormattedState @ TextEditor.js:​180:​28
    _togglePrettyPrint @ TextContentView.js:​160:​46
    dispatch @ Object.js:​170:​30
    dispatchEventToListeners @ Object.js:​177:​17
    _mouseClicked @ ButtonNavigationItem.js:​131:​38
    _mouseClicked @ [native code]​

Notes:
- Seems we are just trying to determine if this is a Script or a Module. We can assume a script if we don't have a delegate.
Comment 1 Joseph Pecoraro 2017-03-28 11:45:50 PDT
Created attachment 305617 [details]
[PATCH] Proposed Fix
Comment 2 Matt Baker 2017-03-28 11:48:51 PDT
Comment on attachment 305617 [details]
[PATCH] Proposed Fix

r=me
Comment 3 WebKit Commit Bot 2017-03-28 12:21:03 PDT
Comment on attachment 305617 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 305617

Committed r214487: <http://trac.webkit.org/changeset/214487>
Comment 4 WebKit Commit Bot 2017-03-28 12:21:07 PDT
All reviewed patches have been landed.  Closing bug.