Closed Bug 2068970 Opened 22 days ago Closed 22 days ago

Go to the address in the Location Bar arrow button is facing the wrong direction in RTL builds

Categories

(Firefox :: Address Bar, defect, P1)

Firefox 157
Desktop
All
defect

Tracking

()

VERIFIED FIXED
157 Branch
Tracking Status
firefox157 --- verified

People

(Reporter: oardelean, Assigned: dao)

References

Details

(Whiteboard: [sng][mcab-hnt])

Attachments

(2 files)

Attached image image.png —

Notes

  • Please see the attached screenshot for more details.
  • Reproducible with both Proton and Nova.

Found in

  • Nightly 157.0a1;

Affected versions

  • Nightly 157.0a1;

Tested platforms

  • Windows 11;
  • Ubuntu 22;
  • macOS 13;

Affected platforms

  • Windows 11;
  • Ubuntu 22;
  • macOS 13;

Preconditions

  • Use a ar or he build;

Steps to reproduce

  1. Launch Firefox.
  2. Focus the new tab search bar and input any string.

Expected result

  • The “Go to the address in the Location Bar” arrow button is facing right.

Actual result

  • The “Go to the address in the Location Bar” arrow button is facing left.
Assignee: nobody → dao+bmo
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [sng][mcab-hnt]

:-moz-locale-dir() is a document-state pseudo-class, and Document::IsDocumentRightToLeft() returns false for anything but a chrome document, so those rules are inert in about:newtab, which links the same sheet through UrlbarInputBase. :dir() reads the dir attribute DOMLocalization puts on the root, and browser.xhtml and about:newtab both carry it.

The rules left on :-moz-locale-dir() target elements only the address bar or the legacy searchbar has. The overflow-mask rule anchors on .urlbarView instead of matching the row's own element, which can carry dir="auto".

Attachment #9636012 - Attachment description: Bug 2068970 - Use :dir() for urlbar / searchbar RTL rules except those exclusive to the address bar. r?adw! → Bug 2068970 - Use :dir() instead of :-moz-locale-dir() for urlbar / searchbar RTL rules. r?adw!
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2a9455153a2e https://hg.mozilla.org/integration/autoland/rev/86ba489062f0 Use :dir() instead of :-moz-locale-dir() for urlbar / searchbar RTL rules. r=adw,desktop-theme-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 22 days ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch

Verified as fixed on Firefox Nightly 157.0a1 -ar build- on Windows 10, Ubuntu 22, macOS 13.

Status: RESOLVED → VERIFIED
QA Whiteboard: [S4][QA-5590][qa-found-in-c157] → [S4][QA-5590][qa-found-in-c157][qa-ver-done-c157/b156]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: