Revert "Revert of ServiceWorker: Implement StartWorker by using mojo (patchset #1 id:1 of https://codereview.chromium.org/2378073002/ )"
This reverts commit e0efe32458df38eae4ed49d94f6772281dd46702.
Reason for revert:
This patch actually does not cause Leak. It was already tracked by
another issue: crbug.com/506754
[email protected],[email protected],[email protected],[email protected],[email protected]
BUG=629701,506754,650955
Review-Url: https://codereview.chromium.org/2374353002
Cr-Commit-Position: refs/heads/master@{#421780}
diff --git a/third_party/WebKit/LayoutTests/LeakExpectations b/third_party/WebKit/LayoutTests/LeakExpectations
index 29abc30..90e3310a 100644
--- a/third_party/WebKit/LayoutTests/LeakExpectations
+++ b/third_party/WebKit/LayoutTests/LeakExpectations
@@ -81,6 +81,8 @@
crbug.com/506754 http/tests/security/cross-origin-indexeddb-allowed.html [ Leak ]
crbug.com/506754 http/tests/serviceworker/chromium/resolve-after-window-close.html [ Leak ]
crbug.com/506754 http/tests/serviceworker/chromium/window-close-during-registration.html [ Leak ]
+crbug.com/506754 virtual/mojo-service-worker/http/tests/serviceworker/chromium/resolve-after-window-close.html [ Leak ]
+crbug.com/506754 virtual/mojo-service-worker/http/tests/serviceworker/chromium/window-close-during-registration.html [ Leak ]
# -----------------------------------------------------------------
# Untriaged but known leaks of ActiveDOMObject (Web Audio).
diff --git a/third_party/WebKit/LayoutTests/VirtualTestSuites b/third_party/WebKit/LayoutTests/VirtualTestSuites
index ea0760b..6d75989 100644
--- a/third_party/WebKit/LayoutTests/VirtualTestSuites
+++ b/third_party/WebKit/LayoutTests/VirtualTestSuites
@@ -288,5 +288,10 @@
"prefix": "enable_wasm",
"base": "http/tests/wasm",
"args": ["--enable-wasm"]
+ },
+ {
+ "prefix": "mojo-service-worker",
+ "base": "http/tests/serviceworker",
+ "args": ["--mojo-service-worker"]
}
]
diff --git a/third_party/WebKit/LayoutTests/virtual/mojo-service-worker/http/tests/serviceworker/README.txt b/third_party/WebKit/LayoutTests/virtual/mojo-service-worker/http/tests/serviceworker/README.txt
new file mode 100644
index 0000000..0310ec9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/mojo-service-worker/http/tests/serviceworker/README.txt
@@ -0,0 +1 @@
+This directory is for testing the service workers with mojo by using '--mojo-service-worker' flag.