Chromium Code Reviews
DescriptionServiceWorker: Store the existence of fetch event handler
Currently |has_fetch_handler| is always set to true though the ServiceWorker script has no fetch event handler.
This patch passes the existence of fetch handler in the response to the install event, so the correct value will be stored.
This information will be used for bypassing ServiceWorker when no fetch handler is registered.
BUG=605844
TEST=./out/Default/content_unittests --gtest_filter="ServiceWorkerJobTest.HasFetchHandler"
TEST=./out/Default/content_browsertests --gtest_filter="ServiceWorkerVersionBrowserTest.InstallWith*"
Committed: https://crrev.com/ceec8e3a24f7ad3a2bd7a64ae7f6d82f25dfabdb
Cr-Commit-Position: refs/heads/master@{#396381}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Merge blink-side patch #Patch Set 3 : Fix my mistake #
Total comments: 2
Patch Set 4 : Remove DispatchInstallEvent #
Total comments: 6
Patch Set 5 : Add tests and change the default status code to FAILED #
Total comments: 2
Patch Set 6 : Add a browser-side test and rebase #
Total comments: 6
Patch Set 7 : Use EXPECT_* and remove unnecessary checks #Patch Set 8 : Rebase #Messages
Total messages: 38 (15 generated)
|