Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

URL alignment is a bit off #1964

Closed
jumde opened this issue Nov 14, 2019 · 8 comments
Closed

URL alignment is a bit off #1964

jumde opened this issue Nov 14, 2019 · 8 comments

Comments

@jumde
Copy link
Contributor

jumde commented Nov 14, 2019

Description:

Alignment of URLs in address bar is a bit off.
image

Steps to Reproduce

  1. Navigate to wikipedia.org

Actual result:
Only edia.org is displayed in the address bar

Expected result:
wikipedia.org should be displayed

Reproduces how often: [Easily reproduced, Intermittent Issue]
Easily

Brave Version:
v1.13 (19.11.06.18)

Device details:
iPhone SE

@anthonypkeane anthonypkeane added this to the 1.15 milestone Nov 14, 2019
@anthonypkeane
Copy link

@iccub
Copy link
Contributor

iccub commented Nov 15, 2019

This only happens with bookmarks button enabled btw

@Brandon-T
Copy link
Collaborator

Brandon-T commented Nov 15, 2019

@jumde

This issue happens because of this PR: #869
which fixes this ticket: It’s related to: #552

It seems this is 100% intentional.

The comment in the code says:

//  This override is done in case the eTLD+1 string overflows the width of textField.
//  In that case the textRect is adjusted to show right aligned and truncate left.

Expected behaviour is that the URL shifts over to highlight the "host" so the user can see whether or not it's a real domain or fake scam website.

@Brandon-T Brandon-T self-assigned this Nov 15, 2019
@jhreis
Copy link
Contributor

jhreis commented Nov 15, 2019

Despite this being true @Brandon-T it seems to be shifting too far to the left, the .org should at least be right-aligned here, no?

@Brandon-T
Copy link
Collaborator

@jhreis I fixed that part :)

image

It automatically fixed itself when I fixed the lock icon not showing in the url bar. It happened because of a bad layout :)

@jumde
Copy link
Contributor Author

jumde commented Nov 15, 2019

@jhreis I fixed that part :)

image

It automatically fixed itself when I fixed the lock icon not showing in the url bar. It happened because of a bad layout :)

Looks like the correct fix. Can you confirm if the test cases in #552 are not regressed? The idea is to highlight eTLD+1 when we need to truncate the URL.

@jhreis jhreis modified the milestones: 1.15, 1.16 Feb 10, 2020
@jhreis jhreis closed this as completed in 7b79971 Apr 15, 2020
@jumde
Copy link
Contributor Author

jumde commented May 6, 2020

Test Plan

  1. Enable bookmarks shortcut on address bar.
  2. Navigate to long URLs like:

and verify that the eTLD+1 is highlighted.

@srirambv
Copy link
Contributor

srirambv commented May 6, 2020

Verification passed on iPhone XR with iOS 13.5 running 1.16(20.05.05.12)


Verification passed on iPhone XR with iOS 13.3.1 running 1.16(20.05.05.12)


Verification passed on iPhone 6 with iOS 12.4.5 running 1.16(20.05.05.12)


Marking as iPhone only as iPad URL bar is not small and entire URL is visible with or without the bookmark button

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants