Bug 191339 - ServiceWorker Inspector: Uncaught Exception: null is not an object (evaluating 'resource.target.addResource')
Summary: ServiceWorker Inspector: Uncaught Exception: null is not an object (evaluatin...
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: https://airhorner.com/
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-06 16:48 PST by Joseph Pecoraro
Modified: 2018-11-06 23:33 PST (History)
5 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.47 KB, patch)
2018-11-06 16:49 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 Joseph Pecoraro 2018-11-06 16:48:47 PST
* Steps to Reproduce
1. Inspect ServiceWorker on airhorner.com
2. Reload the airhorner.com page
  => Exception in inspector for script with `targetId` of "serviceWorkerScriptLoad:" which is unexpected

-------
Inspected URL:        https://airhorner.com/
Loading completed:    true
Dispatch Source:      Protocol Event

Protocol Event:
{"method":"Network.requestWillBeSent","params":{"requestId":"0.28","frameId":"","loaderId":"","documentURL":"https://airhorner.com/sw.js","request":{"url":"https://airhorner.com/sw.js","method":"GET","headers":{"Service-Worker":"script"}},"timestamp":3.59948630600411,"walltime":1541551630.689134,"initiator":{"type":"other"},"targetId":"serviceWorkerScriptLoad:"}}

Uncaught Exceptions:
 - null is not an object (evaluating 'resource.target.addResource') (at NetworkManager.js:619:28)
    _addNewResourceToFrameOrTarget @ NetworkManager.js:619:28
    resourceRequestWillBeSent @ NetworkManager.js:274:55
    requestWillBeSent @ NetworkObserver.js:41:52
    dispatchEvent @ InspectorBackend.js:305:42
    _dispatchEvent @ Connection.js:194:32
    dispatch @ Connection.js:72:32
    dispatch @ InspectorBackend.js:154:49
    dispatchNextQueuedMessageFromBackend @ MessageDispatcher.js:42:34

Additional Details:
    cause --> An uncaught exception was thrown while handling event: Network.requestWillBeSent
Comment 1 Joseph Pecoraro 2018-11-06 16:49:53 PST
Created attachment 354030 [details]
[PATCH] Proposed Fix
Comment 2 Matt Baker 2018-11-06 17:54:21 PST
Comment on attachment 354030 [details]
[PATCH] Proposed Fix

r=me
Comment 3 WebKit Commit Bot 2018-11-06 23:32:52 PST
Comment on attachment 354030 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 354030

Committed r237917: <https://trac.webkit.org/changeset/237917>
Comment 4 WebKit Commit Bot 2018-11-06 23:32:53 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2018-11-06 23:33:39 PST
<rdar://problem/45867252>