GNOME Bugzilla – Bug 118924
javascript window.focus() doesn't work
Last modified: 2012-10-20 16:00:47 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.
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.
I want at least to look at it before 1.0
It seems to work correctly now, so I reenabled it.
Bah, hard to repro but still there
Target: 1.2 -> 1.4
Mass reassigning of Epiphany bugs to epiphany-maint@b.g.o
Target Milestone: 1.6 -> 1.8
*** Bug 171089 has been marked as a duplicate of this bug. ***
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
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.
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.
We apparently have a different problem in WebKitGTK+ - instead of reusing the window, the links open new windows.
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.