Select service worker for documents with data/blob URLS
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Jan 2018 17:32:31 +0000 (17:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Jan 2018 17:32:31 +0000 (17:32 +0000)
commita32f03e41f5b53a94f837131045252c64e28ae40
tree4c3019f2e673fb4d544b0bf30fac27320906d27f
parentb502b0f10d4bb99210448e41ca9e223dd2753923
Select service worker for documents with data/blob URLS
https://bugs.webkit.org/show_bug.cgi?id=181213

Patch by Youenn Fablet <youenn@apple.com> on 2018-01-03
Reviewed by Alex Christensen.

Source/WebCore:

Covered by updated test.

Reusing the service worker of the parent for blob/data URL documents.

* loader/DocumentLoader.cpp:
(WebCore::isLocalURL):
(WebCore::DocumentLoader::commitData):

LayoutTests:

* http/tests/workers/service/serviceworkerclients-claim.https-expected.txt:
* http/tests/workers/service/serviceworkerclients-claim.https.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/workers/service/serviceworkerclients-claim.https-expected.txt
LayoutTests/http/tests/workers/service/serviceworkerclients-claim.https.html
Source/WebCore/ChangeLog
Source/WebCore/loader/DocumentLoader.cpp