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

Issue 1228233007: Shows error messages in the inspector when .respondWith() is called with wrong responses. (Closed)

Created:
5 years, 5 months ago by horo
Modified:
5 years, 5 months ago
Reviewers:
falken, Mike West
CC:
blink-reviews, falken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Shows error messages in the inspector when .respondWith() is called with wrong responses. To let the developer know about the reason of the failure. BUG=505784 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199287

Patch Set 1 #

Patch Set 2 : #

Total comments: 25

Patch Set 3 : incorporated falken's comment #

Total comments: 6

Patch Set 4 : incorporated falken's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -6 lines) Patch
M Source/modules/serviceworkers/RespondWithObserver.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/RespondWithObserver.cpp View 1 2 3 4 chunks +43 lines, -3 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (7 generated)
horo
falken@ Could you please review this?
5 years, 5 months ago (2015-07-10 10:44:11 UTC) #4
horo
falken@ Could you please review this?
5 years, 5 months ago (2015-07-10 10:44:11 UTC) #5
falken
Thanks for working on this! I think the messages could use a "professional" eye, +mkwst. ...
5 years, 5 months ago (2015-07-10 11:20:44 UTC) #7
horo
Thank you for the review! https://codereview.chromium.org/1228233007/diff/40001/Source/modules/serviceworkers/RespondWithObserver.cpp File Source/modules/serviceworkers/RespondWithObserver.cpp (right): https://codereview.chromium.org/1228233007/diff/40001/Source/modules/serviceworkers/RespondWithObserver.cpp#newcode30 Source/modules/serviceworkers/RespondWithObserver.cpp:30: { On 2015/07/10 11:20:44, ...
5 years, 5 months ago (2015-07-10 12:13:27 UTC) #8
Mike West
The strings look good! I'm a bit concerned about spamming the console however, see below: ...
5 years, 5 months ago (2015-07-10 13:01:10 UTC) #9
falken
CC pfeldman: you might be interested in console message/DevTools discussion https://codereview.chromium.org/1228233007/diff/40001/Source/modules/serviceworkers/RespondWithObserver.cpp File Source/modules/serviceworkers/RespondWithObserver.cpp (right): https://codereview.chromium.org/1228233007/diff/40001/Source/modules/serviceworkers/RespondWithObserver.cpp#newcode58 ...
5 years, 5 months ago (2015-07-13 00:51:36 UTC) #10
falken
https://codereview.chromium.org/1228233007/diff/40001/Source/modules/serviceworkers/RespondWithObserver.cpp File Source/modules/serviceworkers/RespondWithObserver.cpp (right): https://codereview.chromium.org/1228233007/diff/40001/Source/modules/serviceworkers/RespondWithObserver.cpp#newcode58 Source/modules/serviceworkers/RespondWithObserver.cpp:58: context->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); On 2015/07/13 00:51:36, falken wrote: > ...
5 years, 5 months ago (2015-07-13 00:58:11 UTC) #11
falken
this lgtm, longer term we probably want this in DevTools Network tab or somewhere rather ...
5 years, 5 months ago (2015-07-14 12:58:55 UTC) #12
pfeldman
Looks fine by me - I don't think it generates too much noise.
5 years, 5 months ago (2015-07-14 13:10:08 UTC) #13
horo
https://codereview.chromium.org/1228233007/diff/60001/Source/modules/serviceworkers/RespondWithObserver.cpp File Source/modules/serviceworkers/RespondWithObserver.cpp (right): https://codereview.chromium.org/1228233007/diff/60001/Source/modules/serviceworkers/RespondWithObserver.cpp#newcode29 Source/modules/serviceworkers/RespondWithObserver.cpp:29: void maybeOutputErrorMessage(ExecutionContext* context, WebServiceWorkerResponseError error, const KURL& requestURL) On ...
5 years, 5 months ago (2015-07-15 02:32:10 UTC) #15
horo
mkwst@ As same as falken@, I don't think these messages will be shown in normal ...
5 years, 5 months ago (2015-07-21 03:06:42 UTC) #16
Mike West
On 2015/07/21 at 03:06:42, horo wrote: > mkwst@ > As same as falken@, I don't ...
5 years, 5 months ago (2015-07-22 06:05:49 UTC) #17
horo
On 2015/07/22 06:05:49, Mike West wrote: > On 2015/07/21 at 03:06:42, horo wrote: > > ...
5 years, 5 months ago (2015-07-22 06:48:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228233007/100001
5 years, 5 months ago (2015-07-22 06:48:23 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:100001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199287
5 years, 5 months ago (2015-07-22 08:10:18 UTC) #22
yhirano
5 years, 5 months ago (2015-07-22 09:47:53 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:100001) has been created in
https://codereview.chromium.org/1252443003/ by yhirano@chromium.org.

The reason for reverting is: Causes content_browsertests failures:
http://build.chromium.org/p/chromium.webkit/builders/Linux%20Tests/builds/45600.

Powered by Google App Engine
This is Rietveld 408576698