Closed Bug 1863110 Opened 11 months ago Closed 10 months ago

If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark

Categories

(Firefox :: Address Bar, defect, P2)

Firefox 118
defect

Tracking

()

VERIFIED FIXED
122 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox119 --- disabled
firefox120 --- disabled
firefox121 --- disabled
firefox122 --- verified

People

(Reporter: 6k64x4ma, Assigned: mseibert)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [sng-scrubbed][search-regression])

Attachments

(2 files)

Attached image screenshot.webp

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0

Steps to reproduce:

  1. Set browser.urlbar.trimHttps to true.
  2. Open a new tab.
  3. Type something in the address bar and select suggested bookmark.

Actual results:

  • The whole address is highlighted.

Expected results:

  • Only the domain name should be highlighted.
Component: Untriaged → Address Bar
Keywords: regression
Regressed by: 1067293

:mseibert, since you are the author of the regressor, bug 1067293, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(mseibert)

Issue is reproducible on:

  • Firefox 119.0;
  • Firefox 120.0b6;
  • Nightly 121.0a1;

Tested and reproduced on:

  • Windows 10;
  • Ubuntu 22;
  • macOS 12;

Setting as NEW so the developing team can have a look.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Corrected steps to reproduce:

  1. Set browser.urlbar.trimHttps to true.
  2. On any tab, type something in the address bar.
    At this time, the auto-completed URL must be displayed.
  3. Select suggested bookmark.
Summary: If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark in a new tab → If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark
Severity: -- → S3
Priority: -- → P2
Whiteboard: [sng-scrubbed][search-regression]
Assignee: nobody → mseibert
Flags: needinfo?(mseibert)

This is a result of two things:

  1. We don't format urls, when they don't start with a valid scheme (and slashes).
  2. We don't reformat, when _urlMetaData already contains the value of the urlbar.

For some reason the trimmed URL is placed in the meta data object. This in turn is compared to the trimmed value of the Urlbar. As a result no reformatting happens.

I created a patch that fixes the problem, but I can't write a test case as of now, because I don't know why it happens.

Status: NEW → ASSIGNED
Attachment #9362338 - Attachment description: WIP: Bug 1863110 - If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark.r=dao → Bug 1863110 - If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark.r=dao
Attachment #9362338 - Attachment description: Bug 1863110 - If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark.r=dao → WIP: Bug 1863110 - If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark.r=dao
Attachment #9362338 - Attachment description: WIP: Bug 1863110 - If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark.r=dao → Bug 1863110 - If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark.r=dao

Set release status flags based on info from the regressing bug 1067293

Blocks: 1850491
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f5d904bee3fe If trimHttps is enabled, domain highlighting is not applied when loading suggested bookmark.r=dao
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Flags: qe-verify+

Reproducible on a 2023-11-03 Nightly build on macOS 12.
Verified as fixed on Firefox Nightly 122.0a1 on macOS 12, Windows 10, Ubuntu 22.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: