Closed
Bug 127694
Opened 23 years ago
Closed 20 years ago
GNotebook focus bug
Categories
(Core Graveyard :: Embedding: GTK Widget, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 210373
People
(Reporter: mpgritti, Assigned: blizzard)
References
Details
(Keywords: embed)
Attachments
(2 files)
152 bytes,
text/html
|
Details | |
4.74 KB,
patch
|
mpgritti
:
review-
|
Details | Diff | Splinter Review |
With two tabs open in galeon, if you reload one of them, then fastly switch to
other, at some point the focus is removed from the active tab and set on the
inactive one.
This happen because every time a new url is loaded the focus is grabbed on the
owner gtkmozembed widget.
I thought to two ways to fix the problem:
1 on nsWidget::SetFocus return NS_ERROR_FAILURE if the mozarea is not visible
2 Add a set_focus callback to gtkmozembed with a gint return value so we can
decide to not let the focus to be set. (This unfortunately required also a
change in GlobalWindowImpl::Focus())
They both appear to fix the problem, but I'm not sure if they are correct.
In the case they are not can you please suggest a way to fix it ? I'm bored to
close duplicated of this bug :)
(Unlike in mozilla SetFocus doesnt work unless you have already clicked on the
embed one time, should I post a separate bug ?)
Reporter | ||
Comment 1•23 years ago
|
||
If you need a testcase please let me know.
Comment 2•22 years ago
|
||
Marco: has somebody fixed this?
Comment 3•22 years ago
|
||
Mpeseng, could you check and see if this problem still exists?
Reporter | ||
Comment 4•22 years ago
|
||
I cant reproduce it anymore but I'm using gtk2 toolkit, not sure if it makes a
difference
Comment 5•22 years ago
|
||
This page triggers the bug for me...
Comment 6•22 years ago
|
||
WFM - Mozilla 20030509.
Comment 7•22 years ago
|
||
as comment says
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Comment 8•22 years ago
|
||
I have both galeon and mozilla from yesterday trunk, gtk2 builds, and the
attached page is still consistently grabbing the focus.
Comment 9•21 years ago
|
||
This is definitely not fixed with galeon 1.3.10 and mozilla 1.5. Can somebody
reopen this please?
Comment 10•21 years ago
|
||
This is still an embedding problem. It isn't a problem in mozilla proper.
Reopening.
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
The cause of this bug are the toplevel focus in/out handlers. They're designed
for a 1:1 relationship between toplevels and embeds. When -- like in Epiphany
and Galeon -- there are more than one embed in the toplevel in a GtkNotebook,
we need to only activate the focus controller of the embed in the currently
active notebook page. We can do this by checking whether the embed is mapped:
widgets in non-active notebook pages are unmapped. Additionally, we need to
track toplevel focus and activate the focus controller when an embed is mapped:
this is the case that we switch to another notebook page without the toplevel
losing focus.
Comment on attachment 157717 [details] [diff] [review]
possible fix
This is still reproducible using epiphany with mozilla trunk from 20041026.
Also it's a potential security risk, since input destinated for the current tab
gets to the hidden background tab. Asking for r/sr.
Attachment #157717 -
Flags: superreview?(blizzard)
Attachment #157717 -
Flags: review?(marco)
Reporter | ||
Comment 13•20 years ago
|
||
Comment on attachment 157717 [details] [diff] [review]
possible fix
See bug 226708 for an explanation of the problems with focus controller
activation.
I dont think we need to check for the mapped state. The dom window on the other
tab should not be active anyway (see ChildFocusIn/Out). It's actually activated
on page loading, but that's a different, more generic issue.
Attachment #157717 -
Flags: review?(marco) → review-
Reporter | ||
Comment 14•20 years ago
|
||
Ultimately this looks like a bug of 210373 to me.
*** This bug has been marked as a duplicate of 210373 ***
Status: NEW → RESOLVED
Closed: 22 years ago → 20 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Attachment #157717 -
Flags: superreview?(blizzard)
Updated•13 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•