WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
200482
Web Inspector: RTL: Console should be always LTR
https://bugs.webkit.org/show_bug.cgi?id=200482
Summary
Web Inspector: RTL: Console should be always LTR
Nikita Vasilyev
Reported
2019-08-06 15:58:15 PDT
Created
attachment 375658
[details]
[Image] Bug JavaScript is strictly RTL. For example, this JS in RTL mode: function getElementById() { [native code] } = $1 becomes this: } ()function getElementById [native code] $1 = { Which is invalid and hardly even readable.
Attachments
[Image] Bug
(144.89 KB, image/png)
2019-08-06 15:58 PDT
,
Nikita Vasilyev
no flags
Details
Patch
(7.51 KB, patch)
2019-08-09 16:57 PDT
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
[Image] With patch applied
(142.19 KB, image/png)
2019-08-09 16:57 PDT
,
Nikita Vasilyev
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Nikita Vasilyev
Comment 1
2019-08-09 16:57:30 PDT
Created
attachment 375981
[details]
Patch
Nikita Vasilyev
Comment 2
2019-08-09 16:57:54 PDT
Created
attachment 375982
[details]
[Image] With patch applied
Joseph Pecoraro
Comment 3
2019-08-16 01:09:51 PDT
Comment on
attachment 375981
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=375981&action=review
r=me
> Source/WebInspectorUI/UserInterface/Views/ConsoleCommandView.js:44 > + this._element.dir = "ltr";
Why do we put the `dir=ltr` on the ConsoleMessageView / ConsoleCommandView and not just on the LogContentView itself? Are there things in the Console log that we still want to be RTL?
> Source/WebInspectorUI/UserInterface/Views/TreeOutline.css:73 > +body[dir=rtl] [dir=ltr] .tree-outline .item :matches(.disclosure-button, .icon) {
Nice, I like this approach.
Nikita Vasilyev
Comment 4
2019-08-16 01:44:16 PDT
(In reply to Joseph Pecoraro from
comment #3
)
> Comment on
attachment 375981
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=375981&action=review
> > r=me > > > Source/WebInspectorUI/UserInterface/Views/ConsoleCommandView.js:44 > > + this._element.dir = "ltr"; > > Why do we put the `dir=ltr` on the ConsoleMessageView / ConsoleCommandView > and not just on the LogContentView itself? Are there things in the Console > log that we still want to be RTL?
Yes, "Console cleared at 11:49:23 AM".
WebKit Commit Bot
Comment 5
2019-08-16 02:14:07 PDT
Comment on
attachment 375981
[details]
Patch Clearing flags on attachment: 375981 Committed
r248766
: <
https://trac.webkit.org/changeset/248766
>
WebKit Commit Bot
Comment 6
2019-08-16 02:14:08 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2019-08-16 02:15:18 PDT
<
rdar://problem/54382964
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug