You are not logged in.

#2026 2014-03-18 06:39:21

sw2wolf
Member
From: China
Registered: 2009-06-08
Posts: 99
Website

Re: dwb - a webkit web browser

(dwb:1497): GLib-GObject-WARNING **: invalid cast from `(null)' to `GtkLabel'
(dwb:1497): Gtk-CRITICAL **: gtk_label_set_markup: assertion `GTK_IS_LABEL (label)' failed
...

However, dwb still works normally !


e^(π⋅i) + 1 = 0

Offline

#2027 2014-03-24 21:59:21

root
Member
From: 127.0.0.1
Registered: 2012-04-13
Posts: 297

Re: dwb - a webkit web browser

I have been trying to backtrace some crashes I am getting and during one of those tests I disabled the flashplugin in 'Plugins'.

Now dwb does not allow me to enable it again :-?

If I check the box it appears checked but immediately dwb 'refreshes' the plugins section and it is unchecked again.

There is a dwb flash player thread in the NB forum but as i do not mean to hijack it (in case my problem is not related) I chose to post in the main thread.

The problem appears both using the shortcut and from the command line. The latter does not report anything that could hint me into the right direction or provide some additional information with regard to the source of the problem.

I am using the dwb version from the repositories.

Thanks in advance for any hint to solve this.


\(o_X)/
                        'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols

Offline

#2028 2014-03-24 22:24:36

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 939
Website

Re: dwb - a webkit web browser

What I normally do is close dwb (killall dwb).  Then edit the settings file and manually change value, then save n quit.  Start dwb again and check the change.


github       bible       blog

Offline

#2029 2014-03-24 22:31:50

root
Member
From: 127.0.0.1
Registered: 2012-04-13
Posts: 297

Re: dwb - a webkit web browser

@frank604

You refer to the .config/dwb/settings file?

I checked it and there the value of 'enable-plugins' is set to 'true'. Or is it a different value you are adressing?


\(o_X)/
                        'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols

Offline

#2030 2014-03-24 23:18:55

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

root wrote:

I have been trying to backtrace some crashes I am getting and during one of those tests I disabled the flashplugin in 'Plugins'.

Now dwb does not allow me to enable it again :-?

Yeah, that's a bug in the last release which is fixed in git. You can enable it
manually again by removing the lines containing libflashplayer.so from
~/.config/dwb/default/plugindb.

Edit: Or to enable all plugins you can simply remove ~/.config/dwb/default/plugindb.

Last edited by portix (2014-03-24 23:21:56)

Offline

#2031 2014-03-25 10:54:40

fred777
Member
Registered: 2014-03-25
Posts: 5

Re: dwb - a webkit web browser

After using Firefox+VimFX and Chromium+ViChrome for a while, I discovered dwb and I'd love to use it.

But.... I need some help getting dwb to work with my proxy (connection timeout).

http_proxy env var is set globally / system-wide and tools like git, curl, firefox, pacman work as expected, but dwb is unable to connect to http sites. (https works, but there's no proxy needed for https)

I configured the proxy setting to the same proxy uri than http_proxy env var - didn't help.

Proxy is enabled in dwb of course. I double-checked via hitting Ctrl-p

Also, dwbem is unable to list / download extensions (connection timeout). setting proxy via --proxy does not help

How can I track this down?

My proxy does not require any username / password and it is accessed via port 80, so my http_proxy env var looks like "http://myproxy.mydomain.org:80"

Last edited by fred777 (2014-03-25 10:56:41)

Offline

#2032 2014-03-25 13:11:51

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,961

Re: dwb - a webkit web browser

fred777 wrote:

After using Firefox+VimFX and Chromium+ViChrome for a while, I discovered dwb and I'd love to use it.

But.... I need some help getting dwb to work with my proxy (connection timeout).

http_proxy env var is set globally / system-wide and tools like git, curl, firefox, pacman work as expected, but dwb is unable to connect to http sites. (https works, but there's no proxy needed for https)

I configured the proxy setting to the same proxy uri than http_proxy env var - didn't help.

Proxy is enabled in dwb of course. I double-checked via hitting Ctrl-p

Also, dwbem is unable to list / download extensions (connection timeout). setting proxy via --proxy does not help

How can I track this down?

My proxy does not require any username / password and it is accessed via port 80, so my http_proxy env var looks like "http://myproxy.mydomain.org:80"

It can also be set by Ss, and there is a proxy line and a use proxy checkbox.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#2033 2014-03-25 13:42:04

fred777
Member
Registered: 2014-03-25
Posts: 5

Re: dwb - a webkit web browser

Maybe I was not clear enough, but with "I configured the proxy setting to the same proxy uri than http_proxy env var - didn't help." I meant that I configured the proxy setting explicitely via Ss - without success.

To sum it up:

1.) proxy setting via http_proxy env var does not work
2.) proxy setting via Ss settings window does not work

The same applies to dwbem with http_proxy env var and --proxy command line switch respectively.

Offline

#2034 2014-03-25 14:36:08

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 293

Re: dwb - a webkit web browser

fred777, just try removing http:// from your proxy setting in dwb.

Offline

#2035 2014-03-25 14:44:31

fred777
Member
Registered: 2014-03-25
Posts: 5

Re: dwb - a webkit web browser

already tried that, didn't work.

also tried adding / at the end - i.e. http://myproxy.mydomain:80/ - didn't work.

also tried unsetting http_proxy env var and solely setting proxy via Ss settings - didn't work.


As stated before, all other apps like curl, firefox, etc. work as expected with http_proxy env var.

Last edited by fred777 (2014-03-25 14:49:02)

Offline

#2036 2014-03-25 16:28:28

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,961

Re: dwb - a webkit web browser

Are you sure you want to be using port 80 for proxy?  Don't you mean something like 8080?  What proxy are you using?


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#2037 2014-03-25 16:42:04

fred777
Member
Registered: 2014-03-25
Posts: 5

Re: dwb - a webkit web browser

Yes - I definitely want port 80. To be more precise: our IT admin want's it like that. There is no way for me to change that and there is no other way to access the internet except via https, which is not fed through the proxy.

Last edited by fred777 (2014-03-25 16:42:54)

Offline

#2038 2014-03-25 17:57:48

root
Member
From: 127.0.0.1
Registered: 2012-04-13
Posts: 297

Re: dwb - a webkit web browser

@portix

All back to normal. Thanks. Looking forward for the fixed version to hit the repositories in case I encounter any further bugs that are already fixed in the git one.

@fred777

Did you try using the proxy IP instead of the domain name? Not sure if it would make such a difference but I guess it is worth a try.


\(o_X)/
                        'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols

Offline

#2039 2014-03-26 09:00:33

fred777
Member
Registered: 2014-03-25
Posts: 5

Re: dwb - a webkit web browser

IP doesn't work either...

edit: I cloned the source code of dwb and finally got dwbem to work. The problem is: I only have http_proxy env var configured, not https_proxy because for https, no proxy is required. But dwbem does not differ between http proxy and https proxy, so http_proxy will be in place of https_proxy if https_proxy env var is unset. If https_proxy env var is set to an empty string, dwbem works.


Regarding dwb - according to soup.c/dwp_soup_init_proxy , http_proxy env var seems to be preferred over dwb proxy-uri setting. But this insight didn't help me, dwb is still unable to access http sites. To me it seems to be an issue with libsoup...

Another finding is, that because dwb does not parse the https_proxy env var, https sites cannot be accessed properly unless use_proxy is disabled.


edit2:

I finally played around with dwb source code and found the cause: inserting a printf for soup_uri_to_string into dwb_soup_init revealed that libsoup is stripping port 80 from the uri...

Shame on libsoup. Portix is not to be blamed on this smile


And there seems to be a fix in libsoup git: https://git.gnome.org/browse/libsoup/co … e0ef030d53

Well - the stripped-off port 80 is not the real cause for the problem, but it pointed me to the real cause: a bug in libsoup

Bottom line: Installing libsoup-git makes dwb work for me.

Last edited by fred777 (2014-03-26 10:05:55)

Offline

#2040 2014-03-26 15:18:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: dwb - a webkit web browser

Is it just me, or do the links to the packages from the first post https://bbs.archlinux.org/viewtopic.php … 94#p745694 don't work anymore? https://aur.archlinux.org/packages/?O=0&K=dwb
We have dwb in the repos now too.

Also, dwb uses git now, not hg.
There's no libwebkit package, dwb depends on webkitgtk2, I'm not sure if this is an important distinction.

Offline

#2041 2014-03-28 00:15:42

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,961

Re: dwb - a webkit web browser

Flash seems to be causing dwb-git to crash.  I was a poet and you didn't know it.

Last edited by nomorewindows (2014-03-28 00:16:05)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#2042 2014-03-28 06:47:20

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: dwb - a webkit web browser

I don't have git version and dwb also sometimes crashes on flash content.

Last edited by Kolibry (2014-03-28 06:47:45)


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#2043 2014-03-28 10:54:22

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

Flash isn't very stable in webkitgtk, there is nothing i can do about it, the few sites where i need flash i use quvi.

Offline

#2044 2014-03-28 11:00:28

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: dwb - a webkit web browser

Yes, the problem is flash itself, I just have to work on a workaround (right click "open with mpv" for example should be possible, will look into it)

Thanks for dwb ! smile

Last edited by Kolibry (2014-03-28 15:09:31)


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#2045 2014-03-28 11:29:53

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

Kolibry wrote:

Yes, the problem is flash itself, I just have to work on a workaround (right click "open with mpv" for example shoul be possible, will look into it)

Thanks for dwb ! smile

For youtube you could try

//!javascript

var regex = new RegExp("^https?" + RegExp.escape("://www.youtube.com/"));

function onContextMenu(uri, w, menu) {
    menu.addItems([ {
        label : "Open with mpv", 
        callback : function() {
            system.spawn("mpv " + uri);
        }
    } ]);
    this.disconnect();
}

var sigMenu = Signal("contextMenu");

Signal.connect("buttonPress", function(w, result, e) {
    if (e.button == 3) { 
        if ((result.context & 1<<2) && result.linkUri.search(regex) != -1) {
            sigMenu.connect(onContextMenu.bind(sigMenu, result.linkUri));
        }
        else if (tabs.current.uri.search(regex) != -1) {
            sigMenu.connect(onContextMenu.bind(sigMenu, tabs.current.uri));
        }
    }
});

Maybe the regular expression could be tweaked, e.g. if you want to use mpv for other video sites that are supported by libquvi.

Edit:
btw, i use the following script:

//!javascript

hint(";v", function(wv, resource) {
    if (resource[0] !== "@") {
        system.spawn("mpv " + resource);
        return true;
    }
});

which creates hints and calls mpv with the selected link, it doesn't test if the link is supported by libquvi, but i don't care because mpv will simply fail to play the video then.

Last edited by portix (2014-03-28 11:40:51)

Offline

#2046 2014-03-28 13:13:38

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: dwb - a webkit web browser

You're really nice, thanks !

I tried the option for mplayer which is in dwb Arch wiki but nothing happened, your solution works so well, it deserves to be included in that wiki page smile

Thanks again for sharing your software smile


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#2047 2014-03-28 13:39:18

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

Kolibry wrote:

You're really nice, thanks !

I tried the option for mplayer which is in dwb Arch wiki but nothing happened, your solution works so well, it deserves to be included in that wiki page smile

Thanks again for sharing your software smile

mplayer has no libquvi support, you can use quvi instead if you want to use mplayer, for the first script it would be

system.spawn("quvi dump -s best --exec 'mplayer %u' " + uri); 

and for the second script

system.spawn("quvi dump -s best --exec 'mplayer %u' " + resource); 

Offline

#2048 2014-03-28 20:05:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: dwb - a webkit web browser

nomorewindows wrote:

Flash seems to be causing dwb-git to crash.  I was a poet and you didn't know it.

I'm using dwb-git and flash usually works for me.

Offline

#2049 2014-03-28 20:33:26

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,961

Re: dwb - a webkit web browser

karol wrote:
nomorewindows wrote:

Flash seems to be causing dwb-git to crash.  I was a poet and you didn't know it.

I'm using dwb-git and flash usually works for me.

Are you using any extensions?  When I click on click to enable flash it bombs.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#2050 2014-03-28 20:38:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: dwb - a webkit web browser

nomorewindows wrote:

Are you using any extensions?

Yup:

$ dwbem -a
==> Syncing with https://bitbucket.org/portix/dwb_extensions
==> Available extensions:
i  - adblock_subscriptions
i  - autoquvi
   - contenthandler
   - cookies
i  - downloadhandler
i  - formfiller
   - googlebookmarks
   - googledocs
   - grabscrolling
   - multimarks
i  - navtools
i  - perdomainsettings
   - pwdhash
   - refcontrol
   - requestpolicy
i  - simplyread
   - speeddial
   - supergenpass
   - unique_tabs
   - userscripts
i  - whitelistshortcuts

Can anyone test if they're having an issue with 'cookies' extension?

$ dwbem -I cookies
!!! Extension cookies not found

$ ls /usr/share/dwb/extensions/cookies 
-rw-r--r-- 1 17K Mar 26 13:39 /usr/share/dwb/extensions/cookies

Offline

Board footer

Powered by FluxBB