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

Issue 2888843002: DevTools: fix race when revealing formatted source code (Closed)

Created:
3 years, 7 months ago by caseq
Modified:
3 years, 7 months ago
Reviewers:
lushnikov
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: fix race when revealing formatted source code The porblem was caused by trying to format and add a source code twice. As a drive by, do not reveal the source code if the user navigated away. BUG=723098 Review-Url: https://codereview.chromium.org/2888843002 Cr-Commit-Position: refs/heads/master@{#473510} Committed: https://chromium.googlesource.com/chromium/src/+/88ed93a30047ad7f2b91312c644abc0dbe98c2ff

Patch Set 1 #

Total comments: 8

Patch Set 2 : races on discard fixed #

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -37 lines) Patch
M third_party/WebKit/LayoutTests/inspector/coverage/reveal-autoformat.html View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/coverage/CoverageListView.js View 1 2 3 chunks +10 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js View 1 2 7 chunks +36 lines, -21 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
caseq
3 years, 7 months ago (2017-05-17 02:26:57 UTC) #2
lushnikov
https://codereview.chromium.org/2888843002/diff/1/third_party/WebKit/Source/devtools/front_end/coverage/CoverageListView.js File third_party/WebKit/Source/devtools/front_end/coverage/CoverageListView.js (right): https://codereview.chromium.org/2888843002/diff/1/third_party/WebKit/Source/devtools/front_end/coverage/CoverageListView.js#newcode120 third_party/WebKit/Source/devtools/front_end/coverage/CoverageListView.js:120: async _revealSourceForSelectedNode() { is this change necessary? https://codereview.chromium.org/2888843002/diff/1/third_party/WebKit/Source/devtools/front_end/coverage/CoverageListView.js#newcode130 third_party/WebKit/Source/devtools/front_end/coverage/CoverageListView.js:130: ...
3 years, 7 months ago (2017-05-17 23:39:08 UTC) #3
lushnikov
https://codereview.chromium.org/2888843002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js File third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js (right): https://codereview.chromium.org/2888843002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js#newcode54 third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js:54: formatDataPromise.then(formatData => this.discardFormattedUISourceCode(formatData.formattedSourceCode)); this._formattedPath.delete(path); https://codereview.chromium.org/2888843002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js#newcode109 third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js:109: var formattedURL = ...
3 years, 7 months ago (2017-05-17 23:57:32 UTC) #4
caseq
PTAL, I resolved the races against either source code removal, changed caching to be performed ...
3 years, 7 months ago (2017-05-18 02:04:37 UTC) #6
lushnikov
lgtm
3 years, 7 months ago (2017-05-18 19:37:48 UTC) #7
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/2888843002/40001
3 years, 7 months ago (2017-05-18 20:56:05 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/449064)
3 years, 7 months ago (2017-05-19 02:38:44 UTC) #11
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/2888843002/40001
3 years, 7 months ago (2017-05-19 21:48:38 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/215288) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 7 months ago (2017-05-19 21:51:45 UTC) #15
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/2888843002/60001
3 years, 7 months ago (2017-05-19 22:09:13 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/298665)
3 years, 7 months ago (2017-05-19 23:36:25 UTC) #20
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/2888843002/60001
3 years, 7 months ago (2017-05-20 00:36:58 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/298826)
3 years, 7 months ago (2017-05-20 04:14:58 UTC) #24
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/2888843002/60001
3 years, 7 months ago (2017-05-22 04:27:39 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 05:55:20 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/88ed93a30047ad7f2b91312c644a...

Powered by Google App Engine
This is Rietveld 408576698