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

Issue 1891843004: [headless] AddWindowTreeClient (Closed)

Created:
4 years, 8 months ago by altimin
Modified:
4 years, 8 months ago
Reviewers:
Sami
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[headless] Fix crashing during window.open. * Add WindowTreeClient. * Register new WebContents in Embedder API. BUG=603882 R=skyostil@chromium.org Committed: https://crrev.com/b6d2d1fcb63abb91d74feb9e0de731e39d83ce55 Cr-Commit-Position: refs/heads/master@{#388775}

Patch Set 1 #

Patch Set 2 : Added tests and changed ownership model #

Total comments: 16

Patch Set 3 : Fixes according to review #

Total comments: 2

Patch Set 4 : Fixes according to review #

Patch Set 5 : Nits #

Patch Set 6 : Rebase to latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -40 lines) Patch
M headless/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M headless/app/headless_shell.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M headless/lib/browser/headless_browser_impl.h View 1 4 chunks +19 lines, -3 lines 0 comments Download
M headless/lib/browser/headless_browser_impl.cc View 1 4 chunks +37 lines, -9 lines 0 comments Download
M headless/lib/browser/headless_screen.h View 1 chunk +1 line, -0 lines 0 comments Download
M headless/lib/browser/headless_web_contents_impl.h View 1 2 3 4 5 2 chunks +23 lines, -3 lines 0 comments Download
M headless/lib/browser/headless_web_contents_impl.cc View 1 2 3 4 5 4 chunks +52 lines, -8 lines 0 comments Download
A headless/lib/browser/headless_window_tree_client.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A headless/lib/browser/headless_window_tree_client.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M headless/lib/headless_browser_browsertest.cc View 1 2 2 chunks +19 lines, -8 lines 0 comments Download
M headless/lib/headless_devtools_client_browsertest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M headless/lib/headless_web_contents_browsertest.cc View 1 2 2 chunks +27 lines, -3 lines 0 comments Download
M headless/public/headless_browser.h View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download
M headless/public/headless_web_contents.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
A + headless/test/data/window_open.html View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (13 generated)
altimin
4 years, 8 months ago (2016-04-15 15:22:11 UTC) #2
altimin
4 years, 8 months ago (2016-04-15 15:22:37 UTC) #5
Sami
Code looks great. Would you mind adding a test which does a window.open to make ...
4 years, 8 months ago (2016-04-15 15:45:52 UTC) #6
altimin
On 2016/04/15 15:45:52, Sami wrote: > Code looks great. Would you mind adding a test ...
4 years, 8 months ago (2016-04-20 16:03:02 UTC) #7
altimin
4 years, 8 months ago (2016-04-20 16:03:12 UTC) #8
Sami
Thanks for the tests. Few miscellaneous comments. https://codereview.chromium.org/1891843004/diff/20001/headless/lib/browser/headless_browser_impl.h File headless/lib/browser/headless_browser_impl.h (right): https://codereview.chromium.org/1891843004/diff/20001/headless/lib/browser/headless_browser_impl.h#newcode73 headless/lib/browser/headless_browser_impl.h:73: std::unordered_map<HeadlessWebContents*, std::unique_ptr<HeadlessWebContents>> ...
4 years, 8 months ago (2016-04-20 16:38:50 UTC) #9
Sami
Thanks for the tests. Few miscellaneous comments. https://codereview.chromium.org/1891843004/diff/20001/headless/lib/browser/headless_browser_impl.h File headless/lib/browser/headless_browser_impl.h (right): https://codereview.chromium.org/1891843004/diff/20001/headless/lib/browser/headless_browser_impl.h#newcode73 headless/lib/browser/headless_browser_impl.h:73: std::unordered_map<HeadlessWebContents*, std::unique_ptr<HeadlessWebContents>> ...
4 years, 8 months ago (2016-04-20 16:38:50 UTC) #10
altimin
PTAL https://codereview.chromium.org/1891843004/diff/20001/headless/lib/browser/headless_browser_impl.h File headless/lib/browser/headless_browser_impl.h (right): https://codereview.chromium.org/1891843004/diff/20001/headless/lib/browser/headless_browser_impl.h#newcode73 headless/lib/browser/headless_browser_impl.h:73: std::unordered_map<HeadlessWebContents*, std::unique_ptr<HeadlessWebContents>> On 2016/04/20 16:38:50, Sami wrote: > ...
4 years, 8 months ago (2016-04-20 17:35:26 UTC) #11
Sami
Thanks, lgtm with one comment. Also, please mention in the change description how this changes ...
4 years, 8 months ago (2016-04-20 17:42:57 UTC) #12
altimin
FYI https://codereview.chromium.org/1891843004/diff/40001/headless/lib/browser/headless_browser_impl.cc File headless/lib/browser/headless_browser_impl.cc (left): https://codereview.chromium.org/1891843004/diff/40001/headless/lib/browser/headless_browser_impl.cc#oldcode40 headless/lib/browser/headless_browser_impl.cc:40: // We require the user to pass in ...
4 years, 8 months ago (2016-04-20 18:11:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891843004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891843004/80001
4 years, 8 months ago (2016-04-20 18:12:48 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/22227) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-20 18:15:28 UTC) #18
Sami
(Please update the patch description before landing too)
4 years, 8 months ago (2016-04-21 09:42:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891843004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891843004/100001
4 years, 8 months ago (2016-04-21 14:25:44 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/9935)
4 years, 8 months ago (2016-04-21 14:35:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891843004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891843004/100001
4 years, 8 months ago (2016-04-21 14:47:24 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-21 15:23:35 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:34:48 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b6d2d1fcb63abb91d74feb9e0de731e39d83ce55
Cr-Commit-Position: refs/heads/master@{#388775}

Powered by Google App Engine
This is Rietveld 408576698