Closed Bug 490447 Opened 17 years ago Closed 7 years ago

Focus can't be transferred between two GtkMozEmbed widgets in the same window

Categories

(Core Graveyard :: Embedding: GTK Widget, defect)

Other
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: phnixwxz, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Linux; U; en-US; rv:1.9.1.0) Gecko/20070309 Firefox/3.0.1 Build Identifier: When two GtkMozEmbed widgets are embedded in the same window, input focus can't be transferred directly from one to another by mouse click. Reproducible: Always Steps to Reproduce: 1. Compile and run the attached source code (slightly modified from TestGtkEmbed.) 2. Enter any URL containing at least one text input box (e.g. www.google.com) 3. Click the text input box in the first browser to give it the focus 4. Click the text input box in the second browser Actual Results: Focus can't be transferred to the input text box second browser. However, I can first click other place to remove the focus from the first browser and then can successfully give focus to the second browser. Expected Results: Focus should be transferred correctly.
Though focus can't be transferred between the embedded browsers by click, the tab key can transfer focus normally.
Like bug 490444, this bug also reproduces in Firefox-equivalent version 2.0, 3.0 and 3.5b4.
I found a workaround method: In widget/src/gtk2/nsWindow.cpp, change the following line (line No. 2887 for 1.9.1): if (!gFocusWindow && containerWindow) { to if (containerWindow) {
Product: Core → Core Graveyard
Embedding: GTK Widget isn't a thing, closing.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: