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

Issue 2172753002: [DevTools] No longer store security origins in ResourceTreeModel (Closed)

Created:
4 years, 5 months ago by eostroukhov-old
Modified:
4 years, 5 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] No longer store security origins in RTM This refactoring decouples storage models from the ResourceTreeModel. BUG=624494 R=dgozman, pfeldman Committed: https://crrev.com/cf6a5a7cab6d500e2e6ec5be92bbd6befbeffd41 Cr-Commit-Position: refs/heads/master@{#407678}

Patch Set 1 #

Patch Set 2 : Extracted security origins from the ResourceTreeModel #

Total comments: 42

Patch Set 3 : Comments were addressed #

Total comments: 14

Patch Set 4 : Addressed the comments #

Total comments: 12

Patch Set 5 : Comments #

Patch Set 6 : Fixed test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -220 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-data.html View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-data-expected.txt View 1 2 3 4 5 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-names.html View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-names-expected.txt View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-structure.html View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-structure-expected.txt View 1 2 3 4 5 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/resources-panel-expected.txt View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/upgrade-events.html View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/upgrade-events-expected.txt View 1 2 3 4 5 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-tree-events.html View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/devtools.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js View 1 2 3 4 3 chunks +10 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/DOMStorageModel.js View 1 2 3 4 3 chunks +14 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/IndexedDBModel.js View 1 2 5 chunks +29 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js View 1 2 3 4 12 chunks +48 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkersView.js View 1 3 chunks +11 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js View 1 2 14 chunks +45 lines, -69 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js View 1 2 3 6 chunks +20 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/module.json View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (27 generated)
eostroukhov-old
Please review - I am currently trying to break the big CLs into smaller ones.
4 years, 5 months ago (2016-07-21 20:31:03 UTC) #3
dgozman
I think we should split security origins from resource tree model, and make the latter ...
4 years, 5 months ago (2016-07-21 21:53:48 UTC) #6
eostroukhov-old
Extracted security origins from the ResourceTreeModel
4 years, 5 months ago (2016-07-21 23:34:04 UTC) #7
eostroukhov-old
I refactored the code. Please take another look.
4 years, 5 months ago (2016-07-21 23:36:33 UTC) #11
dgozman
https://codereview.chromium.org/2172753002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-data.html File third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-data.html (right): https://codereview.chromium.org/2172753002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-data.html#newcode8 third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-data.html:8: var indexedDBModel = new WebInspector.IndexedDBModel(WebInspector.targetManager.mainTarget(), WebInspector.SecurityOriginManager.fromTarget(WebInspector.targetManager.mainTarget())); Let's introduce InspectorTest.securityOriginManager ...
4 years, 5 months ago (2016-07-22 03:27:03 UTC) #14
eostroukhov-old
Comments were addressed
4 years, 5 months ago (2016-07-22 23:11:54 UTC) #15
eostroukhov-old
Thank you for the review. I addressed the comments. Please take another look. https://codereview.chromium.org/2172753002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/database-data.html File ...
4 years, 5 months ago (2016-07-22 23:27:44 UTC) #18
dgozman
https://codereview.chromium.org/2172753002/diff/40001/third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js File third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js (right): https://codereview.chromium.org/2172753002/diff/40001/third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js#newcode45 third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js:45: WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capability.DOM); ClearStorageView is not about DOM. https://codereview.chromium.org/2172753002/diff/40001/third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js#newcode73 third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js:73: ...
4 years, 5 months ago (2016-07-22 23:44:23 UTC) #19
eostroukhov-old
Addressed the comments
4 years, 5 months ago (2016-07-25 18:15:39 UTC) #22
eostroukhov-old
Thank you for the review. I've updated the CL, please take another look. https://codereview.chromium.org/2172753002/diff/40001/third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js File ...
4 years, 5 months ago (2016-07-25 18:16:59 UTC) #25
dgozman
https://codereview.chromium.org/2172753002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js (right): https://codereview.chromium.org/2172753002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js#newcode102 third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js:102: InspectorTest.createIndexedDBModel = function() { style: { on next line ...
4 years, 5 months ago (2016-07-25 18:56:09 UTC) #26
eostroukhov-old
Comments
4 years, 5 months ago (2016-07-25 19:46:47 UTC) #29
eostroukhov-old
Thank you for the review. The CL was updated. PTAL. https://codereview.chromium.org/2172753002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js (right): https://codereview.chromium.org/2172753002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js#newcode102 ...
4 years, 5 months ago (2016-07-25 19:47:48 UTC) #32
eostroukhov-old
Fixed test failures
4 years, 5 months ago (2016-07-25 22:35:53 UTC) #35
dgozman
lgtm
4 years, 5 months ago (2016-07-25 22:43:59 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2172753002/100001
4 years, 5 months ago (2016-07-25 23:32:44 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-26 01:41:47 UTC) #43
commit-bot: I haz the power
4 years, 5 months ago (2016-07-26 01:43:57 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cf6a5a7cab6d500e2e6ec5be92bbd6befbeffd41
Cr-Commit-Position: refs/heads/master@{#407678}

Powered by Google App Engine
This is Rietveld 408576698