Open Bug 1539349 Opened 5 years ago Updated 2 years ago

window.RTL_UI does not update when intl.l10n.pseudo is changed

Categories

(Firefox :: Toolbars and Customization, defect, P3)

defect

Tracking

()

People

(Reporter: Jamie, Unassigned)

References

Details

Spun off bug 1538575 comment 6. Gijs wrote:

FTR, I think it's a bug that window.RTL_UI doesn't update (which we should probably file orthogonally from whatever else we end up doing here). This is because, AIUI, we're moving towards a world where users can switch locales at runtime (which will start being possible once we finish removing DTDs and their user-unfriendly failure mode (yellow screen of death)), so anything that doesn't update for this at runtime will end up being a bug.

STR (assuming an LTR locale):

  1. Open the Browser Toolbox.
  2. In the console, enter "window.RTL_UI". Observe that the value is "false".
  3. Back in the browser window, set the pref intl.uidirection to 1. Observe that the UI (e.g. the toolbar) changes accordingly.
  4. In the toolbox console, enter "window.RTL_UI".
    • Expected: true
    • Actual: false
Priority: -- → P3

I'm removing the intl.uidirection pref in Bug 1676137.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE

Morphing the bug to be about intl.l10n.pseudo, the same issue is reproducible with it.
(In step 3 in the STR above set intl.l10n.pseudo to bidi to reproduce)

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Summary: window.RTL_UI does not update when intl.uidirection is changed → window.RTL_UI does not update when intl.l10n.pseudo is changed

This does not belong to Platform. The RTL_UI is a variable set and maintained within customizeui in Firefox /browser/ components and needs to be adapted to listen to the events fired by the platform.

If there's anything needed of the platform to make this possible, please, file a separate bug and make it blocking this one.

Component: Internationalization → Toolbars and Customization
Product: Core → Firefox
Priority: P3 → --
Priority: -- → P3
Status: REOPENED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.