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

Issue 709666 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug


Show other hotlists

Hotlists containing this issue:
Payments-Maintenance


Sign in to add a comment

Web payments UI overlaps Chrome Home omnibox.

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

Issue description

When Web Payments initially shipped, we were concerned that the payment UI was implementing its own half-baked version of omnibox URL formatting.

This was mitigated by the fact that the omnibox was still visible in the background.

The payment popup UI now uses scheme coloring from the omnibox, although it doesn't highlight the domain, and I don't know how it handles IDN domains and eliding.

emilyschechter@: Do you think this is sufficiently mitigated if we get the payments team to copy all omnibox origin treatment (... and hopefully keep it in sync)? Or should we reconsider where to put the UI?
 
stable.png
92.0 KB View Download
canary-bijou.png
92.9 KB View Download
Cc: bbergher@chromium.org zkoch@chromium.org gogerald@chromium.org dfalcant...@chromium.org
Components: -Blink>Payments UI>Browser>Autofill>Payments
> doesn't highlight the domain

We show only the origin, so scheme + domain (most of the time). Should the domain be darker?

> how it handles IDN domains.

What specifically should be done for international domain names?

> and eliding.

We elide from the left, according to https://www.chromium.org/Home/chromium-security/enamel#TOC-Presenting-Origins.

Comment 2 by zkoch@chromium.org, Apr 8 2017

Cc: cl...@chromium.org kings...@google.com
Ah, interesting. This never clicked with me. 
> We show only the origin, so scheme + domain (most of the time). Should the domain be darker?

Yes, it should match the omnibox.
Note that we are researching new changes to the omnibox, so that might change again.

Is it possible for you to share code with the Android omnibox, so that this code is automatically kept in sync?
> Is it possible for you to share code with the Android omnibox, so that this code is automatically kept in sync?

Yep, that would be wonderful. We'd need to do some refactoring.
Cc: -dfalcant...@chromium.org tedc...@chromium.org
-me, +ted for omnibox code.
Sorry, but I'm not clear on what code you're talking about.

If this is just about coloring, you should use OmniboxUrlEmphasizer#emphasizeUrl
Screenshots of using OmniboxUrlEmphasizer#emphasizeUrl.
Screenshot (Apr 11, 2017 7-39-42 PM).png
237 KB View Download
Screenshot (Apr 11, 2017 7-40-14 PM).png
140 KB View Download
Looks legit to me. Nothing will ever look good with such a long domain name, IMO, so this seems like a good approach.
Where do the green dots come from? The omnibox just truncates the URL.

Ellipses are fine, but if the emphasizer is making them green we should fix that. Otherwise looks good to me. :-)
Screenshot (Apr 12, 2017 10-58-29 AM).png
153 KB View Download
Screenshot (Apr 12, 2017 10-57-57 AM).png
156 KB View Download
We have a bug filed for removing the green color from the ellipsis. We can remove the ellipsis altogether to match the omnibox, if you think that's better. Darkening the hostname through OmniboxUrlEmphasizer#emphasizeUrl() is a good first step, though.
> We have a bug filed for removing the green color from the ellipsis.

Could you CC me?

> We can remove the ellipsis altogether to match the omnibox

I'm a bit concerned if you need to do this manually, since that could get out of sync again. Is it possible to display the origin in a frameless box, aligned like the omnibox?
Owner: rouslan@chromium.org
Status: Assigned (was: Untriaged)
Assigning to myself to make sure this task is not lost.
Components: -UI>Browser>Autofill>Payments UI>Browser>Payments
Cc: -bbergher@chromium.org
Cc: -kings...@google.com

Sign in to add a comment