Closed Bug 1694497 Opened 3 years ago Closed 3 years ago

Missing RTL support for the Profiler, when opened from about:debugging

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect, P3)

defect

Tracking

(firefox88 fixed)

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: itiel_yn8, Assigned: jdescottes)

References

Details

(Keywords: rtl)

Attachments

(2 files)

Attached image Screenshot

What were you doing?

  1. Set intl.l10n.pseudo to bidi and restart
  2. Open about:debugging
  3. Connect to a device
  4. Click the Performance profile button

What happened?

The embedded iframe is in LTR.

What should have happened?

Should have been RTL.

Julien, we should probably not show the onboarding UI for the profiler in about:debugging, do we have another bug tracking this already? Thanks

Severity: -- → S3
Flags: needinfo?(felash)
Priority: -- → P3
See Also: → 1694970

ah I remember I wanted to file this indeed, but I can't find any existing bug. I totally agree with you. I filed Bug 1694970.

That said, the whole panel doesn't seem RTL-friendly in this setup, not only the onboarding. I believe we'll need to set dir and lang. Should that come from the panel itself, or is it set from the about:debugging page when adding the iframe? In the devtools toolbox I believe this is handled by the toolbox, right?

Flags: needinfo?(felash) → needinfo?(jdescottes)

(In reply to Julien Wajsberg [:julienw] from comment #2)

ah I remember I wanted to file this indeed, but I can't find any existing bug. I totally agree with you. I filed Bug 1694970.

That said, the whole panel doesn't seem RTL-friendly in this setup, not only the onboarding. I believe we'll need to set dir and lang. Should that come from the panel itself, or is it set from the about:debugging page when adding the iframe? In the devtools toolbox I believe this is handled by the toolbox, right?

Thanks for filing the other bug! You're right, the whole panel is not following the about:debugging dir/lang. And the toolbox is indeed responsible for that so it would make sense that about debugging is responsible for setting those attributes properly as well.
https://searchfox.org/mozilla-central/rev/002023eb262be9db3479142355e1675645d52d52/devtools/client/framework/toolbox.js#2576

Repurposing.

Flags: needinfo?(jdescottes)
Summary: Missing RTL support for the on-boarding UI for the Profiler, when opened from about:debugging → Missing RTL support for the Profiler, when opened from about:debugging

When opening the profiler dialog iframe, set the contentWindow.document direction based on the direction from the aboutdebugging document.
Add a test to check rtl is correctly set as the document direction for both about:debugging and the profiler dialog documents.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3aeff03dbf40
[devtools] Set correct document direction for about:debugging's profiler dialog r=ladybenko
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: