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

Issue 2349343002: DevTools: introduce persistence/ module (Closed)

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

Description

DevTools: introduce persistence/ module This patch introduces the persistence/ module. Most of the DevTools code is unaware of the module; the only exception is sources/. The patch starts unconditionally creating UISourceCodes for network resources. WI.Persistence is responsible for synchronization of network UISourceCodes with corresponding file system UISourceCodes. The patch makes establishing file system mappings instantaneous. As a pleasant side-effect of the patch, the node debugging with workspaces now supports live edit. Please, see bug for the outlined plan and design document. BUG=649837 R=dgozman, pfeldman Committed: https://crrev.com/685dabec5c99680300ced571e7aed09d43b2e9d3 Cr-Commit-Position: refs/heads/master@{#421007}

Patch Set 1 #

Patch Set 2 : move commit syncing down to UISourceCode #

Patch Set 3 : cleanup #

Patch Set 4 : inverse dependencies #

Patch Set 5 : add persistence module #

Patch Set 6 : DevTools: add persistence/ module #

Total comments: 44

Patch Set 7 : add node.js sync test #

Patch Set 8 : address all comments #

Patch Set 9 : proper uiSourceCode.forceLoadOnCheckContent #

Patch Set 10 : reupload #

Total comments: 23

Patch Set 11 : add tests + address comments #

Patch Set 12 : bring sanity to workspace-mapping.html #

Total comments: 1

Patch Set 13 : simplify test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1505 lines, -603 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-do-not-bind-dirty-sourcecode.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +46 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-do-not-bind-dirty-sourcecode-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +59 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs.html View 1 2 3 4 5 6 7 1 chunk +83 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs-expected.txt View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-move-breakpoints.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +78 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-move-breakpoints-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-navigator.html View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-navigator-expected.txt View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-rename-mapped-file.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-rename-mapped-file-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content.html View 1 2 3 4 5 6 7 8 1 chunk +70 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content-nodejs.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +98 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content-nodejs-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +50 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-network-uisourcecode.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-network-uisourcecode-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js View 1 2 3 4 5 6 7 1 chunk +71 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/persistence/resources/foo.js View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/file-system-project.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/file-system-project-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/initial-modules-load-expected.txt View 1 2 3 4 5 5 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/open-with-rendering-option-enabled-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-panel.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-mapping.html View 1 2 3 4 5 6 7 6 chunks +10 lines, -267 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-mapping-expected.txt View 1 2 3 4 5 6 7 3 chunks +4 lines, -84 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/workspace-mapping.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -49 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/workspace-mapping-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/FileSystemWorkspaceBinding.js View 2 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js View 1 2 3 4 5 6 7 9 chunks +5 lines, -52 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js View 1 2 3 4 5 5 chunks +9 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/inspector.json View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/module.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
A third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +279 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/persistence/module.json View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/FilteredUISourceCodeListDelegate.js View 1 2 3 4 5 3 chunks +16 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js View 1 2 3 4 5 6 7 5 chunks +29 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js View 1 2 3 4 5 6 7 2 chunks +22 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js View 1 2 3 4 5 6 7 8 9 10 7 chunks +46 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js View 1 2 3 4 5 6 7 3 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/WorkspaceMappingTip.js View 1 2 3 4 5 6 7 4 chunks +15 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/module.json View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js View 1 2 3 4 6 chunks +7 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js View 1 2 3 1 chunk +0 lines, -22 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (25 generated)
lushnikov
please, take a look
4 years, 3 months ago (2016-09-22 05:05:04 UTC) #2
lushnikov
4 years, 3 months ago (2016-09-22 16:21:08 UTC) #9
dgozman
https://codereview.chromium.org/2349343002/diff/100001/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js File third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js (right): https://codereview.chromium.org/2349343002/diff/100001/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js#newcode21 third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js:21: fileSystemManager.waitForFileSystems() We either don't do waitForFileSystems or we listen ...
4 years, 3 months ago (2016-09-22 19:55:54 UTC) #10
lushnikov
The overview of the work: https://docs.google.com/document/d/12EU7HgFNWBsP_3syPCviHEOmU-Yn-q4kiF6RT_kBmO0/edit# Addressed all changes + a few improvements: 1. Call ...
4 years, 3 months ago (2016-09-23 21:56:14 UTC) #11
dgozman
lgtm https://codereview.chromium.org/2349343002/diff/180001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html File third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html (right): https://codereview.chromium.org/2349343002/diff/180001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html#newcode19 third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html:19: function onBindingCreated() Let's also dump before binding. https://codereview.chromium.org/2349343002/diff/180001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-move-breakpoints.html ...
4 years, 3 months ago (2016-09-23 23:03:21 UTC) #14
lushnikov
https://codereview.chromium.org/2349343002/diff/180001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html File third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html (right): https://codereview.chromium.org/2349343002/diff/180001/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html#newcode19 third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html:19: function onBindingCreated() On 2016/09/23 23:03:20, dgozman wrote: > Let's ...
4 years, 3 months ago (2016-09-24 00:30:50 UTC) #15
dgozman
https://codereview.chromium.org/2349343002/diff/180001/third_party/WebKit/LayoutTests/inspector/workspace-mapping-expected.txt File third_party/WebKit/LayoutTests/inspector/workspace-mapping-expected.txt (right): https://codereview.chromium.org/2349343002/diff/180001/third_party/WebKit/LayoutTests/inspector/workspace-mapping-expected.txt#newcode9 third_party/WebKit/LayoutTests/inspector/workspace-mapping-expected.txt:9: url http://localhost/index.html is mapped to null On 2016/09/24 00:30:50, ...
4 years, 2 months ago (2016-09-24 02:34:34 UTC) #18
lushnikov
Added some sanity to the test; please, take a look!
4 years, 2 months ago (2016-09-24 06:01:54 UTC) #23
dgozman
Thanks, looks good. https://codereview.chromium.org/2349343002/diff/220001/third_party/WebKit/LayoutTests/inspector/workspace-mapping.html File third_party/WebKit/LayoutTests/inspector/workspace-mapping.html (right): https://codereview.chromium.org/2349343002/diff/220001/third_party/WebKit/LayoutTests/inspector/workspace-mapping.html#newcode63 third_party/WebKit/LayoutTests/inspector/workspace-mapping.html:63: dumpUISourceCodeForURL("http://www.example.com/index.html"); I think that now this ...
4 years, 2 months ago (2016-09-24 16:17:07 UTC) #26
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/2349343002/240001
4 years, 2 months ago (2016-09-26 21:45:45 UTC) #33
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 2 months ago (2016-09-26 21:53:52 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 21:55:27 UTC) #37
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/685dabec5c99680300ced571e7aed09d43b2e9d3
Cr-Commit-Position: refs/heads/master@{#421007}

Powered by Google App Engine
This is Rietveld 408576698