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

Issue 2931143003: DevTools: make debugger's rawLocationToUILocation return nullable type (Closed)

Created:
3 years, 6 months ago by lushnikov
Modified:
3 years, 6 months ago
Reviewers:
dgozman, qyearsley
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/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: make debugger's rawLocationToUILocation return nullable type This patch makes DebuggerWorkspaceBinding.rawLocationToUILocation return nullable UILocation. This happens if the rawLocation is "outdated". One example of such situation is using raw location which does not have script (because script has being collected due to navigation). BUG=724328 R=dgozman Review-Url: https://codereview.chromium.org/2931143003 Cr-Commit-Position: refs/heads/master@{#478559} Committed: https://chromium.googlesource.com/chromium/src/+/c3065567be38abfc0c0354a04e4c48e85f44f49c

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -25 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/bindings/bindings-test.js View 1 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated.html View 1 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated-expected.txt View 1 1 chunk +19 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js View 5 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js View 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js View 2 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (13 generated)
lushnikov
please, take a look
3 years, 6 months ago (2017-06-09 19:33:05 UTC) #1
dgozman
lgtm
3 years, 6 months ago (2017-06-09 20:53:35 UTC) #4
dgozman
A test?
3 years, 6 months ago (2017-06-09 20:53:44 UTC) #5
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/2931143003/20001
3 years, 6 months ago (2017-06-09 23:12:47 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/476030)
3 years, 6 months ago (2017-06-10 01:02:05 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/2931143003/20001
3 years, 6 months ago (2017-06-10 01:18:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/476092)
3 years, 6 months ago (2017-06-10 03:01:16 UTC) #16
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/2931143003/20001
3 years, 6 months ago (2017-06-12 05:21:51 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/c3065567be38abfc0c0354a04e4c48e85f44f49c
3 years, 6 months ago (2017-06-12 06:55:06 UTC) #21
qyearsley
https://codereview.chromium.org/2931143003/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated-expected.txt (right): https://codereview.chromium.org/2931143003/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated-expected.txt#newcode12 third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated-expected.txt:12: [ UPDATE ] LiveLocation-js: debugger:///VM37 sourcemap-script.js:0:0 Just noticed a ...
3 years, 6 months ago (2017-06-23 18:15:30 UTC) #23
dgozman
3 years, 6 months ago (2017-06-23 21:25:00 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2931143003/diff/20001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated-expected.txt
(right):

https://codereview.chromium.org/2931143003/diff/20001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/http/tests/inspector/bindings/livelocation-main-frame-navigated-expected.txt:12:
[ UPDATE ]  LiveLocation-js: debugger:///VM37 sourcemap-script.js:0:0
On 2017/06/23 18:15:30, qyearsley wrote:
> Just noticed a potential source of flakiness here: the string "VM37" appears
to
> be host-specific, so this test will have different results when run on
different
> hosts.
> 
> Might this be related to the dumpLocation function?

Yep. We usually strip these numbers down, but not this time.
Andrey, mind fixing this?

Powered by Google App Engine
This is Rietveld 408576698