Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Issue 733983002: Service Worker: FetchEvent.preventDefault() results in a network error (Closed)

Created:
6 years, 1 month ago by falken
Modified:
6 years, 1 month ago
Reviewers:
haraken, horo
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org
Project:
blink
Visibility:
Public.

Description

Service Worker: FetchEvent.preventDefault() results in a network error Since the default behavior is to fallback to network, preventDefault() should cause a network error. As per spec: https://github.com/slightlyoff/ServiceWorker/issues/51 (see commit f022c3a6d) Also add a test for calling FetchEvent.respondWith() with a rejected promise; this must also produce a network error. BUG=432825 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185451

Patch Set 1 #

Patch Set 2 : better error #

Patch Set 3 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -7 lines) Patch
A LayoutTests/http/tests/serviceworker/fetch-event-network-error.html View 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/fetch-event-network-error-controllee-iframe.html View 1 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/fetch-event-network-error-worker.js View 1 chunk +27 lines, -0 lines 0 comments Download
M Source/core/events/EventTarget.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/RespondWithObserver.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/RespondWithObserver.cpp View 1 chunk +7 lines, -1 line 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
falken
PTAL
6 years, 1 month ago (2014-11-17 09:33:06 UTC) #2
horo
lgtm
6 years, 1 month ago (2014-11-17 11:25:34 UTC) #3
falken
+haraken: can you please review core/ and web/?
6 years, 1 month ago (2014-11-17 13:15:21 UTC) #5
haraken
LGTM
6 years, 1 month ago (2014-11-17 13:56:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/733983002/20001
6 years, 1 month ago (2014-11-17 14:13:34 UTC) #8
commit-bot: I haz the power
Failed to apply patch for Source/web/ServiceWorkerGlobalScopeProxy.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 1 month ago (2014-11-17 14:13:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/733983002/40001
6 years, 1 month ago (2014-11-17 14:47:51 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 16:19:09 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 185451

Powered by Google App Engine
This is Rietveld 408576698