[dev] [surf] Bug: _SURF_URI and _SURF_GO sometimes won't update

From: Suleiman Sulo <suleiman.sulo_AT_gmx.net>
Date: Mon, 25 Feb 2019 20:24:08 +0100

Hi,
 
I am a gentoo user and have some problems getting bookmarks stored.
This is not a patch/script problem and I can show you how to produce this bug.
 
I open google.de and search for any thing. Then I use the mouse to click on the link to open the link.
After this procedure the _SURF_URI variable is still a google related address.
 
For example, when I search with google for gentoo forums and then click on the link with the mouse the site opens, but _SURF_URI won't update.
Here the oputput with xprop ...
 
_SURF_GO(STRING) = "google.de"
_NET_WM_USER_TIME(CARDINAL) = 11559044
_NET_WM_ICON_GEOMETRY(CARDINAL) = 2981, 394, 150, 30
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_FRAME_EXTENTS(CARDINAL) = 3, 3, 3, 3
_NET_WM_STATE(ATOM) =
_NET_WM_DESKTOP(CARDINAL) = 0
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
                window id # of group leader: 0x1e00001
_SURF_URI(STRING) = "https://www.google.de/search?source=hp&ei=Ejp0XPyJHMPhmwXm5qTgCA&q=forums+gentoo&btnK=Google-Suche&oq=forums+gentoo&gs_l=psy-ab.3..0i19j0i30i19.5406.15090..15231...5.0..0.127.1677.18j1......0....1..gws-wiz.....0..0i131j0j0i10j0i22i30i19.ei4coFdD5DA[https://deref-gmx.net/mail/client/OrTqC1saa0U/dereferrer/?redirectUrl=https%3A%2F%2Fwww.google.de%2Fsearch%3Fsource%3Dhp%26ei%3DEjp0XPyJHMPhmwXm5qTgCA%26q%3Dforums%2Bgentoo%26btnK%3DGoogle-Suche%26oq%3Dforums%2Bgentoo%26gs_l%3Dpsy-ab.3..0i19j0i30i19.5406.15090..15231...5.0..0.127.1677.18j1......0....1..gws-wiz.....0..0i131j0j0i10j0i22i30i19.ei4coFdD5DA]"
_SURF_FIND(STRING) = ""
_GTK_THEME_VARIANT(UTF8_STRING) =
XdndAware(ATOM) = BITMAP
_NET_WM_OPAQUE_REGION(CARDINAL) = 7, 0, 1692, 7, 0, 7, 1706, 1383
WM_WINDOW_ROLE(STRING) = "Surf[1]"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 31457285, 31457286
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1e00004
WM_CLIENT_LEADER(WINDOW): window id # 0x1e00001
_NET_WM_PID(CARDINAL) = 13918
WM_LOCALE_NAME(STRING) = "de_DE.utf8"
WM_CLIENT_MACHINE(STRING) = "mypc"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                program specified minimum size: 0 by 0
                program specified base size: 0 by 0
                window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "surf", "Surf"
WM_ICON_NAME(STRING) = "_AT_cgDISVMf:T | Gentoo Forums :: Index"
_NET_WM_ICON_NAME(UTF8_STRING) = "_AT_cgDISVMf:T | Gentoo Forums :: Index"
WM_NAME(STRING) = "_AT_cgDISVMf:T | Gentoo Forums :: Index"
_NET_WM_NAME(UTF8_STRING) = "_AT_cgDISVMf:T | Gentoo Forums :: Index"
 
 
As you can see the WM_ICON_NAME is "Gentoo Forums :: Index" but the _SURF_URI and _SURF_GO are still from google.
This problem I can reproduce with any site, it doesn't have to be a gentoo related site.
I haven't tested much but it seems to be related with google.
I also can use the keyboard to surf sites, this bug will still occure when searching for  a website with google.
 
I reconized the problem when adding bookmarks, and instead I always store the google search string.
This happen to me with two different computers.
 
Here is the surf version I have installed ...
www-client/surf-2.0:0
net-libs/webkit-gtk-2.22.6:4/37
 
I tried several scripts and patches to fix this, but none of them worked.
BTW.  when using ctrl+y surf stores the correct address in clipboard but _SURF_URI and _SURF_GO still won't update.
 
Hope you can help me get bookmarks stored with the expected address.
 
 
Received on Mon Feb 25 2019 - 20:24:08 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 25 2019 - 20:36:08 CET