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

Issue 26538007: [devtools] Remove trailing fragment identifier from script urls (Closed)

Created:
7 years, 2 months ago by johnjbarton
Modified:
7 years, 1 month ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[devtools] Remove trailing fragment identifier from script urls Scripts should be identified by resource and text range. Fragement identifiers on urls may cause URLs for the same resource to not match. Therefore: if the URL supplied to ScriptSourceCode has a fragment identifier, remove it. Add LayoutTest for inlined-script breakpoints with fragment id. BUG=306239 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162138

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove fragment identifier in ScriptSourceCode #

Patch Set 3 : Use URL parser. #

Patch Set 4 : Fix in ScriptSourceCode and ScriptResource #

Patch Set 5 : reupload #

Total comments: 7

Patch Set 6 : Use mutable KURL to avoid storing script url in ScriptResource #

Patch Set 7 : Add LayoutTest #

Patch Set 8 : I don't understand why I have to do this. #

Patch Set 9 : rebase #

Total comments: 1

Patch Set 10 : rebase; remove inflightResourceForURL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -30 lines) Patch
A + LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id.html View 1 2 3 4 5 6 7 8 9 5 chunks +13 lines, -13 lines 0 comments Download
A + LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt View 1 2 3 4 5 6 7 8 9 5 chunks +28 lines, -13 lines 0 comments Download
M Source/bindings/v8/ScriptSourceCode.h View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
johnjbarton
Feedback please. I'll look into a test if this fix is close.
7 years, 2 months ago (2013-10-11 19:02:09 UTC) #1
abarth-chromium
https://codereview.chromium.org/26538007/diff/1/Source/bindings/v8/ScriptDebugServer.cpp File Source/bindings/v8/ScriptDebugServer.cpp (right): https://codereview.chromium.org/26538007/diff/1/Source/bindings/v8/ScriptDebugServer.cpp#newcode508 Source/bindings/v8/ScriptDebugServer.cpp:508: size_t hashCharPos = rawScriptURL.find("#"); This seems like the wrong ...
7 years, 2 months ago (2013-10-11 20:20:41 UTC) #2
johnjbarton
Advice on trying to fix this in WebScriptSource? https://codereview.chromium.org/26538007/diff/1/Source/bindings/v8/ScriptDebugServer.cpp File Source/bindings/v8/ScriptDebugServer.cpp (right): https://codereview.chromium.org/26538007/diff/1/Source/bindings/v8/ScriptDebugServer.cpp#newcode508 Source/bindings/v8/ScriptDebugServer.cpp:508: size_t ...
7 years, 2 months ago (2013-10-11 21:31:16 UTC) #3
abarth-chromium
On 2013/10/11 21:31:16, johnjbarton wrote: > If I understand you, I could have written: > ...
7 years, 2 months ago (2013-10-13 05:11:24 UTC) #4
johnjbarton
Adam, PTAL bindings code. Still needs a test and then a review from devtools team. ...
7 years, 2 months ago (2013-10-16 18:03:57 UTC) #5
aandrey
John, please re-upload the patch base files.
7 years, 2 months ago (2013-10-16 18:34:02 UTC) #6
johnjbarton
On 2013/10/16 18:34:02, aandrey wrote: > John, please re-upload the patch base files. PTAL
7 years, 2 months ago (2013-10-16 19:01:14 UTC) #7
abarth-chromium
Thanks, this is much better. One remaining issue. https://codereview.chromium.org/26538007/diff/26001/Source/bindings/v8/ScriptSourceCode.h File Source/bindings/v8/ScriptSourceCode.h (right): https://codereview.chromium.org/26538007/diff/26001/Source/bindings/v8/ScriptSourceCode.h#newcode54 Source/bindings/v8/ScriptSourceCode.h:54: m_url.removeFragmentIdentifier(); ...
7 years, 2 months ago (2013-10-17 01:06:55 UTC) #8
johnjbarton
Adam, I answered your questions as I understand them, I see one addition improvement I ...
7 years, 2 months ago (2013-10-17 02:30:11 UTC) #9
abarth-chromium
https://codereview.chromium.org/26538007/diff/26001/Source/bindings/v8/ScriptSourceCode.h File Source/bindings/v8/ScriptSourceCode.h (right): https://codereview.chromium.org/26538007/diff/26001/Source/bindings/v8/ScriptSourceCode.h#newcode77 Source/bindings/v8/ScriptSourceCode.h:77: return m_url; On 2013/10/17 02:30:11, johnjbarton wrote: > On ...
7 years, 2 months ago (2013-10-17 02:39:04 UTC) #10
johnjbarton
PTAL On 2013/10/17 02:39:04, abarth wrote: > https://codereview.chromium.org/26538007/diff/26001/Source/bindings/v8/ScriptSourceCode.h > File Source/bindings/v8/ScriptSourceCode.h (right): > > https://codereview.chromium.org/26538007/diff/26001/Source/bindings/v8/ScriptSourceCode.h#newcode77 ...
7 years, 2 months ago (2013-10-23 17:48:15 UTC) #11
johnjbarton
LayoutTest added, the patch is ready for review.
7 years, 2 months ago (2013-10-24 17:05:12 UTC) #12
vsevik
Adam, could you please have another look? Layout test lgtm. https://chromiumcodereview.appspot.com/26538007/diff/94002/LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id.html File LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id.html (right): https://chromiumcodereview.appspot.com/26538007/diff/94002/LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id.html#newcode34 ...
7 years, 1 month ago (2013-11-05 13:51:28 UTC) #13
johnjbarton
On 2013/11/05 13:51:28, vsevik wrote: > Adam, could you please have another look? > > ...
7 years, 1 month ago (2013-11-11 18:50:18 UTC) #14
pfeldman
lgtm
7 years, 1 month ago (2013-11-15 20:36:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/johnjbarton@chromium.org/26538007/174001
7 years, 1 month ago (2013-11-15 20:38:25 UTC) #16
commit-bot: I haz the power
7 years, 1 month ago (2013-11-15 21:50:57 UTC) #17
Message was sent while issue was closed.
Change committed as 162138

Powered by Google App Engine
This is Rietveld 408576698