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

Issue 2551233002: DevTools: show filesystem file by default (Closed)

Created:
4 years ago by lushnikov
Modified:
4 years 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: [Persistence] show filesystem file instead of network Currently, as network UISourceCode gets mapped to the filesystem UISourceCode, we still show network-based UISourceCode in the sources panel. However, network UISourceCodes are not really reliable: they come and go, e.g. during reload. This results in the content blinking unpleasantly and the undo stack being vanished. This also complicates the TabbedEditorContainer logic, which juggles tabs in a way to match user expectations. This patch switches to showing file-system UISourceCode. The biggest change happens in JavaScriptSourceFrame: it now knows about "debuggerSourceCode", which it uses to operate breakpoints. BUG=649837 Committed: https://crrev.com/6e5aac4d281da102e231847066148587bd7f4e15 Cr-Commit-Position: refs/heads/master@{#436837}

Patch Set 1 #

Patch Set 2 : nits #

Patch Set 3 : nit #

Patch Set 4 : rebaseline #

Total comments: 20

Patch Set 5 : address comments #

Patch Set 6 : move updateDebuggerSourceCode closer to main CL changes #

Patch Set 7 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -155 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs.html View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt View 3 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-move-breakpoints-on-reload.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-move-breakpoints-on-reload-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-switch-editor-tab.html View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-switch-editor-tab-expected.txt View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-filesystem-uisourcecode.html View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-filesystem-uisourcecode-expected.txt View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-network-uisourcecode.html View 1 2 3 4 1 chunk +0 lines, -43 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-network-uisourcecode-expected.txt View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/FilteredUISourceCodeListDelegate.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js View 1 2 3 4 5 19 chunks +83 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js View 1 2 3 4 5 6 2 chunks +29 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js View 4 chunks +20 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (12 generated)
lushnikov
please, take a look
4 years ago (2016-12-05 23:50:40 UTC) #3
dgozman
https://codereview.chromium.org/2551233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt (right): https://codereview.chromium.org/2551233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt#newcode21 third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt:21: Running: addFileMapping Let's also test: - open network, - ...
4 years ago (2016-12-06 01:14:27 UTC) #5
lushnikov
https://codereview.chromium.org/2551233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt (right): https://codereview.chromium.org/2551233002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt#newcode21 third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt:21: Running: addFileMapping On 2016/12/06 01:14:27, dgozman wrote: > Let's ...
4 years ago (2016-12-06 02:21:05 UTC) #6
dgozman
lgtm https://codereview.chromium.org/2551233002/diff/60001/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js File third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js (right): https://codereview.chromium.org/2551233002/diff/60001/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js#newcode410 third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js:410: if (oldBinding.network !== uiSourceCode && oldBinding.fileSystem !== uiSourceCode) ...
4 years ago (2016-12-06 22:01:03 UTC) #11
lushnikov
https://codereview.chromium.org/2551233002/diff/60001/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js File third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js (right): https://codereview.chromium.org/2551233002/diff/60001/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js#newcode410 third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js:410: if (oldBinding.network !== uiSourceCode && oldBinding.fileSystem !== uiSourceCode) On ...
4 years ago (2016-12-06 22:14:04 UTC) #12
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/2551233002/120001
4 years ago (2016-12-06 22:14:56 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-07 02:15:50 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-07 02:19:42 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6e5aac4d281da102e231847066148587bd7f4e15
Cr-Commit-Position: refs/heads/master@{#436837}

Powered by Google App Engine
This is Rietveld 408576698