Open Bug 1825762 Opened 2 years ago Updated 1 year ago

The bookmark with RTL title is shown from left to right like English titles

Categories

(Firefox :: Menus, defect, P2)

Firefox 113
x86_64
Windows 10
defect

Tracking

()

Tracking Status
firefox-esr102 --- unaffected
firefox111 --- wontfix
firefox112 --- wontfix
firefox113 --- wontfix
firefox114 --- wontfix
firefox115 --- wontfix
firefox116 --- wontfix
firefox117 --- wontfix

People

(Reporter: over68, Assigned: emilio, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Attached image screenshot

Steps to reproduce:

  1. Open data:text/html;charset=utf-8,<title>أبجد هوز حطي كلمن سعفص قرشت ثخذ ضظغ-أبجد هوز حطي كلمن سعفص قرشت ثخذ ضظغ
  2. Click the bookmark star to bookmark the page.
  3. Go to the Bookmarks Toolbar or Bookmarks Toolbar menu.

Actual results:

The bookmark with RTL title is shown from left to right like English titles.

Emilio, can you take a look?

Component: Theme → Menus
Flags: needinfo?(emilio)
Assignee: nobody → emilio

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

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

So this seems the usual text-overflow behavior on ltr elements. The right way to fix this if we consider this a bug, would be to support :dir() (and dir="auto" in particular) for XUL (or make these HTML elements and use dir="auto" on the <label>.

Gijs, do you know if there's any background on why XUL never supported :dir? Anyways I'd lean on fixing this by changing menuitems to not use a <xul:label> altogether perhaps, and use a <span dir="auto" class="menuitem-label"> or so. Though not sure.

Flags: needinfo?(emilio) → needinfo?(gijskruitbosch+bugs)

(Note that behavior is correct with an arabic / rtl locale)

The only reason this worked was because the ellipsis in the nsTextBoxFrame implementation was part of the text...

(In reply to Emilio Cobos Álvarez (:emilio) from comment #5)

So this seems the usual text-overflow behavior on ltr elements. The right way to fix this if we consider this a bug, would be to support :dir() (and dir="auto" in particular) for XUL (or make these HTML elements and use dir="auto" on the <label>.

Gijs, do you know if there's any background on why XUL never supported :dir?

No, I do not. If I had to guess, I expect mixed-directionality was never envisaged as a frequent usecase (which is probably wrong and an LTR-centric PoV - it seems pretty obvious in hindsight that an RTL user would have LTR bookmarks/history items if they ever use popular en-US or similar websites. Unclear to me, from comment #0 / comment #6 if that is/was also broken, or not). But the person to ask would have been Ehsan, and we can't do that anymore...

Anyways I'd lean on fixing this by changing menuitems to not use a <xul:label> altogether perhaps, and use a <span dir="auto" class="menuitem-label"> or so. Though not sure.

This seems reasonable to me, though we would need to do the same for toolbarbuttons (see top portion of screenshot from comment 0), and is a pretty involved refactor, I imagine. But perhaps I'm wrong...

Flags: needinfo?(gijskruitbosch+bugs)
Severity: -- → S2
Priority: -- → P1
Flags: needinfo?(emilio)

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

Emilio, what is the status of the bug? Is P1/S2 the right priority? Thanks!

I still want to get to this, but S3 probably reflects reality more.

Severity: S2 → S3
Priority: P1 → P2

Setting 114/115 to wontfix
Got an answer offline that the severity will be reviewed.
The fix will come in an upcoming release

Severity: S3 → S2
Priority: P2 → P1

Mid-aired :)

Severity: S2 → S3
Priority: P1 → P2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: