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

Issue 1044203004: [Storage] Cache storage inspection on all the frames! (Closed)

Created:
5 years, 8 months ago by dmurph
Modified:
5 years, 8 months ago
Reviewers:
vsevik, Nico, jsbell, pfeldman, horo
CC:
aandrey+blink_chromium.org, apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, devtools-reviews_chromium.org, falken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, jsbell, kenjibaheux, kinuko+serviceworker, kozyatinskiy+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, michaeln, nhiroki, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, serviceworker-reviews, tzik, yurys+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[Storage] Cache storage inspection on all the frames! * Simplified the ServiceWorkerCacheModel & added securityOrigin support * Renamed protocol to "CacheStorage" * Hooked up cache using new piping from Josh * Add agent in the same spot as the IndexedDB agent. BUG=439389 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194060

Patch Set 1 #

Total comments: 14

Patch Set 2 : Cleanup, re-adding SWGlobalScope support, tested for pages and SW's #

Total comments: 28

Patch Set 3 : Fully converted to Map and Set #

Patch Set 4 : Using Platform instead of searching frame #

Patch Set 5 : More cleanup #

Total comments: 24

Patch Set 6 : WIP #

Patch Set 7 : Added tests, cleanup, and a fix #

Patch Set 8 : Comments #

Total comments: 28

Patch Set 9 : Test harness improvements, and comments #

Patch Set 10 : Rebase #

Total comments: 18

Patch Set 11 : Comments and fix #

Total comments: 21

Patch Set 12 : Opaque ID and comments #

Patch Set 13 : Tests #

Total comments: 14

Patch Set 14 : comments and rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+787 lines, -215 lines) Patch
A LayoutTests/http/tests/inspector/cache-storage/cache-data.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/inspector/cache-storage/cache-deletion-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/inspector/cache-storage/cache-names.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/inspector/cache-storage/cache-names-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +165 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/inspector/inspector-test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +85 lines, -1 line 0 comments Download
A Source/core/event_idl_files_list.tmp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +35 lines, -0 lines 1 comment Download
M Source/devtools/front_end/resources/ResourcesPanel.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +37 lines, -57 lines 0 comments Download
M Source/devtools/front_end/resources/ServiceWorkerCacheViews.js View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +25 lines, -29 lines 0 comments Download
M Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +157 lines, -76 lines 0 comments Download
M Source/devtools/front_end/sdk/ServiceWorkerManager.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/sdk/Target.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -7 lines 0 comments Download
M Source/devtools/front_end/sdk/WorkerManager.js View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/protocol.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +22 lines, -4 lines 0 comments Download
M Source/modules/cachestorage/InspectorCacheStorageAgent.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -11 lines 0 comments Download
M Source/modules/cachestorage/InspectorCacheStorageAgent.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +68 lines, -27 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebDevToolsAgentImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (5 generated)
dmurph
Hello all, Can you take a look at this patch? This adds Cache Storage support ...
5 years, 8 months ago (2015-03-31 23:32:55 UTC) #2
horo
Oh it's wonderful!! https://codereview.chromium.org/1044203004/diff/1/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp File Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp (right): https://codereview.chromium.org/1044203004/diff/1/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp#newcode65 Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp:65: static DOMWindow* assertWindow(ErrorString* errorString, LocalFrame* frame) ...
5 years, 8 months ago (2015-04-01 03:39:08 UTC) #3
pfeldman
https://codereview.chromium.org/1044203004/diff/1/Source/devtools/front_end/resources/ResourcesPanel.js File Source/devtools/front_end/resources/ResourcesPanel.js (right): https://codereview.chromium.org/1044203004/diff/1/Source/devtools/front_end/resources/ResourcesPanel.js#newcode1427 Source/devtools/front_end/resources/ResourcesPanel.js:1427: WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("Cache Storage"), "Cache Storage", ["service-worker-cache-storage-tree-item"]); "Cache Storage" ...
5 years, 8 months ago (2015-04-01 07:01:09 UTC) #4
blink-reviews
I sent both of you an email with some longer questions :) On Wed, Apr ...
5 years, 8 months ago (2015-04-02 05:13:03 UTC) #5
dmurph
I believe I addressed the issues here. With the IndexedDB fix this now works. Only ...
5 years, 8 months ago (2015-04-02 20:59:03 UTC) #6
pfeldman
https://codereview.chromium.org/1044203004/diff/20001/Source/devtools/front_end/resources/ResourcesPanel.js File Source/devtools/front_end/resources/ResourcesPanel.js (right): https://codereview.chromium.org/1044203004/diff/20001/Source/devtools/front_end/resources/ResourcesPanel.js#newcode1436 Source/devtools/front_end/resources/ResourcesPanel.js:1436: for (var target of targets) { You can directly ...
5 years, 8 months ago (2015-04-02 21:18:58 UTC) #7
pfeldman
(we definitely don't want to land anything before the branch point, we should land it ...
5 years, 8 months ago (2015-04-02 21:19:39 UTC) #8
kenjibaheux1
On 2015/04/02 21:19:39, pfeldman wrote: > (we definitely don't want to land anything before the ...
5 years, 8 months ago (2015-04-02 22:16:23 UTC) #9
kenjibaheux1
On 2015/04/02 21:19:39, pfeldman wrote: > (we definitely don't want to land anything before the ...
5 years, 8 months ago (2015-04-02 22:16:24 UTC) #10
dmurph
I fixed all the map stuff, and I added Sets instead of arrays. Tested for ...
5 years, 8 months ago (2015-04-02 23:23:18 UTC) #11
dmurph
On 2015/04/02 at 23:23:18, dmurph wrote: > I fixed all the map stuff, and I ...
5 years, 8 months ago (2015-04-02 23:46:43 UTC) #12
dmurph
One last patch with more cleanup, we no longer need the page or the global ...
5 years, 8 months ago (2015-04-03 00:44:37 UTC) #13
horo
https://codereview.chromium.org/1044203004/diff/70001/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp File Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp (right): https://codereview.chromium.org/1044203004/diff/70001/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp#newcode49 Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp:49: WebServiceWorkerCacheStorage* cache = Platform::current()->cacheStorage(identifier); nit: unnecessary apace after = ...
5 years, 8 months ago (2015-04-03 01:23:47 UTC) #14
jsbell
https://codereview.chromium.org/1044203004/diff/70001/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp File Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp (right): https://codereview.chromium.org/1044203004/diff/70001/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp#newcode49 Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp:49: WebServiceWorkerCacheStorage* cache = Platform::current()->cacheStorage(identifier); On 2015/04/03 01:23:46, horo wrote: ...
5 years, 8 months ago (2015-04-03 03:21:08 UTC) #16
pfeldman
> If the answer to these questions are affirmative, then without concrete > concerns I ...
5 years, 8 months ago (2015-04-03 09:00:57 UTC) #17
pfeldman
Overall, this looks good now. Please use an opaque key and cover it with the ...
5 years, 8 months ago (2015-04-03 09:15:58 UTC) #18
dmurph
New Patch with a few questions. Also: I'm getting errors at the .forEach call on ...
5 years, 8 months ago (2015-04-08 19:35:35 UTC) #19
pfeldman
https://codereview.chromium.org/1044203004/diff/70001/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js File Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js (right): https://codereview.chromium.org/1044203004/diff/70001/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js#newcode92 Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js:92: this._cacheNamesBySecurityOrigin.forEach(function(caches, securityOrigin) { On 2015/04/08 19:35:35, dmurph wrote: > ...
5 years, 8 months ago (2015-04-09 10:31:12 UTC) #20
dmurph
> https://codereview.chromium.org/1044203004/diff/70001/Source/devtools/protocol.json#newcode1702 > Source/devtools/protocol.json:1702: { "name": "securityOrigin", "type": "string", "description": "Security origin." } > Now ...
5 years, 8 months ago (2015-04-09 18:35:06 UTC) #21
pfeldman
> We need the security origin to look up the database identifiers. Does that mean ...
5 years, 8 months ago (2015-04-10 09:42:28 UTC) #22
pfeldman
https://codereview.chromium.org/1044203004/diff/130001/LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt File LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt (right): https://codereview.chromium.org/1044203004/diff/130001/LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt#newcode1 LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt:1: CONSOLE MESSAGE: line 156: InspectorTest.CacheStorage_callback1Resolve Lets not use console.log, ...
5 years, 8 months ago (2015-04-10 12:35:34 UTC) #23
horo
Source/modules/serviceworkers/* lgtm
5 years, 8 months ago (2015-04-13 00:21:47 UTC) #24
dmurph
https://codereview.chromium.org/1044203004/diff/130001/LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt File LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt (right): https://codereview.chromium.org/1044203004/diff/130001/LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt#newcode1 LayoutTests/http/tests/inspector/cache-storage/cache-data-expected.txt:1: CONSOLE MESSAGE: line 156: InspectorTest.CacheStorage_callback1Resolve On 2015/04/10 at 12:35:33, ...
5 years, 8 months ago (2015-04-13 18:23:03 UTC) #25
pfeldman
https://codereview.chromium.org/1044203004/diff/170001/LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html File LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html (right): https://codereview.chromium.org/1044203004/diff/170001/LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html#newcode14 LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html:14: console.error(error); nit: InspectorTest.addResult https://codereview.chromium.org/1044203004/diff/170001/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js File LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js (right): https://codereview.chromium.org/1044203004/diff/170001/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js#newcode14 LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js:14: ...
5 years, 8 months ago (2015-04-15 17:50:08 UTC) #26
dmurph
PTAL :) https://codereview.chromium.org/1044203004/diff/170001/LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html File LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html (right): https://codereview.chromium.org/1044203004/diff/170001/LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html#newcode14 LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html:14: console.error(error); On 2015/04/15 at 17:50:08, pfeldman wrote: ...
5 years, 8 months ago (2015-04-15 21:29:32 UTC) #27
pfeldman
https://codereview.chromium.org/1044203004/diff/190001/Source/devtools/front_end/resources/ResourcesPanel.js File Source/devtools/front_end/resources/ResourcesPanel.js (right): https://codereview.chromium.org/1044203004/diff/190001/Source/devtools/front_end/resources/ResourcesPanel.js#newcode1432 Source/devtools/front_end/resources/ResourcesPanel.js:1432: var target = WebInspector.targetManager.mainTarget(); Nit: var target = this._storagePanel._target; ...
5 years, 8 months ago (2015-04-16 10:22:53 UTC) #28
dmurph
On 2015/04/16 at 10:22:53, pfeldman wrote: > https://codereview.chromium.org/1044203004/diff/190001/Source/devtools/front_end/resources/ResourcesPanel.js > File Source/devtools/front_end/resources/ResourcesPanel.js (right): > > https://codereview.chromium.org/1044203004/diff/190001/Source/devtools/front_end/resources/ResourcesPanel.js#newcode1432 ...
5 years, 8 months ago (2015-04-16 18:47:56 UTC) #29
pfeldman
> The problem with an opaque string is that we need to have some sort ...
5 years, 8 months ago (2015-04-16 20:12:01 UTC) #30
dmurph
On 2015/04/16 at 20:12:01, pfeldman wrote: > > The problem with an opaque string is ...
5 years, 8 months ago (2015-04-16 20:22:57 UTC) #31
pfeldman
Please see my comments, I think with some minor changes, you can bring it to ...
5 years, 8 months ago (2015-04-17 07:57:36 UTC) #32
dmurph
Thanks! That was my favorite approach as well. This is how I feel about this ...
5 years, 8 months ago (2015-04-18 00:59:32 UTC) #33
pfeldman
lgtm % comments! https://codereview.chromium.org/1044203004/diff/230001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/1044203004/diff/230001/Source/devtools/protocol.json#newcode1731 Source/devtools/protocol.json:1731: { "name": "cacheId", "type": "string", "description": ...
5 years, 8 months ago (2015-04-20 18:14:31 UTC) #34
dmurph
https://codereview.chromium.org/1044203004/diff/230001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/1044203004/diff/230001/Source/devtools/protocol.json#newcode1731 Source/devtools/protocol.json:1731: { "name": "cacheId", "type": "string", "description": "An opaque unique ...
5 years, 8 months ago (2015-04-20 20:58:17 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1044203004/250001
5 years, 8 months ago (2015-04-20 20:58:52 UTC) #38
commit-bot: I haz the power
Committed patchset #14 (id:250001) as https://src.chromium.org/viewvc/blink?view=rev&revision=194060
5 years, 8 months ago (2015-04-21 00:05:05 UTC) #39
Nico
https://codereview.chromium.org/1044203004/diff/250001/Source/core/event_idl_files_list.tmp File Source/core/event_idl_files_list.tmp (right): https://codereview.chromium.org/1044203004/diff/250001/Source/core/event_idl_files_list.tmp#newcode10 Source/core/event_idl_files_list.tmp:10: events/CustomEvent.idl Did you mean to check in this file?
5 years, 8 months ago (2015-04-23 01:10:26 UTC) #41
dmurph
5 years, 8 months ago (2015-04-23 01:19:00 UTC) #42
Message was sent while issue was closed.
On 2015/04/23 at 01:10:26, thakis wrote:
>
https://codereview.chromium.org/1044203004/diff/250001/Source/core/event_idl_...
> File Source/core/event_idl_files_list.tmp (right):
> 
>
https://codereview.chromium.org/1044203004/diff/250001/Source/core/event_idl_...
> Source/core/event_idl_files_list.tmp:10: events/CustomEvent.idl
> Did you mean to check in this file?

Whoops, no.  Patch for deletion: https://codereview.chromium.org/1082723010

Powered by Google App Engine
This is Rietveld 408576698