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

Issue 2408203007: DevTools: teach network UISourceCodes to return metadata (Closed)

Created:
4 years, 2 months ago by lushnikov
Modified:
4 years, 2 months ago
Reviewers:
dgozman
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, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: teach network UISourceCodes to return metadata The patch teaches network-based UISourceCodes to return non-null metadata. For the resource-based UISourceCodes, the metadata simply comes from the underlying resource. For the sourcemap-originating UISourceCodes which content was embedded in the sourcemap, the contentSize metadata is available. Drive-By: improve complexity of WI.ResourceTreeModel.resourceForURL from O(|resources|) to O(|frames|). BUG=none Committed: https://crrev.com/a22a11e3879975ab54daa514193934e4b32a966e Cr-Commit-Position: refs/heads/master@{#425540}

Patch Set 1 #

Patch Set 2 : drastically speedup WI.ResourceTreeModel.resourceForURL #

Patch Set 3 : add test #

Patch Set 4 : better names #

Patch Set 5 : rename #

Total comments: 6

Patch Set 6 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -24 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/inspector/sources/resources/script.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/sources/resources/style.css View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/sources/resources/style.css.map View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/sources/ui-source-code-metadata.html View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/sources/ui-source-code-metadata-expected.txt View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js View 1 2 3 4 5 4 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js View 1 2 3 4 6 chunks +24 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js View 1 2 3 4 5 1 chunk +6 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (17 generated)
lushnikov
please, take a look
4 years, 2 months ago (2016-10-14 21:30:32 UTC) #9
dgozman
lgtm https://codereview.chromium.org/2408203007/diff/80001/third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js File third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js (right): https://codereview.chromium.org/2408203007/diff/80001/third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js#newcode285 third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js:285: uiSourceCode[WebInspector.ContentProviderBasedProject._metadata] = metadata || null; nit: no need ...
4 years, 2 months ago (2016-10-14 21:49:21 UTC) #12
lushnikov
https://codereview.chromium.org/2408203007/diff/80001/third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js File third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js (right): https://codereview.chromium.org/2408203007/diff/80001/third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js#newcode285 third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js:285: uiSourceCode[WebInspector.ContentProviderBasedProject._metadata] = metadata || null; On 2016/10/14 21:49:20, dgozman ...
4 years, 2 months ago (2016-10-14 22:46:39 UTC) #13
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/2408203007/100001
4 years, 2 months ago (2016-10-15 00:18:29 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-15 02:49:17 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-15 02:50:48 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a22a11e3879975ab54daa514193934e4b32a966e
Cr-Commit-Position: refs/heads/master@{#425540}

Powered by Google App Engine
This is Rietveld 408576698