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

Issue 2610963005: [DevTools] Pass the frame payload (Closed)

Created:
3 years, 11 months ago by eostroukhov
Modified:
3 years, 11 months ago
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, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Pass the frame payload Some frame information, like URL and security origin was lost because frame payload object was not passed in the ctor. This fixes empty origin on the "Clear storage" section on the Application tab. BUG=678832 Review-Url: https://codereview.chromium.org/2610963005 Cr-Commit-Position: refs/heads/master@{#442426} Committed: https://chromium.googlesource.com/chromium/src/+/ed73f79d6abbe1f7f09b0ba735c5aba03072197c

Patch Set 1 #

Patch Set 2 : [DevTools] Pass the frame payload #

Total comments: 2

Patch Set 3 : [DevTools] Pass the frame payload #

Total comments: 2

Patch Set 4 : [DevTools] Pass the frame payload #

Total comments: 1

Patch Set 5 : [DevTools] Pass the frame payload #

Total comments: 11

Patch Set 6 : [DevTools] Pass the frame payload #

Total comments: 2

Patch Set 7 : [DevTools] Pass the frame payload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -55 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-tree-events-expected.txt View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js View 1 2 3 4 5 6 chunks +20 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js View 1 2 3 4 5 6 2 chunks +14 lines, -21 lines 0 comments Download

Messages

Total messages: 43 (27 generated)
eostroukhov
Please take a look, I don't have attached bug report - just an issue I ...
3 years, 11 months ago (2017-01-05 23:58:20 UTC) #4
pfeldman
Please file a bug and associate this change with it. We might want to merge ...
3 years, 11 months ago (2017-01-06 00:03:44 UTC) #5
eostroukhov
Done.
3 years, 11 months ago (2017-01-06 00:11:47 UTC) #7
eostroukhov
I updated the patch, please take another look. I added commit hash to the bug ...
3 years, 11 months ago (2017-01-06 00:45:04 UTC) #10
pfeldman
https://codereview.chromium.org/2610963005/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js File third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js (right): https://codereview.chromium.org/2610963005/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js#newcode206 third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js:206: this._securityOriginManager.setMainSecurityOrigin(frame.url); You are setting url in place of security ...
3 years, 11 months ago (2017-01-06 18:45:19 UTC) #13
eostroukhov
Thank you for the review. I've updated the CL, please take another look. https://codereview.chromium.org/2610963005/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js File ...
3 years, 11 months ago (2017-01-06 19:28:24 UTC) #16
pfeldman
https://codereview.chromium.org/2610963005/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js File third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js (right): https://codereview.chromium.org/2610963005/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js#newcode206 third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js:206: this._securityOriginManager.setMainSecurityOrigin(frame.securityOrigin); You already have "addedOrigin" and you should do ...
3 years, 11 months ago (2017-01-06 19:49:08 UTC) #17
eostroukhov
Thanks. Change was updated, please take another look. https://codereview.chromium.org/2610963005/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js File third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js (right): https://codereview.chromium.org/2610963005/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js#newcode206 third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js:206: this._securityOriginManager.setMainSecurityOrigin(frame.securityOrigin); ...
3 years, 11 months ago (2017-01-06 22:22:34 UTC) #22
pfeldman
https://codereview.chromium.org/2610963005/diff/60001/third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js File third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js (right): https://codereview.chromium.org/2610963005/diff/60001/third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js#newcode47 third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js:47: removeSecurityOrigin(securityOrigin) { I don't think this counter makes sense ...
3 years, 11 months ago (2017-01-07 00:33:18 UTC) #25
eostroukhov
I changed the logic so now it recomputes entire list of origins. This resulted in ...
3 years, 11 months ago (2017-01-09 19:34:52 UTC) #28
pfeldman
https://codereview.chromium.org/2610963005/diff/80001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js File third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js (right): https://codereview.chromium.org/2610963005/diff/80001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js#newcode136 third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js:136: this._updateSecurityOrigins(); You should unconditionally update origins. https://codereview.chromium.org/2610963005/diff/80001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js#newcode211 third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js:211: frame._remove(); ...
3 years, 11 months ago (2017-01-09 20:06:14 UTC) #29
eostroukhov
Updated, please consider. These changes resulted in further changes in the notifications order. https://codereview.chromium.org/2610963005/diff/80001/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js File ...
3 years, 11 months ago (2017-01-09 20:32:01 UTC) #32
pfeldman
lgtm % nit https://codereview.chromium.org/2610963005/diff/100001/third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js File third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js (right): https://codereview.chromium.org/2610963005/diff/100001/third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js#newcode35 third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js:35: this._securityOrigins = new Set(securityOrigins); No need ...
3 years, 11 months ago (2017-01-09 20:34:47 UTC) #33
eostroukhov
Updated, please take another look. https://codereview.chromium.org/2610963005/diff/100001/third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js File third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js (right): https://codereview.chromium.org/2610963005/diff/100001/third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js#newcode35 third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js:35: this._securityOrigins = new Set(securityOrigins); ...
3 years, 11 months ago (2017-01-09 22:09:49 UTC) #36
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/2610963005/120001
3 years, 11 months ago (2017-01-09 22:10:40 UTC) #40
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 00:39:52 UTC) #43
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ed73f79d6abbe1f7f09b0ba735c5...

Powered by Google App Engine
This is Rietveld 408576698