You are not logged in.

#2176 2014-07-02 19:57:34

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

Re: dwb - a webkit web browser

@sm4tik: That script does not work correctly if you open a new tab, you must change the selected useragent in the newly created tab. You could change some parts of the script:

//!javascript

var selectedua = "your default user agent"; 

...

// User agent selection for current tab
bind("Us", function() {
    util.tabComplete("Useragent:", uaSelection, function(ua) {
        selectedua = ua;
        setUA(ua, tabs.current);
    }, true);
}, "uaselect");
// User agent selection for all tabs
bind("US", function() {
    util.tabComplete("Useragent:", uaSelection, function(ua) {
        selectedua = ua;
        tabs.forEach(setUA.bind(null, ua));
    }, true);
}, "uaselectall");

Signal.connect("createTab", function(w) { w.settings.userAgent = selectedua; });

Offline

#2177 2014-07-11 22:38:22

qyn
Member
Registered: 2014-05-25
Posts: 1

Re: dwb - a webkit web browser

Excellent browser Portix, I've been using it for the past couple of months and aside from the few wgtk quirks it's been quite pleasant to use it. Keep up the good work!

Offline

#2178 2014-07-14 09:24:49

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

Re: dwb - a webkit web browser

Hey ! smile

I have a problem with flash videos, when I try to run Youtube videos for example, they will have blue and pink colors instead of the real ones.

Anyone else experimenting this behavior ?


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

#2179 2014-07-14 09:53:21

sekret
Member
Registered: 2013-07-22
Posts: 203

Re: dwb - a webkit web browser

Do you get the same with e.g. firefox? Sounds more like pure flash / graphics card driver issue to me.

Offline

#2180 2014-07-14 09:56:12

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

Re: dwb - a webkit web browser

Not at all, it only happens with dwb.


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

#2181 2014-07-14 10:03:08

o_caino
Member
Registered: 2013-06-06
Posts: 159

Re: dwb - a webkit web browser

Kolibry wrote:

Hey ! smile

I have a problem with flash videos, when I try to run Youtube videos for example, they will have blue and pink colors instead of the real ones.

Anyone else experimenting this behavior ?

I'm experiencing the same issue. I noticed it yesterday (I seldom watch youtube).

Offline

#2182 2014-07-14 11:32:46

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

Re: dwb - a webkit web browser


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#2183 2014-07-14 11:47:51

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

Re: dwb - a webkit web browser

Thanks Trilby, editing my mms.cfg to enable hardware acceleration solved it. That's really strange though, since I already did that months ago, so it seems the file has reset itself...


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

#2184 2014-07-14 11:53:45

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

Re: dwb - a webkit web browser

Is it the same as https://wiki.archlinux.org/index.php/Nv … with_Flash ?
That would mean it's not an nvidia-only issue, but if I'm reading it right, you fixed it by enabling hw accel, not by disabling it, right?

Offline

#2185 2014-07-14 11:59:17

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

Re: dwb - a webkit web browser

Karol, as mentioned in the post I linked (and a link therein) it is not just nvidia drivers, but can be others that use libvdpau (which is from nvidia).  This included the ATI gpu I had at the time of that linked thread, and also the intel I'm on now.

Last edited by Trilby (2014-07-14 11:59:55)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#2186 2014-07-14 13:10:18

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

Re: dwb - a webkit web browser

Trilby wrote:

Karol, as mentioned in the post I linked (and a link therein) it is not just nvidia drivers, but can be others that use libvdpau (which is from nvidia).  This included the ATI gpu I had at the time of that linked thread, and also the intel I'm on now.

Vaapi is to be used with intel.  Vdpau for nvidia, and I don't know what with ATI/AMD.  But if you're using intel, you want to use mplayer-vaapi, not mplayer (which works with nvidia).  And gst-vaapi, and gstreamer0.10-vaapi as well.

Last edited by nomorewindows (2014-07-14 13:11:13)


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

Offline

#2187 2014-07-14 14:05:41

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

Re: dwb - a webkit web browser

libvdpau is a dependency of intel-dri

edit: well strictly speaking it is a dependency of mesa, but that in-turn is a dependency of intel-dri, and that of xf86-video-intel.

Last edited by Trilby (2014-07-14 14:07:00)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#2188 2014-07-16 11:04:57

mr.MikyMaus
Member
From: +3600 UT
Registered: 2006-03-31
Posts: 270

Re: dwb - a webkit web browser

funny thing happenig to me: I must maximize the dwb window twice to get it maximized. No matter if I click the maximize button, use a wm shortcut or window menu - the "maximize" action has to be told twice to the dwb window in order to get it maximized for the first time. Consequent restores/maximizations work as expected. Using xfwm, so far dwb is the only one having this problem.


What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...

... and who is general Failure and why is he reading my harddisk?

Offline

#2189 2014-07-23 05:53:45

serdotlinecho
Member
Registered: 2013-01-26
Posts: 100

Re: dwb - a webkit web browser

Dwb keeps crashing when loading youtube html5. Here's the gstreamer plugins I've installed:

testing/gst-libav 1.4.0-1 [installed]
testing/gst-plugins-bad 1.4.0-1 [installed]
testing/gst-plugins-base 1.4.0-1 [installed]
testing/gst-plugins-base-libs 1.4.0-1 [installed]
testing/gst-plugins-good 1.4.0-1 [installed]
testing/gst-plugins-ugly 1.4.0-1 [installed]
testing/gstreamer 1.4.0-1 [installed]
extra/clutter-gst 2.0.12-1 [installed]

dwb and webkitgtk2 version:

dwb-git 2014.07.02.g6224470-1
webkitgtk2 2.4.4-1

How do I block html5 video from loading like flash click to play?

Offline

#2190 2014-07-23 11:06:30

kiiroitori
Member
Registered: 2013-11-06
Posts: 8

Re: dwb - a webkit web browser

Dwb is crashing when I play youtube videos, seems fine on dailymotion.

I run dwb-git 2014.07.02.g6224470-1 and this is what I get:

** (dwb:576): CRITICAL **: gchar* webkit_dom_element_get_tag_name(WebKitDOMElement*): assertion 'WEBKIT_DOM_IS_ELEMENT(self)' failed
Received SIGSEGV, trying to clean up.

Last 100 stack frames: 

100: dwb() [0x41307f]
 99: dwb() [0x4308af]
 98: /usr/lib/libc.so.6(+0x33df0) [0x7ff1ad877df0]
 *** 3 to 97 removed for clarity ****
  2: /usr/lib/libwebkitgtk-1.0.so.0(+0xc0324f) [0x7ff1b17ef24f]
  1: /usr/lib/libwebkitgtk-1.0.so.0(+0xc14f32) [0x7ff1b1800f32]
Segmentation fault

Offline

#2191 2014-07-23 22:23:02

dummyano
Member
Registered: 2014-02-14
Posts: 10

Re: dwb - a webkit web browser

kiiroitori wrote:

Dwb is crashing when I play youtube videos, seems fine on dailymotion.

I run dwb-git 2014.07.02.g6224470-1 and this is what I get:

** (dwb:576): CRITICAL **: gchar* webkit_dom_element_get_tag_name(WebKitDOMElement*): assertion 'WEBKIT_DOM_IS_ELEMENT(self)' failed

Same here. What I did, seeing that git version is from 07/02, I picked webkitgtk2 from arm from same date. Works for me.

http://seblu.net/a/arm/2014/07/02/extra … pkg.tar.xz

@Portix: dwb is absolutely awesome, using it daily and missing none of my firefox routine so far

Offline

#2192 2014-07-28 15:56:34

Vain
Member
Registered: 2008-10-19
Posts: 172
Website

Re: dwb - a webkit web browser

YouTube crashed lariza as well. Turns out, WebKit crashes because of YouTube's HTML 5 player. With flash, it's fine.

I haven't tried YouTube in dwb recently, but I thought I better let you guys know. smile It's very likely that you're affected by this, too. It does affect suckless' surf, after all.

(One way to "force" YouTube to use flash instead of HTML 5 is to use an "unknown" user agent string, i.e. a user agent which YouTube doesn't know about. Note that you get the HTML 5 player with WebKit's default user agent. surf's user agent works fine, i.e. it causes YouTube to use flash.)


(@karol below me: I don't have persistent cookie storage, so that's not an option. But, yeah, if you do have cookies, it might be easier to do it that way.)

Last edited by Vain (2014-07-28 16:23:31)

Offline

#2193 2014-07-28 16:11:41

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

Re: dwb - a webkit web browser

You should be able to disable thml5 here: https://www.youtube.com/html5

Offline

#2194 2014-07-28 17:20:01

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

Re: dwb - a webkit web browser

For me it crashes randomly eitherway, so I switched to autoquvi.

Offline

#2195 2014-07-28 17:22:32

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

Re: dwb - a webkit web browser

Anything interesting printed in the terminal?

Offline

#2196 2014-07-28 17:47:24

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

Re: dwb - a webkit web browser

I debuged it with gdb several weeks ago, and it was an segfault in libcairo (with html5), I don't know if anything changed in latest versions of dwb/webkitgtk.

EDIT: Still the same:

Name           : webkitgtk2
Version        : 2.4.4-1

This is : dwb-git
Version : commit 2014-07-02 6224470
Built : Jul 26 2014 08:43:38
Copyright : (C) 2010-2014 Stefan Bolte
License : GNU General Public License, version 3 or late
[Thread 0xac39cb40 (LWP 21790) exited]

(dwb:21715): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[New Thread 0xac39cb40 (LWP 21806)]
[Thread 0xac39cb40 (LWP 21806) exited]
[New Thread 0xac39cb40 (LWP 21807)]
[New Thread 0xaaefbb40 (LWP 21809)]
[Thread 0xaaefbb40 (LWP 21809) exited]
[New Thread 0xaaefbb40 (LWP 21811)]
[New Thread 0x9ff57b40 (LWP 21812)]
[New Thread 0x9f756b40 (LWP 21813)]
[New Thread 0x9edffb40 (LWP 21814)]
[New Thread 0x9e5feb40 (LWP 21815)]
[New Thread 0x9ddb7b40 (LWP 21816)]
[New Thread 0x9d5b6b40 (LWP 21817)]
[New Thread 0x9c4ffb40 (LWP 21818)]
[New Thread 0x9b4feb40 (LWP 21819)]
[New Thread 0x9acfdb40 (LWP 21821)]
[Thread 0x9b4feb40 (LWP 21819) exited]
[Thread 0x9acfdb40 (LWP 21821) exited]

Program received signal SIGSEGV, Segmentation fault.
0xb5a633c0 in ?? () from /usr/lib/libcairo.so.2

Last edited by Asmir (2014-07-28 17:52:53)

Offline

#2197 2014-07-29 01:06:51

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

Re: dwb - a webkit web browser

@Portix,

Would you be willing to add a command line parameter to set dwb's main window X resource name or class as discussed here?


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#2198 2014-07-29 17:27:23

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

Re: dwb - a webkit web browser

portix, I found out that xombrero (a webkit-based browser) can keep the visited links colored by keeping a history that persists between sessions.
It also doesn't have a problem with anchors in links. dwb can't reliably open a link in a new tab, if it contains '#', like e.g. links to specific posts on this forum.

I have absolutely no idea if you can port these features to dwb and if you're interested in doing so at all. I've opened a thread about making dwb better, but we haven't got very far.
https://bbs.archlinux.org/viewtopic.php … 0#p1440160

Offline

#2199 2014-07-29 20:23:17

harrib0
Member
Registered: 2014-07-29
Posts: 1

Re: dwb - a webkit web browser

Hi,
how to have a script that opens in a new tab the active selection?
I failed to execute this kind of line

 tabopen eval util.getSelection()

Do you have any idea?
thanks

EDIT:
I made that in: script.js

#!javascript

bind("ee", function() {
  execute("tabopen " + "http://dictionnaire.reverso.net/anglais-francais/" + util.getSelection());
});

I don't know if it perfect but, that works

Last edited by harrib0 (2014-07-29 23:09:19)

Offline

#2200 2014-08-03 20:33:19

Winged4Ever
Member
Registered: 2013-11-09
Posts: 35

Re: dwb - a webkit web browser

Another problem - When I try to open a website on dwb which uses Flash Player, the browser crashes. I noticed that when I run it with 'sudo', it works fine (but it is not too safe I presume, so that's why this is a problem).

Log from dwb after the crash:

(dwb:2581): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(dwb:2581): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
EE r600_pipe.c:176 r600_create_context - Unsupported chip class 2.
EE r600_pipe.c:176 r600_create_context - Unsupported chip class 2.
Received SIGSEGV, trying to clean up.

Last 17 stack frames: 

 17: dwb() [0x8054f70]
 16: dwb() [0x806f100]
 15: linux-gate.so.1(__kernel_sigreturn+0) [0xb7762b08]
 14: /usr/lib/vdpau/libvdpau_r600.so.1(+0x83bb9) [0xa21a5bb9]
 13: /usr/lib/vdpau/libvdpau_r600.so.1(+0x1fb48) [0xa2141b48]
 12: /usr/lib/vdpau/libvdpau_r600.so.1(+0x16f80) [0xa2138f80]
 11: /usr/lib/vdpau/libvdpau_r600.so.1(vdp_imp_device_create_x11+0xf7) [0xa2285ab7]
 10: /usr/lib/libvdpau.so(vdp_device_create_x11+0x50) [0xa24c05f0]
  9: /usr/lib/mozilla/plugins/libflashplayer.so(+0x57c6b8) [0xace6f6b8]
  8: /usr/lib/mozilla/plugins/libflashplayer.so(+0x57d0ef) [0xace700ef]
  7: /usr/lib/mozilla/plugins/libflashplayer.so(+0x5c993d) [0xacebc93d]
  6: /usr/lib/mozilla/plugins/libflashplayer.so(+0x15b1bc) [0xaca4e1bc]
  5: /usr/lib/mozilla/plugins/libflashplayer.so(+0x15cde7) [0xaca4fde7]
  4: /usr/lib/mozilla/plugins/libflashplayer.so(+0x15e189) [0xaca51189]
  3: /usr/lib/mozilla/plugins/libflashplayer.so(+0x53363d) [0xace2663d]
  2: /usr/lib/mozilla/plugins/libflashplayer.so(+0x533c61) [0xace26c61]
  1: /usr/lib/libgtk-x11-2.0.so.0(+0x120ecc) [0xb54f5ecc]
Segmentation fault

Last edited by Winged4Ever (2014-08-03 20:41:05)


|| Kernel: 4.0.4-2-ARCH || Architecture: i686 || WM: ratpoison || DE: none ||

“A man goes to knowledge as he goes to war: wide-awake, with fear, with respect, and with absolute assurance. Going to knowledge or going to war in any other manner is a mistake, and whoever makes it might never live to regret it”
---Don Juan

Offline

Board footer

Powered by FluxBB