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

Issue 2885033007: Disable color/date chooser in VR mode via WebPreferences (Closed)

Created:
3 years, 7 months ago by Ian Vollick
Modified:
3 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, dglazkov+blink, blink-reviews-api_chromium.org, feature-vr-reviews_chromium.org, darin-cc_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable color/date chooser in VR mode via WebPreferences On Android, the color and date time choosers overlay the main content and are monocular. This is disruptive in VR. Until these are supported in VR, they will be suppressed. It's important to note that this suppression preference can change multiple times in the lifetime of a renderer, so a runtime enabled feature isn't appropriate. It also means that walking the DOM each time the preference changes to disable form elements is also an unattractive option. BUG=715600 Review-Url: https://codereview.chromium.org/2885033007 Cr-Commit-Position: refs/heads/master@{#474534} Committed: https://chromium.googlesource.com/chromium/src/+/8921b24098caf2612b3e30694ce4250781c2cdca

Patch Set 1 #

Patch Set 2 : unit test for color picker -- still need to handle other page popups. #

Patch Set 3 : generalize preference #

Patch Set 4 : date time chooser #

Total comments: 2

Patch Set 5 : attempt to fix win locale issues in test. #

Patch Set 6 : added explanatory comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -10 lines) Patch
M chrome/browser/android/vr_shell/vr_tab_helper.h View 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_tab_helper.cc View 1 2 1 chunk +16 lines, -1 line 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.json5 View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/ColorChooserClient.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/forms/DateTimeChooserClient.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp View 1 2 3 4 2 chunks +136 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 48 (32 generated)
Ian Vollick
Hey all. I've hopefully spoken with all of you about this change already. PTAL when ...
3 years, 7 months ago (2017-05-23 13:02:38 UTC) #13
boliu
lgtm, although I don't think I own anything anymore :p
3 years, 7 months ago (2017-05-23 15:39:20 UTC) #14
Avi (use Gerrit)
content lgtm
3 years, 7 months ago (2017-05-23 15:50:56 UTC) #15
mthiesse
vr_shell/ lgtm
3 years, 7 months ago (2017-05-23 15:54:26 UTC) #16
Rick Byers
Big picture I think having a blink setting to disable things somewhat ad-hoc like this ...
3 years, 7 months ago (2017-05-23 21:36:36 UTC) #21
tkent
What about file chooser for <input type=file>, <select> popups, <datalist> popups, form validation bubble, title= ...
3 years, 7 months ago (2017-05-23 23:22:53 UTC) #22
Ian Vollick
On 2017/05/23 23:22:53, tkent wrote: > What about file chooser for <input type=file>, <select> popups, ...
3 years, 7 months ago (2017-05-23 23:40:44 UTC) #23
Ian Vollick
On 2017/05/23 21:36:36, Rick Byers wrote: > Big picture I think having a blink setting ...
3 years, 7 months ago (2017-05-24 16:38:46 UTC) #28
Rick Byers
This seems fine to me for now, still LGTM. Thanks for the description. But it ...
3 years, 7 months ago (2017-05-24 22:57:13 UTC) #33
Ian Vollick
On 2017/05/24 22:57:13, Rick Byers wrote: > This seems fine to me for now, still ...
3 years, 7 months ago (2017-05-24 23:17:15 UTC) #34
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/2885033007/100001
3 years, 7 months ago (2017-05-24 23:18:22 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/446890)
3 years, 7 months ago (2017-05-24 23:27:47 UTC) #39
Ian Vollick
On 2017/05/24 23:27:47, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 7 months ago (2017-05-25 01:52:16 UTC) #42
kenrb
lgtm
3 years, 7 months ago (2017-05-25 02:21:58 UTC) #43
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/2885033007/100001
3 years, 7 months ago (2017-05-25 02:41:37 UTC) #45
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 02:48:39 UTC) #48
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/8921b24098caf2612b3e30694ce4...

Powered by Google App Engine
This is Rietveld 408576698