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

Issue 2200663002: HeadlessDevToolsClientImpl::DispatchEvent to post a task (Closed)

Created:
4 years, 4 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 4 months ago
Reviewers:
Sami
CC:
chromium-reviews, pfeldman, devtools-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

HeadlessDevToolsClientImpl::DispatchEvent to post a task DevTools expects events to be processed asynchronously and if handlers respond synchronously things can break. This patch works around that by posting a task to run the event handler. BUG=546953 Committed: https://crrev.com/6f348930aacb2ef5432e6bc5671d3e50c0dd7dfb Cr-Commit-Position: refs/heads/master@{#408976}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Tweak for Sami #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -7 lines) Patch
M headless/lib/browser/headless_devtools_client_impl.h View 1 3 chunks +15 lines, -3 lines 0 comments Download
M headless/lib/browser/headless_devtools_client_impl.cc View 1 5 chunks +25 lines, -4 lines 0 comments Download
M headless/lib/headless_devtools_client_browsertest.cc View 1 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
alex clarke (OOO till 29th)
4 years, 4 months ago (2016-08-01 10:37:14 UTC) #3
Sami
lgtm with one question. https://codereview.chromium.org/2200663002/diff/1/headless/lib/browser/headless_devtools_client_impl.cc File headless/lib/browser/headless_devtools_client_impl.cc (right): https://codereview.chromium.org/2200663002/diff/1/headless/lib/browser/headless_devtools_client_impl.cc#newcode152 headless/lib/browser/headless_devtools_client_impl.cc:152: &it->second, result_dict)); Might need to ...
4 years, 4 months ago (2016-08-01 11:05:02 UTC) #4
alex clarke (OOO till 29th)
https://codereview.chromium.org/2200663002/diff/1/headless/lib/browser/headless_devtools_client_impl.cc File headless/lib/browser/headless_devtools_client_impl.cc (right): https://codereview.chromium.org/2200663002/diff/1/headless/lib/browser/headless_devtools_client_impl.cc#newcode152 headless/lib/browser/headless_devtools_client_impl.cc:152: &it->second, result_dict)); On 2016/08/01 11:05:02, Sami wrote: > Might ...
4 years, 4 months ago (2016-08-01 15:37:02 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/2200663002/20001
4 years, 4 months ago (2016-08-01 15:37:18 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-01 16:29:17 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 16:32:14 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6f348930aacb2ef5432e6bc5671d3e50c0dd7dfb
Cr-Commit-Position: refs/heads/master@{#408976}

Powered by Google App Engine
This is Rietveld 408576698