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

Issue 2374063002: Headless: expose WebPreferences to embedder, add --hide-scrollbars. (Closed)

Created:
4 years, 2 months ago by Eric Seckler
Modified:
4 years, 2 months ago
Reviewers:
Sami
CC:
chromium-reviews, alex clarke (OOO till 29th), altimin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Headless: expose WebPreferences to embedder, add --hide-scrollbars. Lets the embedder override WebPreferences for individual HeadlessBrowserContexts. Used to add back the --hide-scrollbars flag to headless_shell. BUG=546953 Committed: https://crrev.com/d71fc504213b7d60f98d8b1db9abb6bda280a042 Cr-Commit-Position: refs/heads/master@{#422074}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments, add test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -7 lines) Patch
M headless/app/headless_shell.cc View 1 2 chunks +11 lines, -5 lines 0 comments Download
M headless/app/headless_shell_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M headless/app/headless_shell_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_browser_context_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_browser_context_impl.cc View 1 2 chunks +14 lines, -1 line 0 comments Download
M headless/lib/browser/headless_browser_context_options.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_browser_context_options.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_content_browser_client.h View 1 chunk +2 lines, -1 line 0 comments Download
M headless/lib/browser/headless_content_browser_client.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M headless/lib/headless_browser_context_browsertest.cc View 1 2 chunks +29 lines, -0 lines 0 comments Download
M headless/public/headless_browser_context.h View 1 3 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Eric Seckler
I'm adding this as a per-BrowserContext-only option. Wasn't sure if it makes sense to support ...
4 years, 2 months ago (2016-09-28 17:02:16 UTC) #5
Sami
Per-context seems like a good choice to me. Could you add a test for overriding ...
4 years, 2 months ago (2016-09-29 09:38:26 UTC) #8
Eric Seckler
Thanks! Added a test as well. https://codereview.chromium.org/2374063002/diff/1/headless/public/headless_browser_context.h File headless/public/headless_browser_context.h (right): https://codereview.chromium.org/2374063002/diff/1/headless/public/headless_browser_context.h#newcode106 headless/public/headless_browser_context.h:106: // created within ...
4 years, 2 months ago (2016-09-30 09:17:51 UTC) #9
Sami
lgtm, thanks!
4 years, 2 months ago (2016-09-30 10:00:51 UTC) #14
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/2374063002/20001
4 years, 2 months ago (2016-09-30 10:03:12 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-30 10:08:22 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 10:10:35 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d71fc504213b7d60f98d8b1db9abb6bda280a042
Cr-Commit-Position: refs/heads/master@{#422074}

Powered by Google App Engine
This is Rietveld 408576698