Add a test to check for the service worker process name
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Apr 2019 22:29:47 +0000 (22:29 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Apr 2019 22:29:47 +0000 (22:29 +0000)
commitc9913cae1f9f3dd3b6d0795826a56bb60918fcb8
treea5acf08237c96cf4309380842a8be1159471c21a
parentbbcc3a912cbb427971137a900c1e3d0a75180184
Add a test to check for the service worker process name
https://bugs.webkit.org/show_bug.cgi?id=196621

Reviewed by Chris Dumez.

Source/WebCore:

Add a service worker internal API to get process name.
Covered by updated test.

* WebCore.xcodeproj/project.pbxproj:
* testing/ServiceWorkerInternals.cpp:
(WebCore::ServiceWorkerInternals::processName const):
* testing/ServiceWorkerInternals.h:
* testing/ServiceWorkerInternals.idl:
* testing/ServiceWorkerInternals.mm: Added.

LayoutTests:

* http/wpt/service-workers/online-worker.js:
(async.doTest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/wpt/service-workers/online-worker.js
Source/WebCore/ChangeLog
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/testing/ServiceWorkerInternals.cpp
Source/WebCore/testing/ServiceWorkerInternals.h
Source/WebCore/testing/ServiceWorkerInternals.idl
Source/WebCore/testing/ServiceWorkerInternals.mm [new file with mode: 0644]