Bug 179325 - Uncaught Exception: TypeError: null is not an object (evaluating 'mimeType.endsWith')
Summary: Uncaught Exception: TypeError: null is not an object (evaluating 'mimeType.en...
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: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-11-06 10:06 PST by BJ Burg
Modified: 2017-11-06 12:32 PST (History)
5 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (4.97 KB, patch)
2017-11-06 11:34 PST, 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 BJ Burg 2017-11-06 10:06:03 PST
-------
Inspected URL:        Apple Internal :(
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.13+ (KHTML, like Gecko)

Uncaught Exceptions:
 - TypeError: null is not an object (evaluating 'mimeType.endsWith') (at MIMETypeUtilities.js:127:17)
    fileExtensionForMIMEType @ MIMETypeUtilities.js:127:17
    _customContentViewConstructorForResource @ ResourceClusterContentView.js:338:56
    _tryEnableCustomResponseContentView @ ResourceClusterContentView.js:322:99
    ResourceClusterContentView @ ResourceClusterContentView.js:64:49
    createFromRepresentedObject @ ContentView.js:52:53
    contentViewForRepresentedObject @ ContentView.js:199:72
    showContentViewForRepresentedObject @ ContentBrowser.js:149:63
    showRepresentedObject @ ContentBrowserTabContentView.js:197:64
    showRepresentedObject @ Main.js:1135:41
    _treeSelectionDidChange @ ResourceSidebarPanel.js:464:37
    dispatch @ Object.js:170:30
    dispatchEventToListeners @ Object.js:177:17
    select @ TreeElement.js:536:49
    selectOnMouseDown @ TreeElement.js:493:20
    treeElementMouseDown @ TreeElement.js:287:46
-------

* STEPS TO REPRODUCE
1. Load the page (pasted in radar), switch to Network Tab, click on the socket.io resource
=> Uncaught Exception
Comment 1 Radar WebKit Bug Importer 2017-11-06 10:06:26 PST
<rdar://problem/35366896>
Comment 2 Joseph Pecoraro 2017-11-06 10:29:58 PST
I think I had fixed this on my CacheStorage branch, but its easy to add a check now.
Comment 3 Joseph Pecoraro 2017-11-06 11:34:03 PST
Created attachment 326139 [details]
[PATCH] Proposed Fix
Comment 4 BJ Burg 2017-11-06 11:36:38 PST
Comment on attachment 326139 [details]
[PATCH] Proposed Fix

r=me
Comment 5 WebKit Commit Bot 2017-11-06 12:32:09 PST
Comment on attachment 326139 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 326139

Committed r224507: <https://trac.webkit.org/changeset/224507>
Comment 6 WebKit Commit Bot 2017-11-06 12:32:11 PST
All reviewed patches have been landed.  Closing bug.