GNOME Bugzilla – Bug 139124
set home page to current page dialog gets wrong page
Last modified: 2004-12-22 21:47:04 UTC
1. Open a new window, open a new tab within that window, go to a page (page A) 2. Open a new window, open a new tab within that window, go to a page (page B) 3. Menu->Edit->Preferences->General 4. Click "Set to Current Page" Actual: Address is set to page A (the current page in the inactive window) Expected: Address is set to page B (the current page in the active window)
Happens with 1.2.x too. Fixing this would involve making ephy_session_get_active_window() really do that, by having the session track the active window (focus in/out events).
Created attachment 26353 [details] [review] proposed fix The patch uses the focus-in-event on EphyWindow:s to keep track of the active window. I've also implemented a ::active-window property for EphySession, so that extensions have easy access to focus changes (iirc the dashboard extension wanted to do something like that). Marco, can you review?
Created attachment 26366 [details] [review] alternative fix
Fixed on HEAD and gnome-2-6 branch.