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

Issue 2363553003: VrShell: implement insecure content warning display (Closed)

Created:
4 years, 2 months ago by klausw
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebVR: implement insecure content warning display On WebVR pages loaded over insecure transport, show a small "Not secure" warning overlay permanently, and a transient more verbose warning for a short time on first entering the page. It uses the information from bajones's "Expose secure origin state to WebVR renderer" implementation. The message strings were previously added to chrome/app/generated_resources.grd in https://codereview.chromium.org/2368443002/ BUG=389343, 644492 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/069c76c2ffc77d5fcebb84937e07df8e61c3ebaf Cr-Commit-Position: refs/heads/master@{#422647}

Patch Set 1 #

Patch Set 2 : VrShell: implement insecure content warning display #

Patch Set 3 : Fix inconsistent types. #

Patch Set 4 : Use CHECK to avoid "unused" warning in non-debug build #

Patch Set 5 : Ready for review #

Total comments: 3

Patch Set 6 : Replace GIMP images with PNG file resources #

Total comments: 3

Patch Set 7 : Fixes: avoid img data copy, use time-based expiration #

Patch Set 8 : Move warning text 2px down as per UI review #

Patch Set 9 : Use HTML-rendered localized strings, delete PNGs #

Patch Set 10 : Try to mark dependent CL #

Total comments: 2

Patch Set 11 : Use CSS styling instead of inline styles #

Total comments: 12

Patch Set 12 : Address Dan's review comments #

Total comments: 2

Patch Set 13 : address cjgrant's review comments #

Total comments: 2

Patch Set 14 : address cjgrant's review comments from #38 #

Patch Set 15 : Rebase #

Patch Set 16 : Upgrade to Josh's new message UI #

Total comments: 2

Patch Set 17 : Josh's requests: font weight=400, adjust sizes to 1px=1mm at 1m. #

Patch Set 18 : Josh: lower permanent icon by half its height. #

Total comments: 5

Patch Set 19 : bshe#44: RTL-compatible CSS, comment cleanup. #

Patch Set 20 : Rebase, prereq codereview.chromium.org/2374153002 is committed #

Patch Set 21 : rebase, fix background for permanent message #

Patch Set 22 : Rebase fixups: QuatToAxisAngle API, unused cursor_distance_ #

Total comments: 38

Patch Set 23 : Dan's review: use text_defaults_md, remove redundant CSS, use textDirection #

Patch Set 24 : dbeam #58/#59: CSS fixes, move icon to separate resource file #

Total comments: 10

Patch Set 25 : mthiesse #51: use CHECK, add scaling comment. #

Patch Set 26 : dbeam #60: fix CSS link, add comments, trust the magic #

Patch Set 27 : Rebase to ToT (no changes to patched files) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -12 lines) Patch
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 chunks +118 lines, -2 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +80 lines, -1 line 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +13 lines, -1 line 0 comments Download
A ui/webui/resources/images/i_circle.svg View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 77 (25 generated)
klausw
blundell: please IM me in case of questions. We're trying to get the strings ready ...
4 years, 2 months ago (2016-09-22 21:33:24 UTC) #3
klausw
On 2016/09/22 21:33:24, klausw1 wrote: > blundell: please IM me in case of questions. We're ...
4 years, 2 months ago (2016-09-22 21:36:04 UTC) #4
klausw
On 2016/09/22 21:36:04, klausw1 wrote: > On 2016/09/22 21:33:24, klausw1 wrote: > > blundell: please ...
4 years, 2 months ago (2016-09-22 22:10:58 UTC) #5
bajones
https://codereview.chromium.org/2363553003/diff/80001/chrome/browser/android/vr_shell/vr_shell_icons.h File chrome/browser/android/vr_shell/vr_shell_icons.h (right): https://codereview.chromium.org/2363553003/diff/80001/chrome/browser/android/vr_shell/vr_shell_icons.h#newcode1 chrome/browser/android/vr_shell/vr_shell_icons.h:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 2 months ago (2016-09-22 22:13:30 UTC) #6
klausw
FYI, I've removed the string-related logic from this CL. The strings are in https://codereview.chromium.org/2368443002/ , ...
4 years, 2 months ago (2016-09-22 23:36:12 UTC) #7
bajones
On 2016/09/22 23:36:12, klausw1 wrote: > I'm working now on loading from file resources which ...
4 years, 2 months ago (2016-09-22 23:51:27 UTC) #9
klausw
On 2016/09/22 23:51:27, bajones wrote: > On 2016/09/22 23:36:12, klausw1 wrote: > > I'm working ...
4 years, 2 months ago (2016-09-23 00:13:56 UTC) #13
Evan Stade
what am I meant to be looking at? Do you care that the image will ...
4 years, 2 months ago (2016-09-23 00:35:30 UTC) #14
klausw
On 2016/09/23 00:35:30, Evan Stade wrote: > what am I meant to be looking at? ...
4 years, 2 months ago (2016-09-23 01:42:20 UTC) #16
billorr
I'm just learning the code review tools https://codereview.chromium.org/2363553003/diff/100001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2363553003/diff/100001/chrome/browser/android/vr_shell/vr_shell.cc#newcode504 chrome/browser/android/vr_shell/vr_shell.cc:504: webvr_warning_frames_ = ...
4 years, 2 months ago (2016-09-23 17:52:11 UTC) #18
klausw
On 2016/09/23 17:52:11, billorr wrote: > I'm just learning the code review tools > > ...
4 years, 2 months ago (2016-09-23 19:34:01 UTC) #19
Evan Stade
+dbeam to my knowledge, browser_resources isn't where we put pngs, just html/js/css. There are a ...
4 years, 2 months ago (2016-09-23 20:13:00 UTC) #21
bajones
On 2016/09/23 20:13:00, Evan Stade wrote: > so the text is super tiny on a ...
4 years, 2 months ago (2016-09-23 20:50:48 UTC) #22
bshe
+Chris Follow up discussion about vr shell ui here. Are you planning to use vr ...
4 years, 2 months ago (2016-09-26 18:17:03 UTC) #24
Dan Beam
On 2016/09/23 20:13:00, Evan Stade wrote: > +dbeam > > to my knowledge, browser_resources isn't ...
4 years, 2 months ago (2016-09-26 18:26:12 UTC) #25
klausw
On 2016/09/26 18:26:12, Dan Beam wrote: > On 2016/09/23 20:13:00, Evan Stade wrote: > > ...
4 years, 2 months ago (2016-09-27 20:13:57 UTC) #26
Dan Beam
https://codereview.chromium.org/2363553003/diff/180001/chrome/browser/resources/vr_shell/vr_shell_ui.html File chrome/browser/resources/vr_shell/vr_shell_ui.html (right): https://codereview.chromium.org/2363553003/diff/180001/chrome/browser/resources/vr_shell/vr_shell_ui.html#newcode71 chrome/browser/resources/vr_shell/vr_shell_ui.html:71: "><span>&#x24d8;</span> $i18n{insecureWebVrContentPermanent}</span></div> can you put these style="" attributes into ...
4 years, 2 months ago (2016-09-27 20:28:44 UTC) #27
Dan Beam
On 2016/09/27 20:13:57, klausw wrote: > On 2016/09/26 18:26:12, Dan Beam wrote: > > On ...
4 years, 2 months ago (2016-09-27 20:29:20 UTC) #28
klausw
On 2016/09/27 20:28:44, Dan Beam wrote: > https://codereview.chromium.org/2363553003/diff/180001/chrome/browser/resources/vr_shell/vr_shell_ui.html > File chrome/browser/resources/vr_shell/vr_shell_ui.html (right): > > https://codereview.chromium.org/2363553003/diff/180001/chrome/browser/resources/vr_shell/vr_shell_ui.html#newcode71 ...
4 years, 2 months ago (2016-09-27 20:45:57 UTC) #29
Dan Beam
do you have any mocks for this UI? https://codereview.chromium.org/2363553003/diff/200001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2363553003/diff/200001/chrome/browser/browser_resources.grd#newcode208 chrome/browser/browser_resources.grd:208: <include ...
4 years, 2 months ago (2016-09-27 22:33:40 UTC) #32
Dan Beam
can you update the BUG= line as well?
4 years, 2 months ago (2016-09-27 22:34:18 UTC) #33
klausw
On 2016/09/27 22:33:40, Dan Beam wrote: > do you have any mocks for this UI? ...
4 years, 2 months ago (2016-09-27 23:49:25 UTC) #34
klausw
On 2016/09/27 22:34:18, Dan Beam wrote: > can you update the BUG= line as well? ...
4 years, 2 months ago (2016-09-27 23:49:42 UTC) #35
cjgrant
https://codereview.chromium.org/2363553003/diff/220001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2363553003/diff/220001/chrome/browser/android/vr_shell/vr_shell.cc#newcode468 chrome/browser/android/vr_shell/vr_shell.cc:468: Rectf copy_rect = {256.f / ui_tex_width_, 0.f / ui_tex_height_, ...
4 years, 2 months ago (2016-09-28 14:57:52 UTC) #36
klausw
On 2016/09/28 14:57:52, cjgrant wrote: > https://codereview.chromium.org/2363553003/diff/220001/chrome/browser/android/vr_shell/vr_shell.cc > File chrome/browser/android/vr_shell/vr_shell.cc (right): > > https://codereview.chromium.org/2363553003/diff/220001/chrome/browser/android/vr_shell/vr_shell.cc#newcode468 > ...
4 years, 2 months ago (2016-09-28 17:40:41 UTC) #37
cjgrant
lgtm https://codereview.chromium.org/2363553003/diff/240001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2363553003/diff/240001/chrome/browser/android/vr_shell/vr_shell.cc#newcode340 chrome/browser/android/vr_shell/vr_shell.cc:340: Rectf copy_rect = {(float)pixel_rect.x / ui_tex_width_, nits: - ...
4 years, 2 months ago (2016-09-28 17:48:04 UTC) #38
cjgrant
4 years, 2 months ago (2016-09-28 17:48:15 UTC) #39
klausw
On 2016/09/28 17:48:04, cjgrant wrote: > lgtm > > https://codereview.chromium.org/2363553003/diff/240001/chrome/browser/android/vr_shell/vr_shell.cc > File chrome/browser/android/vr_shell/vr_shell.cc (right): > ...
4 years, 2 months ago (2016-09-28 18:37:42 UTC) #40
Dan Beam
On 2016/09/27 23:49:42, klausw wrote: > On 2016/09/27 22:34:18, Dan Beam wrote: > > can ...
4 years, 2 months ago (2016-09-29 03:06:41 UTC) #41
klausw
On 2016/09/29 03:06:41, Dan Beam wrote: > On 2016/09/27 23:49:42, klausw wrote: > > On ...
4 years, 2 months ago (2016-09-29 03:42:18 UTC) #43
bshe
https://codereview.chromium.org/2363553003/diff/340001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2363553003/diff/340001/chrome/browser/android/vr_shell/vr_shell.cc#newcode382 chrome/browser/android/vr_shell/vr_shell.cc:382: */ nit: move comment to .h file? Also, this ...
4 years, 2 months ago (2016-09-29 13:50:56 UTC) #44
klausw
On 2016/09/29 13:50:56, bshe wrote: > https://codereview.chromium.org/2363553003/diff/340001/chrome/browser/android/vr_shell/vr_shell.cc > File chrome/browser/android/vr_shell/vr_shell.cc (right): > > https://codereview.chromium.org/2363553003/diff/340001/chrome/browser/android/vr_shell/vr_shell.cc#newcode382 > ...
4 years, 2 months ago (2016-09-29 18:42:26 UTC) #45
klausw
I've rebased to current origin/master now that the prerequisite patch https://codereview.chromium.org/2374153002/ is committed. dbeam@ or ...
4 years, 2 months ago (2016-09-29 19:00:33 UTC) #46
Dan Beam
On 2016/09/29 19:00:33, klausw wrote: > I've rebased to current origin/master now that the prerequisite ...
4 years, 2 months ago (2016-09-29 19:03:15 UTC) #49
klausw
On 2016/09/29 19:03:15, Dan Beam wrote: > On 2016/09/29 19:00:33, klausw wrote: > > I've ...
4 years, 2 months ago (2016-09-29 19:12:05 UTC) #50
bshe
lgtm
4 years, 2 months ago (2016-09-29 19:39:59 UTC) #51
klausw
On 2016/09/29 19:39:59, bshe wrote: > lgtm Rebased to ToT origin/master. Transparency support has landed, ...
4 years, 2 months ago (2016-10-03 16:29:34 UTC) #54
mthiesse
https://codereview.chromium.org/2363553003/diff/420001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2363553003/diff/420001/chrome/browser/android/vr_shell/vr_shell.cc#newcode398 chrome/browser/android/vr_shell/vr_shell.cc:398: DCHECK(IsUiTextureReady()); This is for a security warning, so CHECK ...
4 years, 2 months ago (2016-10-03 17:47:30 UTC) #56
Dan Beam
re: The text is only shown in VR mode, so it doesn't appear alongside regular ...
4 years, 2 months ago (2016-10-03 18:12:49 UTC) #58
Dan Beam
https://codereview.chromium.org/2363553003/diff/420001/chrome/browser/resources/vr_shell/vr_shell_ui.css File chrome/browser/resources/vr_shell/vr_shell_ui.css (right): https://codereview.chromium.org/2363553003/diff/420001/chrome/browser/resources/vr_shell/vr_shell_ui.css#newcode71 chrome/browser/resources/vr_shell/vr_shell_ui.css:71: background-color: rgba(26, 26, 26, 0.8); also note that this ...
4 years, 2 months ago (2016-10-03 18:19:19 UTC) #59
klausw
dbeam@ wrote: > I think we can only act on what we know now. Can ...
4 years, 2 months ago (2016-10-03 19:47:32 UTC) #60
Dan Beam
https://codereview.chromium.org/2363553003/diff/460001/chrome/browser/resources/vr_shell/vr_shell_ui.css File chrome/browser/resources/vr_shell/vr_shell_ui.css (right): https://codereview.chromium.org/2363553003/diff/460001/chrome/browser/resources/vr_shell/vr_shell_ui.css#newcode5 chrome/browser/resources/vr_shell/vr_shell_ui.css:5: @import url(chrome://resources/css/text_defaults_md.css); sorry, i gave you bad advice <link ...
4 years, 2 months ago (2016-10-03 20:30:59 UTC) #61
klausw
FYI, I had already extracted constants in patchset 22: https://codereview.chromium.org/2363553003/diff2/420001:460001/chrome/browser/android/vr_shell/vr_shell.cc https://codereview.chromium.org/2363553003/diff/420001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2363553003/diff/420001/chrome/browser/android/vr_shell/vr_shell.cc#newcode398 ...
4 years, 2 months ago (2016-10-03 20:55:12 UTC) #62
klausw
The changes are included in patchset 30. https://codereview.chromium.org/2363553003/diff/460001/chrome/browser/resources/vr_shell/vr_shell_ui.css File chrome/browser/resources/vr_shell/vr_shell_ui.css (right): https://codereview.chromium.org/2363553003/diff/460001/chrome/browser/resources/vr_shell/vr_shell_ui.css#newcode5 chrome/browser/resources/vr_shell/vr_shell_ui.css:5: @import url(chrome://resources/css/text_defaults_md.css); ...
4 years, 2 months ago (2016-10-03 21:28:19 UTC) #63
klausw
On 2016/10/03 21:28:19, klausw wrote: > The changes are included in patchset 30. Make that ...
4 years, 2 months ago (2016-10-03 21:29:06 UTC) #64
klausw
On 2016/10/03 21:28:19, klausw wrote: > The changes are included in patchset 30. Make that ...
4 years, 2 months ago (2016-10-03 21:29:10 UTC) #65
Dan Beam
though i think some of the HTML/CSS could be refined just a little bit (right ...
4 years, 2 months ago (2016-10-03 21:32:33 UTC) #66
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/2363553003/520001
4 years, 2 months ago (2016-10-03 21:44:43 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/153047)
4 years, 2 months ago (2016-10-03 22:55:33 UTC) #71
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/2363553003/520001
4 years, 2 months ago (2016-10-03 23:36:15 UTC) #73
commit-bot: I haz the power
Committed patchset #27 (id:520001)
4 years, 2 months ago (2016-10-04 01:06:29 UTC) #75
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 01:09:49 UTC) #77
Message was sent while issue was closed.
Patchset 27 (id:??) landed as
https://crrev.com/069c76c2ffc77d5fcebb84937e07df8e61c3ebaf
Cr-Commit-Position: refs/heads/master@{#422647}

Powered by Google App Engine
This is Rietveld 408576698