Closed Bug 381426 Opened 17 years ago Closed 17 years ago

Can't be activated Input Method in the Bookmark Properties.

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hidenosuke, Assigned: masayuki)

References

Details

(Keywords: intl, jp-critical, regression)

Attachments

(2 files, 2 obsolete files)

Steps to reroduce:
1. Open Bookmarks Manager.
2. Select any bookmark.
3. Open Bookmarks Proerties dialog from context menu.
4. Type a key to be activated Input Method.

Actual result:
Can't be activated IM.

Expected result:
Can be activate IM.

More Information:
If you open Bookmark Propertiese dialog by Properties button
on the toolbar of Bookmarks Manager, there is no problem.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a5pre) Gecko/20070521 Minefield/3.0a5pre
I made a mistake.

Correct steps to rerpoduce:
1. Open Bookmarks Manager.
2. Select any bookmark.
3. Open Bookmarks Proerties dialog from context menu.
4. Click "Name" field.
5. Type a key to be activated Input Method.
Reproduce on Firefox-trunk/WinXP

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070521 Minefield/3.0a5pre
probably, this is a regression of bug 378752.
Assignee: nobody → smontagu
Blocks: 378752
Component: Places → Internationalization
OS: Linux → All
Product: Firefox → Core
QA Contact: places → i18n
Hardware: PC → All
Assignee: smontagu → masayuki
Attached patch Patch rv1.0 (obsolete) — Splinter Review
I think that we need to notify to finish the menu loop during the menus hiding.
Because if a modal dialog is created at menu executing, the RemoveKeyboardNavigator is called after the modal loop.

Note that we used the same hacking for nsMenuDismissalListener...
Attachment #265541 - Flags: superreview?(roc)
Attachment #265541 - Flags: review?(roc)
Status: NEW → ASSIGNED
Maybe we should call nsContentUtils::NotifyInstalledMenuKeyboardListener from nsMenuDismissalListener::Shutdown()?
I think that you are right excepted 1st of |nsMenuBarFrame::Escape| (I think that this code is not correct, we should remove it).

For semantics, should we rename |NotifyInstalledMenuKeyboardListener|? The actual kb listener is not removed.

Or, should we call |nsIMenuParent::RemoveKeyboardListener| in |nsMenuDismissalListener::Shutdown()|??
(In reply to comment #6)
> I think that you are right excepted 1st of |nsMenuBarFrame::Escape| (I think
> that this code is not correct, we should remove it).

I agree.

> For semantics, should we rename |NotifyInstalledMenuKeyboardListener|? The
> actual kb listener is not removed.

OK ... maybe we don't need to track menu status via NotifyInstalledMenuKeyboardListener? Can we just query to see if nsMenuDismissalListener is active?

> Or, should we call |nsIMenuParent::RemoveKeyboardListener| in
> |nsMenuDismissalListener::Shutdown()|??

Let's just do this for now.
Attached patch Patch rv2.0Splinter Review
Attachment #265541 - Attachment is obsolete: true
Attachment #265557 - Flags: superreview?(roc)
Attachment #265557 - Flags: review?(roc)
Attachment #265541 - Flags: superreview?(roc)
Attachment #265541 - Flags: review?(roc)
(In reply to comment #7)
> > For semantics, should we rename |NotifyInstalledMenuKeyboardListener|? The
> > actual kb listener is not removed.
> 
> OK ... maybe we don't need to track menu status via
> NotifyInstalledMenuKeyboardListener? Can we just query to see if
> nsMenuDismissalListener is active?

No. nsMenuDismissalListener is not only for 'Menu'. It is used for autocomplete too.
Attachment #265557 - Flags: superreview?(roc)
Attachment #265557 - Flags: superreview+
Attachment #265557 - Flags: review?(roc)
Attachment #265557 - Flags: review+
checked-in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
I got a feedback, the patch doesn't work fine on sub folder's items of bookmarks toolbar. But it works fine on Bookmarks menu of menubar.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch Additional Patch rv1.0 (obsolete) — Splinter Review
The additional patch.

The kb navigator installed menu parent doesn't related the context menu on submenu items on bookmark toolbar. I think that nsMenuDismissalListener should close *all* menus.

So, this patch is 'adhoc', we need to clean-up nsMenuDismissalListener...
Attachment #265771 - Flags: superreview?(roc)
Attachment #265771 - Flags: review?(roc)
This is really Neil's department...
nsMenuDismissalListener will be removed by bug 279703 so any code cleanup shouldn't be done. The patch there fixes the open menu chain to be handled properly.
  
Neil, thank you for the comment.

We should take the current patch for 1.9a5, bug 279703 is not landed before a5, it's critical for us.
In the patch, what happens if mFirstParent is destroyed while we're in the other menu? We're left with a dangling frame reference, it seems
when the first parent frame is destroying, should recreate the nsMenuDismissalListener?
more adhoc but safety patch. I'm testing...
Attachment #265771 - Attachment is obsolete: true
Attachment #265771 - Flags: superreview?(roc)
Attachment #265771 - Flags: review?(roc)
Comment on attachment 265829 [details] [diff] [review]
Additional patch rv2.0

let's land this.
Attachment #265829 - Flags: superreview?(roc)
Attachment #265829 - Flags: review?(roc)
Attachment #265829 - Flags: superreview?(roc)
Attachment #265829 - Flags: superreview+
Attachment #265829 - Flags: review?(roc)
Attachment #265829 - Flags: review+
checked-in.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: