Closed Bug 2047486 Opened 4 months ago Closed 1 day ago

Address bar doesn't decode unicode characters in the URL

Categories

(Firefox for Android :: Toolbar, defect)

Firefox 154
All
Android
defect

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
relnote-firefox --- 160+
firefox160 --- fixed

People

(Reporter: yclee126, Assigned: neoyarus)

References

Details

(Whiteboard: [fxdroid][group3])

Attachments

(4 files)

Steps to reproduce:

  1. Navigate to a URL containing unicode characters. For example: https://ko.wikipedia.org/wiki/위키백과:대문
  2. Observe how the URL is represented in the address bar.

Actual results:

The unicode part is %-encoded, making it hard for users to read or edit it. (https://ko.wikipedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%8C%80%EB%AC%B8)

Expected results:

The unicode part stays decoded as unicode characters. This is also consistent with the PC version. (https://ko.wikipedia.org/wiki/위키백과:대문)

Version info:

OS: Android 10 (API 29)
Firefox: Nightly build 20260611082734

Severity: -- → S3
Whiteboard: [fxdroid][group3]

The address bar displays readable Unicode and spaces in HTTP/S URLs using a Kotlin port of Firefox desktop's losslessDecodeDisplaySpec.

The formatter follows desktop's character and whitespace rules, using Android's Unicode categories. It leaves the authority unchanged and does not reformat text while typing. Dedicated copy and share actions use the original URL. Tests compare the formatter with 45 cases generated by the desktop helper.

Assignee: nobody → neoyarus
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

toLosslessDisplayUrl and toLosslessEditableUrl port desktop's losslessDecodeDisplaySpec, so every Android surface that shows a URL can decode it the same way desktop does. The shared toDisplayUrl and toShortUrl helpers use them. Tests compare the formatter with 45 cases generated by the desktop helper.

The remote search suggestion test only runs the permission combinations that behave differently, and the other tests run on the four focus and browsing-mode combinations, which keeps the CI cost down.

Attachment #9645583 - Attachment description: Bug 2047486 - Use desktop formatting rules for Android address-bar URLs. r?#android-reviewers! → Bug 2047486 - Use desktop formatting rules for URLs shown on Android. r?#android-reviewers!

Places titles a URL match with its stored URL minus the scheme, so typing an encoded path showed an encoded title above the readable URL.

Attachment #9647176 - Attachment description: Bug 2047486 - Add lossless URL formatters to URLStringUtils. r?#android-reviewers! → Bug 2047486 - Add lossless URL formatters to URLStringUtils. r?#android-reviewers
Attachment #9645583 - Attachment description: Bug 2047486 - Use desktop formatting rules for URLs shown on Android. r?#android-reviewers! → Bug 2047486 - Use desktop formatting rules for URLs shown on Android. r?#android-reviewers
Attachment #9647177 - Attachment description: Bug 2047486 - Add address-bar privacy instrumentation tests. r?#android-reviewers! → Bug 2047486 - Add address-bar privacy instrumentation tests. r?#android-reviewers
Attachment #9647991 - Attachment description: Bug 2047486 - Show suggestion titles made from their URL in a readable form. r?#android-reviewers! → Bug 2047486 - Show suggestion titles made from their URL in a readable form. r?#android-reviewers

Did you want to nominate this for the Fx160 relnotes? If so, set the relnote-firefox flag to "?"
https://wiki.mozilla.org/Release_Management/Release_Notes_Nomination

Possible wording:

Web addresses containing non-Latin characters are now shown in readable form in the address bar and elsewhere in the app, instead of as encoded text.

Flags: needinfo?(neoyarus)

Release Note Request (optional, but appreciated)
[Why is this notable]: Makes web addresses containing non-Latin characters readable in the address bar and elsewhere in Firefox for Android, consistent with Firefox desktop.
[Affects Firefox for Android]: Yes
[Suggested wording]: Web addresses containing non-Latin characters are now shown in readable form in the address bar and elsewhere in the app, instead of as encoded text.
[Links (documentation, blog post, etc)]: None

relnote-firefox: --- → ?
Flags: needinfo?(neoyarus)

Thanks, added to the Fx160 nightly release notes, please allow 30 minutes for the site to update. This will carry over to the Fx160 beta release notes and eventually the Fx160 release notes.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: