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

Issue 709238 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug
Team-Security-UX



Sign in to add a comment

Pulling up Chrome Chrome Home does not move more of the origin into view if there is a sufficiently long path

Project Member Reported by lgar...@chromium.org, Apr 6 2017

Issue description

Chrome Version: 59.0.3063.0
OS: Android 7.1.1

What steps will reproduce the problem?
(1) Enable Chrome Home
(2) Load a URL with a path of at least a few characters
(3) Pull the omnibox up.

What is the expected result?
The URL moves to the right, so that the end of the origin is aligned with the omnibox.
(path-pulled.png)

What happens instead?
The URL keeps its left alignment and shows more of the path.

It seems Chrome Home triggers is at least some logic for moving the origin around to fit in the omnibox: see no-path-unpulled.png and no-path-pulled.png

Per Enamel guidelines, we should show as much of the origin as possible, elided from the left (i.e. right-aligned with the right of the omnibox if it's overflowing). See origins.png, from https://www.chromium.org/Home/chromium-security/enamel#TOC-Eliding-Origin-Names-And-Hostnames

ktam@, could you triage?
 
path-unpulled.png
107 KB View Download
path-pulled.png
121 KB View Download
no-path-unpulled.png
66.8 KB View Download
no-path-pulled.png
82.4 KB View Download
origins.png
189 KB View Download
Also, if there were recent changes to this code for Chrome Home, it might be related to  Issue 705778  (Android: Certain URLs don't elide origin correctly) or  Issue 705780  (Android sometimes doesn't update origin elision when changing to landscape).
Components: UI>Browser>Mobile>NavPanel
Labels: Hotlist-Chrome-Home
We didn't (intentionally) change anything related to this for Chrome Home. Is there someone security/enamel team who would be suited to help us investigate?
The issue is that Chrome Home dynamically removes the tab and overflow icons if you pull up, without telling the eliding code to realign the URL. You'll need to hook that up for when the icons are added/removed.

Comment 5 by k...@chromium.org, Jul 11 2017

Cc: mdjones@chromium.org twelling...@chromium.org
Labels: -M-59 M-62
Owner: ----
Status: Available (was: Assigned)
Marking as available for an engineer to take a look.
lgarron@ - where does the eliding coded reside? I'm not familiar with the URL sliding we do for security, but may be able to take a stab at this with some pointers.
Owner: danielpark@chromium.org
Status: Assigned (was: Available)
Attached are pictures that show the fixed behavior. 
I believe cases where this doesn't work are related to the bug mentioned earlier (https://bugs.chromium.org/p/chromium/issues/detail?id=705778).
bloomberg_pre_pull.png
67.5 KB View Download
bloomberg_pulled_up.png
38.5 KB View Download
untrusted_pre_pull.png
32.6 KB View Download
untrusted_pulled_up.png
25.4 KB View Download
Labels: Fine-Pri-2.0
Project Member

Comment 11 by bugdroid1@chromium.org, Aug 14 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c66796aceaf9fb04d15aca43ff0c30de63dd4d5c

commit c66796aceaf9fb04d15aca43ff0c30de63dd4d5c
Author: danielpark@chromium.org <danielpark@chromium.org>
Date: Mon Aug 14 20:17:52 2017

[Home] Scroll URL to ensure TLD visible when opening/closing sheet

Adds public #getUrlBar() to LocationBarLayout.java.
Calls the new method + urlbar's #scrollToTLD() method at
 animationEnd of BottomToolbarPhone's CancelAwareAnimatorListener.

Bug:  709238 
Change-Id: Ic989c4d172827a4921fd50aa087812d656d19c53
Reviewed-on: https://chromium-review.googlesource.com/586433
Reviewed-by: Yusuf Ozuysal <yusufo@chromium.org>
Reviewed-by: Theresa <twellington@chromium.org>
Commit-Queue: Daniel Park <danielpark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#494162}
[modify] https://crrev.com/c66796aceaf9fb04d15aca43ff0c30de63dd4d5c/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
[modify] https://crrev.com/c66796aceaf9fb04d15aca43ff0c30de63dd4d5c/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java

danielpark@, can this bug be marked as "Fixed"?
Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)
Works as per expected behavior provided in the screenshots @ Comment#9. Verified in 62.0.3193.0. 

Sign in to add a comment