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

Issue 164933002: Expose details for appcache error events [Chromium] (Closed)

Created:
6 years, 10 months ago by jsbell
Modified:
6 years, 8 months ago
Reviewers:
michaeln, Tom Sepez
Visibility:
Public.

Description

Expose details for appcache error events Chromium side. Would land after Blink side. BUG=342555 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260732

Patch Set 1 : reup #

Patch Set 2 : Plumb through structured data (WIP) #

Patch Set 3 : re-up #

Total comments: 5

Patch Set 4 : Add message property #

Patch Set 5 : Make reason an enum #

Total comments: 9

Patch Set 6 : Review feedback #

Total comments: 9

Patch Set 7 : Align with spec proposal #

Patch Set 8 : Reorder to match spec #

Patch Set 9 : Plumb status through in 'obsolete' case #

Patch Set 10 : Plumb through 3xx errors #

Patch Set 11 : Remove 'obsolete' error reason #

Patch Set 12 : Don't leak details cross-origin #

Total comments: 7

Patch Set 13 : Rebased and review feedback #

Total comments: 4

Patch Set 14 : Restore failed_resource_url #

Patch Set 15 : Fix merge glitch, complete a rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -107 lines) Patch
M content/browser/appcache/appcache_frontend_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/appcache/appcache_frontend_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
M content/child/appcache/appcache_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/child/appcache/appcache_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/appcache/appcache_frontend_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/child/appcache/appcache_frontend_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +31 lines, -3 lines 0 comments Download
M content/child/appcache/web_application_cache_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/child/appcache/web_application_cache_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -4 lines 0 comments Download
M content/common/appcache_messages.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -1 line 0 comments Download
M webkit/browser/appcache/appcache_group_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/browser/appcache/appcache_host.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -1 line 0 comments Download
M webkit/browser/appcache/appcache_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M webkit/browser/appcache/appcache_request_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M webkit/browser/appcache/appcache_service.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +14 lines, -8 lines 0 comments Download
M webkit/browser/appcache/appcache_storage.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -3 lines 0 comments Download
M webkit/browser/appcache/appcache_storage_impl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M webkit/browser/appcache/appcache_storage_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +19 lines, -9 lines 0 comments Download
M webkit/browser/appcache/appcache_storage_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -3 lines 0 comments Download
M webkit/browser/appcache/appcache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/browser/appcache/appcache_update_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +8 lines, -4 lines 0 comments Download
M webkit/browser/appcache/appcache_update_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 20 chunks +133 lines, -38 lines 0 comments Download
M webkit/browser/appcache/appcache_update_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M webkit/browser/appcache/mock_appcache_storage.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -4 lines 0 comments Download
M webkit/browser/appcache/mock_appcache_storage.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -7 lines 0 comments Download
M webkit/browser/appcache/mock_appcache_storage_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/common/appcache/appcache_interfaces.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +29 lines, -1 line 0 comments Download
M webkit/common/appcache/appcache_interfaces.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
jsbell
https://codereview.chromium.org/164933002/diff/170001/webkit/browser/appcache/appcache_update_job.cc File webkit/browser/appcache/appcache_update_job.cc (right): https://codereview.chromium.org/164933002/diff/170001/webkit/browser/appcache/appcache_update_job.cc#newcode438 webkit/browser/appcache/appcache_update_job.cc:438: // TODO: Should both of these errors be generated? ...
6 years, 10 months ago (2014-02-21 23:48:23 UTC) #1
michaeln
i haven't looked closely yet, just responding to the TODO https://codereview.chromium.org/164933002/diff/170001/webkit/browser/appcache/appcache_update_job.cc File webkit/browser/appcache/appcache_update_job.cc (right): https://codereview.chromium.org/164933002/diff/170001/webkit/browser/appcache/appcache_update_job.cc#newcode438 ...
6 years, 10 months ago (2014-02-22 00:19:39 UTC) #2
jsbell
On 2014/02/22 00:19:39, michaeln wrote: > i haven't looked closely yet, just responding to the ...
6 years, 10 months ago (2014-02-22 00:23:09 UTC) #3
michaeln
> Thanks. This raises the question of what details should be given to recipients - ...
6 years, 10 months ago (2014-02-22 00:52:12 UTC) #4
michaeln
I got distracted with the "Hmmm" observation. https://codereview.chromium.org/164933002/diff/170001/webkit/browser/appcache/appcache_update_job.cc File webkit/browser/appcache/appcache_update_job.cc (right): https://codereview.chromium.org/164933002/diff/170001/webkit/browser/appcache/appcache_update_job.cc#newcode737 webkit/browser/appcache/appcache_update_job.cc:737: // TODO: ...
6 years, 10 months ago (2014-02-22 01:18:49 UTC) #5
michaeln
https://codereview.chromium.org/164933002/diff/170001/webkit/browser/appcache/appcache_host.cc File webkit/browser/appcache/appcache_host.cc (right): https://codereview.chromium.org/164933002/diff/170001/webkit/browser/appcache/appcache_host.cc#newcode121 webkit/browser/appcache/appcache_host.cc:121: "Policy", ah... an outlier error type, good find! https://codereview.chromium.org/164933002/diff/290001/webkit/browser/appcache/appcache_update_job.cc ...
6 years, 9 months ago (2014-02-27 23:16:05 UTC) #6
jsbell
https://codereview.chromium.org/164933002/diff/290001/webkit/browser/appcache/appcache_update_job.cc File webkit/browser/appcache/appcache_update_job.cc (right): https://codereview.chromium.org/164933002/diff/290001/webkit/browser/appcache/appcache_update_job.cc#newcode523 webkit/browser/appcache/appcache_update_job.cc:523: ERROR_MANIFEST_FETCH, On 2014/02/27 23:16:06, michaeln wrote: > s/b ERROR_MANIFEST_OBSOLETE? ...
6 years, 9 months ago (2014-02-28 22:45:59 UTC) #7
michaeln
https://codereview.chromium.org/164933002/diff/310001/webkit/browser/appcache/appcache_update_job.cc File webkit/browser/appcache/appcache_update_job.cc (right): https://codereview.chromium.org/164933002/diff/310001/webkit/browser/appcache/appcache_update_job.cc#newcode138 webkit/browser/appcache/appcache_update_job.cc:138: request->Cancel(); It might be a matter of not calling ...
6 years, 9 months ago (2014-03-01 00:20:01 UTC) #8
jsbell
https://codereview.chromium.org/164933002/diff/310001/webkit/browser/appcache/appcache_update_job.cc File webkit/browser/appcache/appcache_update_job.cc (right): https://codereview.chromium.org/164933002/diff/310001/webkit/browser/appcache/appcache_update_job.cc#newcode560 webkit/browser/appcache/appcache_update_job.cc:560: message, ERROR_MANIFEST_INVALID, manifest_url_, 0, MANIFEST_ERROR); On 2014/03/01 00:20:02, michaeln ...
6 years, 9 months ago (2014-03-01 00:53:06 UTC) #9
michaeln
https://codereview.chromium.org/164933002/diff/310001/webkit/browser/appcache/appcache_update_job.cc File webkit/browser/appcache/appcache_update_job.cc (right): https://codereview.chromium.org/164933002/diff/310001/webkit/browser/appcache/appcache_update_job.cc#newcode677 webkit/browser/appcache/appcache_update_job.cc:677: int response_code = request->status().is_success() There are a lot of ...
6 years, 9 months ago (2014-03-01 01:34:55 UTC) #10
jsbell
https://codereview.chromium.org/164933002/diff/310001/webkit/browser/appcache/appcache_update_job.cc File webkit/browser/appcache/appcache_update_job.cc (right): https://codereview.chromium.org/164933002/diff/310001/webkit/browser/appcache/appcache_update_job.cc#newcode677 webkit/browser/appcache/appcache_update_job.cc:677: int response_code = request->status().is_success() Nice find. Hrm.... spec's table ...
6 years, 9 months ago (2014-03-03 23:10:18 UTC) #11
jsbell
Back to enumerating possible errors, it looks like these are the sources of error per ...
6 years, 9 months ago (2014-03-03 23:23:57 UTC) #12
michaeln
On 2014/03/03 23:23:57, jsbell wrote: > Back to enumerating possible errors, it looks like these ...
6 years, 9 months ago (2014-03-04 02:45:55 UTC) #13
michaeln
>> Whoa... I think I might have an unexpected explanation for some > > Spec ...
6 years, 9 months ago (2014-03-04 02:57:30 UTC) #14
jsbell
So... you can specify an off-domain resource in MANIFEST. Do we need to filter out ...
6 years, 9 months ago (2014-03-12 19:04:00 UTC) #15
jsbell
> > * otherwise, and resource download failed > > is the second one--> a ...
6 years, 9 months ago (2014-03-12 21:40:42 UTC) #16
michaeln
On 2014/03/12 19:04:00, jsbell wrote: > So... you can specify an off-domain resource in MANIFEST. ...
6 years, 9 months ago (2014-03-12 22:06:32 UTC) #17
jsbell
FYI, I just updated the patches (Chromium and Blink) to align with the spec proposal. ...
6 years, 9 months ago (2014-03-14 22:25:51 UTC) #18
michaeln
this lgtm, modulo the cross domian question and making sure 3xx's are reported
6 years, 9 months ago (2014-03-15 00:19:09 UTC) #19
jsbell
On 2014/03/15 00:19:09, michaeln wrote: > this lgtm, modulo the cross domian question and making ...
6 years, 9 months ago (2014-03-17 18:25:53 UTC) #20
jsbell
New patch. This one plumbs through an "is_cross_origin" bit and lets the renderer blank out ...
6 years, 9 months ago (2014-03-24 20:57:33 UTC) #21
michaeln
lgtm before and still does now https://codereview.chromium.org/164933002/diff/430001/content/child/appcache/web_application_cache_host_impl.cc File content/child/appcache/web_application_cache_host_impl.cc (right): https://codereview.chromium.org/164933002/diff/430001/content/child/appcache/web_application_cache_host_impl.cc#newcode151 content/child/appcache/web_application_cache_host_impl.cc:151: static_cast<ErrorReason>(details.reason), details.url, 0, ...
6 years, 9 months ago (2014-03-27 01:05:36 UTC) #22
jsbell
https://codereview.chromium.org/164933002/diff/430001/webkit/browser/appcache/appcache_unittest.cc File webkit/browser/appcache/appcache_unittest.cc (right): https://codereview.chromium.org/164933002/diff/430001/webkit/browser/appcache/appcache_unittest.cc#newcode27 webkit/browser/appcache/appcache_unittest.cc:27: const appcache::ErrorDetails& details) On 2014/03/27 01:05:37, michaeln wrote: > ...
6 years, 9 months ago (2014-03-27 19:23:23 UTC) #23
jsbell
I probably need to restore passing through the resource URL, to be consistent. https://codereview.chromium.org/164933002/diff/450001/webkit/browser/appcache/appcache_update_job.cc File ...
6 years, 9 months ago (2014-03-27 19:30:42 UTC) #24
michaeln
On 2014/03/27 19:30:42, jsbell wrote: > I probably need to restore passing through the resource ...
6 years, 9 months ago (2014-03-27 19:38:50 UTC) #25
jsbell
On 2014/03/27 19:38:50, michaeln wrote: > On 2014/03/27 19:30:42, jsbell wrote: > > I probably ...
6 years, 9 months ago (2014-03-27 20:29:27 UTC) #26
michaeln
On 2014/03/27 20:29:27, jsbell wrote: > On 2014/03/27 19:38:50, michaeln wrote: > > On 2014/03/27 ...
6 years, 9 months ago (2014-03-27 21:19:16 UTC) #27
jsbell
tsepez@ - Can you pleas review the IPC changes in content/common/appcache_messages.h ?
6 years, 9 months ago (2014-03-28 16:01:29 UTC) #28
Tom Sepez
On 2014/03/28 16:01:29, jsbell wrote: > tsepez@ - Can you pleas review the IPC changes ...
6 years, 9 months ago (2014-03-28 17:27:33 UTC) #29
jsbell
On 2014/03/28 17:27:33, Tom Sepez wrote: > On 2014/03/28 16:01:29, jsbell wrote: > > tsepez@ ...
6 years, 9 months ago (2014-03-28 17:35:22 UTC) #30
jsbell
On 2014/03/28 17:35:22, jsbell wrote: > That's correct, and intentional. See: > > https://codereview.chromium.org/164933002/diff/470001/content/child/appcache/web_application_cache_host_impl.cc > ...
6 years, 9 months ago (2014-03-28 17:38:55 UTC) #31
Tom Sepez
OK, let's go with this the way it is for now. Messages LGTM. We may ...
6 years, 9 months ago (2014-03-28 17:43:16 UTC) #32
jsbell
The CQ bit was checked by jsbell@chromium.org
6 years, 8 months ago (2014-03-31 16:54:51 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/164933002/470001
6 years, 8 months ago (2014-03-31 16:55:26 UTC) #34
jsbell
The CQ bit was unchecked by jsbell@chromium.org
6 years, 8 months ago (2014-03-31 20:24:32 UTC) #35
jsbell
The CQ bit was checked by jsbell@chromium.org
6 years, 8 months ago (2014-03-31 22:02:19 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/164933002/490001
6 years, 8 months ago (2014-03-31 22:03:34 UTC) #37
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 01:35:47 UTC) #38
Message was sent while issue was closed.
Change committed as 260732

Powered by Google App Engine
This is Rietveld 408576698