After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 118924 - javascript window.focus() doesn't work
javascript window.focus() doesn't work
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: [obsolete] Backend:Mozilla
unspecified
Other Linux
: Normal normal
: Future
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 171089 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-08-02 09:28 UTC by oa
Modified: 2012-10-20 16:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description oa 2003-08-02 09:28:01 UTC
window.focus() is commonly used in the BODY ONLOAD action of
javascript-opened popup windows (when trying to re-use a window that was
opened earlier), because it brings the window to front in case it has been
buried under other windows. This is commonly used for showing additional
info  for something or asking for verification, while keeping the original
page open in the main browser.

Ephy blocks window.focus(), so such popup windows, if they were open
already, stay where they are under other windows even though the content in
them is reloaded. Thus the user never gets to notice this, unless they pay
attention to their window list and realize that they should check the other
window too.
Comment 1 oa 2003-08-02 11:27:45 UTC
an example site: http://www.garmin.com/products/iQue3600/# clicking on
the links in the features list brings up small pictures in a popup
window. Click on two, the same window will be used. Mozilla raises the
window on top, Ephy leaves it behind the main window.
Comment 2 Marco Pesenti Gritti 2003-08-02 12:43:43 UTC
I want at least to look at it before 1.0
Comment 3 Marco Pesenti Gritti 2003-08-02 15:48:12 UTC
It seems to work correctly now, so I reenabled it.
Comment 4 Marco Pesenti Gritti 2003-08-02 16:03:10 UTC
Bah, hard to repro but still there
Comment 5 spark 2004-02-07 22:57:16 UTC
Target: 1.2 -> 1.4
Comment 6 Christian Persch 2004-10-13 10:55:58 UTC
Mass reassigning of Epiphany bugs to epiphany-maint@b.g.o
Comment 7 Christian Persch 2005-02-27 13:43:50 UTC
Target Milestone: 1.6 -> 1.8
Comment 8 Christian Persch 2005-08-17 18:43:24 UTC
*** Bug 171089 has been marked as a duplicate of this bug. ***
Comment 9 oa 2005-08-28 15:58:55 UTC
Seems that my original example site has changed behaviour, and each info page
opens in a new popup window. Bug 171089 uses Scarab's help windows as an
example; this still exhibits the behaviour I meant.
http://argouml.tigris.org/issues/show_bug.cgi?id=2766
Comment 10 Javier Jardón (IRC: jjardon) 2009-08-12 21:48:43 UTC
You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you.

Can you please check again if the issue you reported here still happens in a recent version and update this report by adding a comment and adjusting the 'Version' field?

Again thank you for reporting this and sorry that it could not be fixed for the version you originally used here.

Without feedback this report will be closed as INCOMPLETE after 6 weeks.
Comment 11 oa 2009-08-15 13:00:47 UTC
I'm still seeing the same behaviour on http://argouml.tigris.org/issues/show_bug.cgi?id=2766 (left side navigation FAQ/help links) with epiphany-2.26.3-3.fc11.x86_64. However, I'm also seeing it with firefox-3.5.2-2.fc11.x86_64 now, so I suppose it could also be metacity blocking the popup window from rising in the stack since I just clicked in the parent window and metacity would interpret that as the primary activity..

Whatever the underlying reason, it does mean that the window which I SHOULD be seeing (since it's the one with updated content) is hidden somewhere beneath others. The only thing I am seeing is that the taskbar highlights the window.
Comment 12 Gustavo Noronha (kov) 2009-08-21 22:26:17 UTC
We apparently have a different problem in WebKitGTK+ - instead of reusing the window, the links open new windows.
Comment 13 Tobias Endrigkeit 2012-10-20 16:00:47 UTC
Thanks for taking the time to report this bug.
However, you are using a version that is too old and not supported anymore. GNOME developers are no longer working on that version, so unfortunately there will not be any bug fixes for the version that you use.

By upgrading to a newer version of GNOME you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of GNOME.
Please feel free to reopen this bug if the problem still occurs with a newer version of GNOME.