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

Issue 2701763002: DevTools: run user callback inside promise for promisified domains (Closed)

Created:
3 years, 10 months ago by lushnikov
Modified:
3 years, 10 months ago
Reviewers:
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: run user callback inside promise for promisified domains This patch runs userCallback inside a promise. This results in errors not being swallowed, and the promise to always resolve/reject but never to get stuck. As a result, the StylesSidebarPane will not die permanently once an error happens during handling the protocol response. BUG=681492 R=pfeldman Review-Url: https://codereview.chromium.org/2701763002 Cr-Commit-Position: refs/heads/master@{#451416} Committed: https://chromium.googlesource.com/chromium/src/+/5ac15460e9aab7b68f858f911b2e4ced8e0aadaa

Patch Set 1 #

Total comments: 2

Patch Set 2 : call user callback when errored in parsing arguments #

Patch Set 3 : rebaseline test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -15 lines) Patch
M third_party/WebKit/LayoutTests/inspector/inspector-backend-commands-expected.txt View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js View 1 2 chunks +13 lines, -7 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
lushnikov
please, take a look
3 years, 10 months ago (2017-02-16 22:36:56 UTC) #1
pfeldman
https://codereview.chromium.org/2701763002/diff/1/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js File third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js (right): https://codereview.chromium.org/2701763002/diff/1/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js#newcode604 third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js:604: return Promise.reject(new Error(errorMessage)); You aren't calling it here, are ...
3 years, 10 months ago (2017-02-16 22:43:02 UTC) #2
pfeldman
lgtm % error callback upon invalid params.
3 years, 10 months ago (2017-02-16 22:48:50 UTC) #3
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/2701763002/20001
3 years, 10 months ago (2017-02-16 23:13:48 UTC) #6
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/2701763002/20001
3 years, 10 months ago (2017-02-17 00:09:16 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/390320)
3 years, 10 months ago (2017-02-17 01:25:54 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/2701763002/20001
3 years, 10 months ago (2017-02-17 01:58:56 UTC) #14
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/384634)
3 years, 10 months ago (2017-02-17 03:14:03 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/2701763002/20001
3 years, 10 months ago (2017-02-17 03:59:35 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-17 04:04:24 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/2701763002/40001
3 years, 10 months ago (2017-02-17 19:34:33 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/312188)
3 years, 10 months ago (2017-02-17 20:38:39 UTC) #25
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/2701763002/40001
3 years, 10 months ago (2017-02-17 22:17:01 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_compile_dbg_ng on ...
3 years, 10 months ago (2017-02-18 00:20:57 UTC) #29
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/2701763002/40001
3 years, 10 months ago (2017-02-18 03:04:10 UTC) #31
commit-bot: I haz the power
3 years, 10 months ago (2017-02-18 04:12:14 UTC) #34
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5ac15460e9aab7b68f858f911b2e...

Powered by Google App Engine
This is Rietveld 408576698