Changeset 237917 in webkit


Ignore:
Timestamp:
Nov 6, 2018 11:32:45 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

ServiceWorker Inspector: Uncaught Exception: null is not an object (evaluating 'resource.target.addResource')
https://bugs.webkit.org/show_bug.cgi?id=191339

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2018-11-06
Reviewed by Matt Baker.

  • workers/service/ServiceWorkerJob.cpp:

(WebCore::ServiceWorkerJob::fetchScriptWithContext):
Use the Service Worker's identifier, not this static but otherwise unknown identifier.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r237916 r237917  
     12018-11-06  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        ServiceWorker Inspector: Uncaught Exception: null is not an object (evaluating 'resource.target.addResource')
     4        https://bugs.webkit.org/show_bug.cgi?id=191339
     5
     6        Reviewed by Matt Baker.
     7
     8        * workers/service/ServiceWorkerJob.cpp:
     9        (WebCore::ServiceWorkerJob::fetchScriptWithContext):
     10        Use the Service Worker's identifier, not this static but otherwise unknown identifier.
     11
    1122018-11-06  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Source/WebCore/workers/service/ServiceWorkerJob.cpp

    r233122 r237917  
    9696
    9797    ResourceRequest request { m_jobData.scriptURL };
    98     request.setInitiatorIdentifier("serviceWorkerScriptLoad:");
     98    request.setInitiatorIdentifier(context.resourceRequestIdentifier());
    9999    request.addHTTPHeaderField("Service-Worker"_s, "script"_s);
    100100
Note: See TracChangeset for help on using the changeset viewer.