|
|
Chromium Code Reviews|
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. |
DescriptionDevTools: 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 #
Messages
Total messages: 34 (18 generated)
please, take a look
https://codereview.chromium.org/2701763002/diff/1/third_party/WebKit/Source/d... File third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js (right): https://codereview.chromium.org/2701763002/diff/1/third_party/WebKit/Source/d... third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js:604: return Promise.reject(new Error(errorMessage)); You aren't calling it here, are you? https://codereview.chromium.org/2701763002/diff/1/third_party/WebKit/Source/d... third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js:624: function runUserCallback() { You are changing the order of callback and promise resolution, while clients rely on it.
lgtm % error callback upon invalid params.
The CQ bit was checked by lushnikov@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from pfeldman@chromium.org Link to the patchset: https://codereview.chromium.org/2701763002/#ps20001 (title: "call user callback when errored in parsing arguments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by lushnikov@chromium.org
Description was changed from ========== 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. BUG=none R=pfeldman ========== to ========== 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 ==========
The CQ bit was checked by lushnikov@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by lushnikov@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by lushnikov@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by lushnikov@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from pfeldman@chromium.org Link to the patchset: https://codereview.chromium.org/2701763002/#ps40001 (title: "rebaseline test")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_linu...)
The CQ bit was checked by lushnikov@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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 master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by lushnikov@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1487387019595860,
"parent_rev": "d69da860fbe6e4b6a0ad3f4a7a79f816a2adfd75", "commit_rev":
"5ac15460e9aab7b68f858f911b2e4ced8e0aadaa"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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/+/5ac15460e9aab7b68f858f911b2e... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/5ac15460e9aab7b68f858f911b2e... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
