Closed
Bug 1033488
Opened 10 years ago
Closed 9 years ago
[e10s][RTL] Do bidi state detection in the parent process on Windows
Categories
(Core :: Widget: Win32, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla48
People
(Reporter: atifrea, Assigned: m_kato)
References
Details
Attachments
(2 files)
58 bytes,
text/x-review-board-request
|
masayuki
:
review+
ritu
:
approval-mozilla-aurora+
|
Details |
2.61 KB,
patch
|
masayuki
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
For information about this bug see bug 966395 and especially the comment at [1].
The issue for OSX has already been fixed.
[1] - https://bugzilla.mozilla.org/show_bug.cgi?id=966395#c10
tracking-e10s:
--- → ?
Updated•10 years ago
|
Blocks: old-e10s-m2
Updated•10 years ago
|
Assignee: nobody → atifrea
Priority: -- → P2
Comment 1•10 years ago
|
||
Moving old M2 P2 bugs to M4.
Updated•10 years ago
|
Assignee: atifrea → nobody
Updated•10 years ago
|
Updated•10 years ago
|
Assignee: nobody → gwright
Updated•10 years ago
|
Comment 5•9 years ago
|
||
The duplicate bug 1191895 is a serious user-facing regression for RTL language users, including on OSX, in spite of comment 0 "the issue for OSX has already been fixed". For a while bug 1164693 concealed the problem, but since that was backed out enabling e10s now causes the directional marker on the caret to disappear. See bug 1216096 comment 11 onwards.
Jim, once the backout patches from bug 1216096 will land on aurora and beta, bidi caret marker will be broken in e10s. I am not sure where this is in terms of e10s scenario priority but to me it seems like a Beta blocker i.e. it should be fixed before 50% of beta population gets e10s enabled in 45 or later. Thoughts?
Flags: needinfo?(jmathies)
Comment 8•9 years ago
|
||
I set bidi.browser.ui to true, but I don't see any change with the caret. Simon, can you provide STR for this bug?
Flags: needinfo?(smontagu)
Comment 9•9 years ago
|
||
related, same bug on linux is bug 1033483.
Comment 10•9 years ago
|
||
(In reply to Jim Mathies [:jimm] from comment #8)
> I set bidi.browser.ui to true, but I don't see any change with the caret.
> Simon, can you provide STR for this bug?
You also need an installed keyboard driver for a RTL language, e.g. Hebrew or Arabic.
Flags: needinfo?(smontagu)
Updated•9 years ago
|
Flags: needinfo?(jgriffiths)
Comment 11•9 years ago
|
||
My initial take on this is, this should be fixed when we ship e10s to the affected locales, eg Hebrew and Arabic. We should also avoid including affected locales in an e10s cohort, don't know if this is possible.
needinfo'ing Pike - do you have a quick list of locales that need bidi in order to be usable?
Flags: needinfo?(jgriffiths) → needinfo?(l10n)
Comment 12•9 years ago
|
||
"ar fa he ur" are the ones we have these days.
Note, that list is useful for cohort-building, but I'd cringe if we hard-code it in a bunch of places.
Flags: needinfo?(l10n)
Updated•9 years ago
|
Flags: needinfo?(jgriffiths)
Comment 13•9 years ago
|
||
(In reply to Axel Hecht [:Pike] from comment #12)
> "ar fa he ur" are the ones we have these days.
>
> Note, that list is useful for cohort-building, but I'd cringe if we
> hard-code it in a bunch of places.
Cohort-building is (I think) what I'm interested in - if we can avoid these locales for the beta e10s cohorts then it affects the priority/milestone of the bug.
Comment 14•9 years ago
|
||
Having thought about this some more, my proposal is that this issue should block testing / deployment of e10s to these locales: ar, fa, he, ur
I'm clearing my needinfo, and needinfo'ing Jim so this comes up in triage again and prioritized. I don't think this is a high priority for 46, but it should get fixed.
Flags: needinfo?(jgriffiths)
Updated•9 years ago
|
Flags: needinfo?(jmathies)
Comment 15•9 years ago
|
||
removing my ni so this falls into our triage list. lets find out how hard this will be to fix. We can file a bug on restricting e10s rollout based on locale if need be.
Flags: needinfo?(jmathies)
Updated•9 years ago
|
Comment 16•9 years ago
|
||
(In reply to Axel Hecht [:Pike] from comment #12)
> "ar fa he ur" are the ones we have these days.
>
> Note, that list is useful for cohort-building, but I'd cringe if we
> hard-code it in a bunch of places.
Hey Axel, what is ur? or did you mean ru?
Flags: needinfo?(l10n)
Comment 18•9 years ago
|
||
Ok thanks. Out of curiosity, is there a file somewhere that lists all the possible locales? I tried looking for it, and there are various files called "all-locales" on the tree, but they are all pretty incomplete.
I wanted to know if any of these locales also have a "-AA" variant or if they always come with just these two letters
Comment 19•9 years ago
|
||
I'm not sure if there's a comprehensive list around, but the all-locales for DevEdition should cover most of them
http://hg.mozilla.org/releases/mozilla-aurora/file/tip/browser/locales/all-locales
Locale codes with language and region (ab-CD) are quite common, e.g. we have 4 Spanish regional variants.
There are also some variants in Firefox OS world (e.g. sr-Latn, sr-Cyrl for Serbian, es for Spanish), but I don't think you're interested in those.
This is a JSON of all locale code+description available in the Mozilla Localizations component
https://l10n.mozilla-community.org/~flod/mozilla-l10n-query/?bugzilla=product
Updated•9 years ago
|
Priority: P2 → P1
Updated•9 years ago
|
Summary: [e10s] Do bidi state detection in the parent process on Windows → [e10s][RTL] Do bidi state detection in the parent process on Windows
Updated•9 years ago
|
Assignee: gwright → nobody
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → m_kato
Component: Widget → Widget: Win32
Assignee | ||
Comment 20•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/39441/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/39441/
Attachment #8729402 -
Flags: review?(masayuki)
Comment 21•9 years ago
|
||
Comment on attachment 8729402 [details]
MozReview Request: Bug 1033488 - Send RTL information to child process by WM_INPUTLANGCHANGE. r?masayuki
https://reviewboard.mozilla.org/r/39441/#review36125
I think that you should use nsBidiKeyboard::OnLayoutChange() from IMEInputHandler::OnCurrentTextInputSourceChange() too, though.
# Wow, sorry for the delay due to fogetting to click "Publish Review"... Sigh.
Attachment #8729402 -
Flags: review?(masayuki) → review+
Assignee | ||
Comment 22•9 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #21)
> Comment on attachment 8729402 [details]
> MozReview Request: Bug 1033488 - Send RTL information to child process by
> WM_INPUTLANGCHANGE. r?masayuki
>
> https://reviewboard.mozilla.org/r/39441/#review36125
>
> I think that you should use nsBidiKeyboard::OnLayoutChange() from
> IMEInputHandler::OnCurrentTextInputSourceChange() too, though.
>
> # Wow, sorry for the delay due to fogetting to click "Publish Review"...
> Sigh.
Same issue on OSX is already fixed by bug 966395.
Comment 23•9 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #22)
> (In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #21)
> > Comment on attachment 8729402 [details]
> > MozReview Request: Bug 1033488 - Send RTL information to child process by
> > WM_INPUTLANGCHANGE. r?masayuki
> >
> > https://reviewboard.mozilla.org/r/39441/#review36125
> >
> > I think that you should use nsBidiKeyboard::OnLayoutChange() from
> > IMEInputHandler::OnCurrentTextInputSourceChange() too, though.
> >
> > # Wow, sorry for the delay due to fogetting to click "Publish Review"...
> > Sigh.
>
> Same issue on OSX is already fixed by bug 966395.
I meant that you add a useful method in the patch, therefore, IMEInputHandler should use it too.
Assignee | ||
Comment 24•9 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #23)
> (In reply to Makoto Kato [:m_kato] from comment #22)
> > (In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #21)
> > > Comment on attachment 8729402 [details]
> > > MozReview Request: Bug 1033488 - Send RTL information to child process by
> > > WM_INPUTLANGCHANGE. r?masayuki
> > >
> > > https://reviewboard.mozilla.org/r/39441/#review36125
> > >
> > > I think that you should use nsBidiKeyboard::OnLayoutChange() from
> > > IMEInputHandler::OnCurrentTextInputSourceChange() too, though.
> > >
> > > # Wow, sorry for the delay due to fogetting to click "Publish Review"...
> > > Sigh.
> >
> > Same issue on OSX is already fixed by bug 966395.
>
> I meant that you add a useful method in the patch, therefore,
> IMEInputHandler should use it too.
This patch is for widget/windows. Do you mean that I should create widget/nsBaseBidiKeyboard class too or I should add same method to widget/cocoa/nsBidiKeyboard.mm?
Assignee | ||
Comment 25•9 years ago
|
||
Or I should add same method to WidgetUtils for all platforms?
Comment 26•9 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #24)
> (In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #23)
> > (In reply to Makoto Kato [:m_kato] from comment #22)
> > > (In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #21)
> > > > Comment on attachment 8729402 [details]
> > > > MozReview Request: Bug 1033488 - Send RTL information to child process by
> > > > WM_INPUTLANGCHANGE. r?masayuki
> > > >
> > > > https://reviewboard.mozilla.org/r/39441/#review36125
> > > >
> > > > I think that you should use nsBidiKeyboard::OnLayoutChange() from
> > > > IMEInputHandler::OnCurrentTextInputSourceChange() too, though.
> > > >
> > > > # Wow, sorry for the delay due to fogetting to click "Publish Review"...
> > > > Sigh.
> > >
> > > Same issue on OSX is already fixed by bug 966395.
> >
> > I meant that you add a useful method in the patch, therefore,
> > IMEInputHandler should use it too.
>
> This patch is for widget/windows. Do you mean that I should create
> widget/nsBaseBidiKeyboard class too or I should add same method to
> widget/cocoa/nsBidiKeyboard.mm?
Ah, sorry. I misunderstood. I understood as you adding OnLayoutChange() into XP level class. But not so actually. So, ignore my comments. Sorry for the confusion.
Comment 27•9 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #25)
> Or I should add same method to WidgetUtils for all platforms?
It might be better. But it's okay not to do it here (there are more urgent bugs...)
Assignee | ||
Comment 28•9 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #27)
> (In reply to Makoto Kato [:m_kato] from comment #25)
> > Or I should add same method to WidgetUtils for all platforms?
>
> It might be better. But it's okay not to do it here (there are more urgent
> bugs...)
I will create the follow up bugs for Cocoa and Windows. Also it will be useful for bug 1033483.
Comment 29•9 years ago
|
||
Comment 30•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Comment 31•9 years ago
|
||
When I switching en to ar, direction cursor does not change.
Screenshot https://dl.dropboxusercontent.com/u/95157096/85f61cf7/t561exsbt3.png
Flags: needinfo?(m_kato)
Assignee | ||
Comment 32•9 years ago
|
||
(In reply to blinky from comment #31)
> When I switching en to ar, direction cursor does not change.
>
> Screenshot
> https://dl.dropboxusercontent.com/u/95157096/85f61cf7/t561exsbt3.png
Are you using local build binary that you build from the latest source code of m-c or m-i?
Flags: needinfo?(m_kato) → needinfo?(over68)
Assignee | ||
Updated•9 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 33•9 years ago
|
||
Ah, bug 966395's fix is invalid too. Chrome process can send RTL information to content process correctly. But content process doesn't have bidi keyboard even if PuppetBidiKeyboard is implemented! I will fix it soon.
Assignee | ||
Comment 34•9 years ago
|
||
Actually, content process cannot get nsIBidiKeyboard by do_GetService("@mozilla.org/widget/bidikeyboard") on OSX and Windows. Since ContentChild will call PuppetBidiKeybaord directly, we should always register nsIBidiKeyboard by PuppetBidiKeyboard.
Attachment #8732052 -
Flags: review?(masayuki)
Updated•9 years ago
|
Attachment #8732052 -
Flags: review?(masayuki) → review+
Comment 35•9 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #32)
> (In reply to blinky from comment #31)
> > When I switching en to ar, direction cursor does not change.
> >
> > Screenshot
> > https://dl.dropboxusercontent.com/u/95157096/85f61cf7/t561exsbt3.png
>
> Are you using local build binary that you build from the latest source code
> of m-c or m-i?
I am using the latest nightly m-c build.
Flags: needinfo?(over68)
Comment 36•9 years ago
|
||
Comment 37•9 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 38•9 years ago
|
||
Comment on attachment 8729402 [details]
MozReview Request: Bug 1033488 - Send RTL information to child process by WM_INPUTLANGCHANGE. r?masayuki
Approval Request Comment
[Feature/regressing bug #]:
Nothing
[User impact if declined]:
RTL caret doesn't show correctly on e10s mode with bidi.browser.ui=true.
Due to this issue, we don't turn on e10s on RTL languages.
[Describe test coverage new/current, TreeHerder]:
Landed in m-c
[Risks and why]:
too low. This only works on bidi.browser.ui=true and e10s when keyboard layout is changed by user.
[String/UUID change made/needed]:
Nothing
Attachment #8729402 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 39•9 years ago
|
||
Comment on attachment 8732052 [details] [diff] [review]
Part 2. Make PuppetBidiKeyboard correctly on content process.
Approval Request Comment
[Feature/regressing bug #]:
Nothing
[User impact if declined]:
RTL caret doesn't show correctly on e10s mode with bidi.browser.ui=true.
Due to this issue, we don't turn on e10s on RTL languages and this is required for OSX too.
[Describe test coverage new/current, TreeHerder]:
Landed in m-c
[Risks and why]:
too low. This only works on bidi.browser.ui=true and e10s when keyboard layout is changed by user.
[String/UUID change made/needed]:
Nothing
Attachment #8732052 -
Flags: approval-mozilla-aurora?
status-firefox47:
--- → affected
Comment on attachment 8729402 [details]
MozReview Request: Bug 1033488 - Send RTL information to child process by WM_INPUTLANGCHANGE. r?masayuki
e10s + bidi, Aurora47+
Attachment #8729402 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8732052 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 41•9 years ago
|
||
bugherder uplift |
Comment 42•8 years ago
|
||
Hey Makoto, with this bug fixed can we turn e10s on for rtl users on windows?
Flags: needinfo?(m_kato)
Assignee | ||
Comment 43•8 years ago
|
||
(In reply to Jim Mathies [:jimm] from comment #42)
> Hey Makoto, with this bug fixed can we turn e10s on for rtl users on windows?
Yes. RTL caret and context menu for RTL work fine even if on e10s.
But I don't know whether bug 1257731 is critical as Firefox team. But I think that this isn't critical because direction can change by context menu or another shortcut (accel+shift+x).
Flags: needinfo?(m_kato)
Comment 44•8 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #43)
> (In reply to Jim Mathies [:jimm] from comment #42)
> > Hey Makoto, with this bug fixed can we turn e10s on for rtl users on windows?
>
> Yes. RTL caret and context menu for RTL work fine even if on e10s.
>
> But I don't know whether bug 1257731 is critical as Firefox team. But I
> think that this isn't critical because direction can change by context menu
> or another shortcut (accel+shift+x).
Looks like you'll have that fixed in 50 so lets just target that release. I'll file a bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•