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

Issue 2422803002: DevTools: prefix node.js scripts's sourceURL with "file://" to make them a valid url (Closed)

Created:
4 years, 2 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: prefix node.js scripts's sourceURL with "file://" to make them a valid url As of today, Node.js scripts are reported with a file path as their sourceURL. File path by itself is not a correct URL. This patch prepends file:// to the path to make it a proper url. BUG=none Committed: https://crrev.com/852dea567434d8a7a9f4bcbfa7fff00c74bac471 Cr-Commit-Position: refs/heads/master@{#426261}

Patch Set 1 #

Total comments: 2

Patch Set 2 : use proper Node.js check #

Patch Set 3 : better name #

Total comments: 1

Patch Set 4 : WI.ParsedURL.platformPathToURL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -85 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content-nodejs.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/components/parsed-url.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/components/parsed-url-expected.txt View 15 chunks +0 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js View 1 2 3 3 chunks +22 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/Target.js View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/FileSystemMapping.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js View 1 2 3 5 chunks +5 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js View 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
lushnikov
please, take
4 years, 2 months ago (2016-10-15 00:36:11 UTC) #1
lushnikov
please, take a look*
4 years, 2 months ago (2016-10-15 00:36:31 UTC) #4
pfeldman
https://codereview.chromium.org/2422803002/diff/1/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js File third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js (right): https://codereview.chromium.org/2422803002/diff/1/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js#newcode478 third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js:478: if (Runtime.queryParam("v8only") && sourceURL && sourceURL.startsWith("/")) - In case ...
4 years, 2 months ago (2016-10-15 00:42:35 UTC) #7
lushnikov
thanks https://codereview.chromium.org/2422803002/diff/1/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js File third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js (right): https://codereview.chromium.org/2422803002/diff/1/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js#newcode478 third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js:478: if (Runtime.queryParam("v8only") && sourceURL && sourceURL.startsWith("/")) Handled (1) ...
4 years, 2 months ago (2016-10-15 00:59:03 UTC) #8
dgozman
lgtm https://codereview.chromium.org/2422803002/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js File third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js (right): https://codereview.chromium.org/2422803002/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js#newcode479 third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js:479: sourceURL = "file://" + sourceURL; WebInspector.IsolatedFileSystemManager.normalizePath
4 years, 2 months ago (2016-10-18 21:46:12 UTC) #16
lushnikov
renamed WI.IsolatedFileSystemManager.normalizePath to WI.ParsedURL.platformPathToURL let me know if you like this name!
4 years, 2 months ago (2016-10-19 03:26:49 UTC) #17
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/2422803002/60001
4 years, 2 months ago (2016-10-19 18:27:45 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-19 19:47:54 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:10:48 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/852dea567434d8a7a9f4bcbfa7fff00c74bac471
Cr-Commit-Position: refs/heads/master@{#426261}

Powered by Google App Engine
This is Rietveld 408576698