New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 820138 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: ----
Proj-VR
Proj-XR
Proj-XR-VR



Sign in to add a comment

file:///sdcard/ url not formatted the same way as 2D mode

Project Member Reported by dbbrooks@chromium.org, Mar 8 2018

Issue description

Chrome Version: 66.0.3359.10
OS: Android O
Device: Pixel 2XL 
VRCore: 1.13.185188193

*This also occurs on other devices and OS's.

What steps will reproduce the problem?
(1) on the device in 2D mode go to file:///sdcard/
(2) accept permission request
(3) note that the "file" portion of the url is a gray color and the  the rest of the url is black.
(4) Enter VR browsing mode

What is the expected result? The "file" portion of the url should be gray and the rest should be black. It should have the same formatting as 2D mode.

What happens instead? The "file" portion of the url has no difference in tone or color than the rest of the url.
 
2D-mode.png
306 KB View Download
vr-browsing.png
558 KB View Download
Labels: M-67 Pri-2
Owner: cjgrant@chromium.org
Status: Assigned (was: Untriaged)
Want to take a look Chris?
Yep.  Two things:

We might not be wrong.  We highlight schemes according to desktop's implementation, and sometimes, if Clank doesn't match, it's been a Clank bug.  I'll look into it.

Separately, I noticed that we're showing the (i) icon, which again, Clank does not, but desktop does.
Cc: jdonnelly@chromium.org
Justin, do you have insight into why this mismatch exists, and whether one is incorrect?
Cc: mariakho...@chromium.org
Off the top of my head, the Android UI looks wrong. Even if we wanted to grey that out, it ought to be the entire protocol (including "://") not just the word "file".

+mariakhomenko to see if she knows whether the greyed-out "file" is intentional.
Cc: tedc...@chromium.org
I believe this is intentional, see OmniboxUrlEmphasizer.java#emphasizeUrl for logic. We highlight all schemes that don't come from secure connections this way.
Interesting.  I guess the questions then becomes "should desktop and Clank converge on this?"

VR doesn't utilize any omnibox-related Java code - it's much more like desktop in that way.  However, the VR browser should be consistent with Clank where possible, as it runs on mobile.  So VR could go either way - we just need to know which way.
Labels: -M-67 M-68
Cc: est...@chromium.org emilyschechter@chromium.org
estark, emilyschechter: Android has a behavior where it greys out the "file" protocol because it's insecure (see first attachment on comment #1). Presumably http would be greyed out also, but we simply don't show it.

Can either of you comment on whether desktop and VR should try to do the same? To my eye, it's not really clear what the grey color is supposed to be communicating.
Cc: elawrence@chromium.org maxwalker@chromium.org mea...@chromium.org
My understanding is that "file" does not touch the network, so it's not considered insecure -- so the grey color isn't supposed to communicate anything, it's more of an attempt to make URLs less confusing/confusable by "greying out" useless syntax. We have some research that this is not super effective as an anti-spoofing defense, though it still could be helpful for very technical users: https://docs.google.com/presentation/d/1j5Z5mBB6t0TOTWu88ZBnWDJHSmCvNnzFrFgd2px_dAI/edit

We should keep a consistent UI across all of these lesser known schemes (blob, etc). +elawrence/meacer can you remind me of current state? (Do we have a test for these?) 

If we think it is actually not secure, I would prefer to use the security chip. 
I think it's fine for WebVR to match Desktop here and show the URL in all black.

> "file" does not touch the network, so it's not considered insecure 

Yes, today we don't consider file non-secure. Notably, the file protocol *may* hit the network via the non-secure SMB protocol (this happens when the url is of the form 

  file://Just2SlashesBeforeHereMeansThisIsaHostname.com/path/folder

...However, because only pages loaded from file: may navigate to and load from file:, its usage in the scenarios that we typically worry about for "Not Secure" warnings is low.

Unfortunately, Chrome's emphasis behavior remains a bit all over the board for these more-obscure protocols.

For the data: scheme, we tried to emphasize the scheme itself (e.g. show "data:" in black and everything else in gray) as an anti-spoofing mechanism, but we quickly just disabled navigations to it entirely.

For the blob: scheme, today, Desktop just shows this in black.
For the about: scheme, today, Desktop shows this in gray.
Both are a bit weird because these URLs may be secure or may be insecure depended on the security context of their originating URLs. 

(I have various test URLs up at https://bayden.com/test/data.htm)

Status: Fixed (was: Assigned)
Thanks for this discussion, folks.

VR's omnibox uses more of desktop's code than Android's, so I'd prefer to continue following desktop in this case.

If Chrome's emphasis behavior converges to be more consistent across platforms, then VR would follow that direction.

There's very little code involved in Desktop and VR's URL emphasis currently, but if the complexity starts to grow, then I'd like to refactor Desktop View's implementation into something more abstract, that we can use to emphasize both desktop and VR URLs.  Then, VR would automatically pick up any changes to desktop's styling.

If there are strong feelings about doing this ASAP, I think I can slot that into M-69.

Sign in to add a comment