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

Issue 368643002: DevTools: Make addFileForURL more robust (Closed)

Created:
6 years, 5 months ago by alph
Modified:
6 years, 5 months ago
Reviewers:
vsevik, aandrey, loislo
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

DevTools: Make addFileForURL more robust Eliminate the error: "Uncaught URIError: URI malformed", source: chrome-devtools://devtools/bundled/sdk/NetworkWorkspaceBinding.js (133) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177449

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added a test. #

Total comments: 5

Patch Set 3 : Compacting the malformed URL #

Total comments: 5

Patch Set 4 : Addressing comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M LayoutTests/inspector/sources/debugger/navigator-view.html View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/inspector/sources/debugger/navigator-view-expected.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/inspector/sources/debugger/resource-script-mapping.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
alph
6 years, 5 months ago (2014-07-01 16:35:37 UTC) #1
pfeldman
A test?
6 years, 5 months ago (2014-07-01 16:42:10 UTC) #2
aandrey
https://codereview.chromium.org/368643002/diff/1/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js File Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js (right): https://codereview.chromium.org/368643002/diff/1/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js#newcode134 Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js:134: parentPath = decodeURIComponent(parentPath); FYI, there are decodeURI(), decodeURIComponent() and ...
6 years, 5 months ago (2014-07-01 18:21:52 UTC) #3
vsevik
Could you please provide an example URL that causes the problem? Otherwise it's unclear what ...
6 years, 5 months ago (2014-07-02 08:59:22 UTC) #4
alph
On 2014/07/02 08:59:22, vsevik wrote: > Could you please provide an example URL that causes ...
6 years, 5 months ago (2014-07-02 09:49:12 UTC) #5
alph
ptal https://codereview.chromium.org/368643002/diff/1/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js File Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js (right): https://codereview.chromium.org/368643002/diff/1/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js#newcode134 Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js:134: parentPath = decodeURIComponent(parentPath); On 2014/07/01 18:21:52, aandrey wrote: ...
6 years, 5 months ago (2014-07-02 09:49:22 UTC) #6
aandrey
On 2014/07/02 09:49:22, alph wrote: > ptal > > https://codereview.chromium.org/368643002/diff/1/Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js > File Source/devtools/front_end/sdk/NetworkWorkspaceBinding.js (right): > ...
6 years, 5 months ago (2014-07-02 10:15:32 UTC) #7
alph
On 2014/07/02 10:15:32, aandrey wrote: > On 2014/07/02 09:49:22, alph wrote: > > ptal > ...
6 years, 5 months ago (2014-07-02 11:19:01 UTC) #8
aandrey
https://codereview.chromium.org/368643002/diff/20001/LayoutTests/inspector/sources/debugger/resource-script-mapping.html File LayoutTests/inspector/sources/debugger/resource-script-mapping.html (right): https://codereview.chromium.org/368643002/diff/20001/LayoutTests/inspector/sources/debugger/resource-script-mapping.html#newcode210 LayoutTests/inspector/sources/debugger/resource-script-mapping.html:210: var url = "http://vk.com/widget_like.php?app=2925955&width=100%&_ver=1&page=0&url=http%3A%2F%2Flenta.ru%2Fnews%2F2014%2F06%2F23%2Fnavalny%2F&type=button&verb=1&color=&title=%D0%A0%D0%B5%D0%BF%D1%80%D0%BE%D0%B4%D1%83%D0%BA%D1%86%D0%B8%D1%8E%20%D0%B8%D0%B7%D1%8A%D1%8F%D1%82%D0%BE%D0%B9%20%D1%83%20%D0%9D%D0%B0%D0%B2%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D0%B3%D0%BE%20%D0%BA%D0%B0%D1%80%D1%82%D0%B8%D0%BD%D1%8B%20%D0%BF%D0%BE%D0%B2%D0%B5%D1%81%D0%B8%D0%BB%D0%B8%20%D0%BD%D0%B0%20%D0%9A%D1%83%D1%82%D1%83%D0%B7%D0%BE%D0%B2%D1%81%D0%BA%D0%BE%D0%BC%20%D0%BF%D1%80%D0%BE%D1%81%D0%BF%D0%B5%D0%BA%D1%82%D0%B5&image=http%3A%2F%2Ficdn.lenta.ru%2Fimages%2F2014%2F06%2F23%2F16%2F20140623161555888%2Fpic_83fbbd49ee3e37c37083bda0c8f0f051.jpg&text=&h=20&height=20&146f6515efe"; decodeURIComponent("http://vk.com/widget_like.php?app=2925955&width=100%&_ver=1") throws. "%" char is ...
6 years, 5 months ago (2014-07-02 11:30:11 UTC) #9
vsevik
https://codereview.chromium.org/368643002/diff/20001/LayoutTests/inspector/sources/debugger/resource-script-mapping.html File LayoutTests/inspector/sources/debugger/resource-script-mapping.html (right): https://codereview.chromium.org/368643002/diff/20001/LayoutTests/inspector/sources/debugger/resource-script-mapping.html#newcode208 LayoutTests/inspector/sources/debugger/resource-script-mapping.html:208: function testMalformedResourceURI(next) This belongs to LayoutTests/inspector/sources/debugger/navigator-view.html https://codereview.chromium.org/368643002/diff/20001/LayoutTests/inspector/sources/debugger/resource-script-mapping.html#newcode210 LayoutTests/inspector/sources/debugger/resource-script-mapping.html:210: var ...
6 years, 5 months ago (2014-07-02 12:01:32 UTC) #10
alph
ptal https://codereview.chromium.org/368643002/diff/20001/LayoutTests/inspector/sources/debugger/resource-script-mapping.html File LayoutTests/inspector/sources/debugger/resource-script-mapping.html (right): https://codereview.chromium.org/368643002/diff/20001/LayoutTests/inspector/sources/debugger/resource-script-mapping.html#newcode208 LayoutTests/inspector/sources/debugger/resource-script-mapping.html:208: function testMalformedResourceURI(next) On 2014/07/02 12:01:32, vsevik wrote: > ...
6 years, 5 months ago (2014-07-02 12:20:28 UTC) #11
aandrey
https://codereview.chromium.org/368643002/diff/40001/LayoutTests/inspector/sources/debugger/navigator-view.html File LayoutTests/inspector/sources/debugger/navigator-view.html (right): https://codereview.chromium.org/368643002/diff/40001/LayoutTests/inspector/sources/debugger/navigator-view.html#newcode69 LayoutTests/inspector/sources/debugger/navigator-view.html:69: addUISourceCode("%malformedURI", false); could you also test a real world ...
6 years, 5 months ago (2014-07-02 12:33:05 UTC) #12
vsevik
https://codereview.chromium.org/368643002/diff/40001/LayoutTests/inspector/sources/debugger/navigator-view.html File LayoutTests/inspector/sources/debugger/navigator-view.html (right): https://codereview.chromium.org/368643002/diff/40001/LayoutTests/inspector/sources/debugger/navigator-view.html#newcode69 LayoutTests/inspector/sources/debugger/navigator-view.html:69: addUISourceCode("%malformedURI", false); I think we only need one URL ...
6 years, 5 months ago (2014-07-02 12:43:40 UTC) #13
alph
https://codereview.chromium.org/368643002/diff/40001/LayoutTests/inspector/sources/debugger/navigator-view.html File LayoutTests/inspector/sources/debugger/navigator-view.html (right): https://codereview.chromium.org/368643002/diff/40001/LayoutTests/inspector/sources/debugger/navigator-view.html#newcode69 LayoutTests/inspector/sources/debugger/navigator-view.html:69: addUISourceCode("%malformedURI", false); On 2014/07/02 12:43:40, vsevik wrote: > I ...
6 years, 5 months ago (2014-07-02 13:14:35 UTC) #14
aandrey
lgtm
6 years, 5 months ago (2014-07-02 13:35:42 UTC) #15
vsevik
lgtm
6 years, 5 months ago (2014-07-02 14:07:51 UTC) #16
alph
The CQ bit was checked by alph@chromium.org
6 years, 5 months ago (2014-07-02 14:49:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alph@chromium.org/368643002/60001
6 years, 5 months ago (2014-07-02 14:50:02 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-02 15:55:26 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-02 16:56:08 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/15097)
6 years, 5 months ago (2014-07-02 16:56:09 UTC) #21
loislo
The CQ bit was checked by loislo@chromium.org
6 years, 5 months ago (2014-07-03 04:54:14 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alph@chromium.org/368643002/60001
6 years, 5 months ago (2014-07-03 04:56:12 UTC) #23
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 05:34:23 UTC) #24
Message was sent while issue was closed.
Change committed as 177449

Powered by Google App Engine
This is Rietveld 408576698