You are not logged in.

#1501 2013-03-13 23:09:32

fliang
Member
Registered: 2013-03-13
Posts: 3

Re: dwb - a webkit web browser

portix wrote:

There is no way to work around it if it's a bug in webkitgtk. I don't think requesting this feature makes sense as archlinux only provides the stable packages. You could try webkitgtk2-svn from AUR, the package version is 20130113 but that doesn't mean that you build that version, makepkg will always grab the last commit.


I'm getting

$ dwb
dwb: error while loading shared libraries: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory

I think the webkitgtk2-svn package isn't actually installing libwebkitgtk (it's already bugged and cd'ing in to "trunk" when it should cd into "webkit"). Is there any way for me to check?

Last edited by fliang (2013-03-13 23:10:27)

Offline

#1502 2013-03-14 08:55:45

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: dwb - a webkit web browser

fliang wrote:

I'm getting

$ dwb
dwb: error while loading shared libraries: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory

That means you have to compile dwb again, so it links against the right version of libwebkitgtk.

Offline

#1503 2013-03-14 19:36:22

naphelge
Member
Registered: 2013-03-13
Posts: 15

Re: dwb - a webkit web browser

Ok well I just removed the deb on my laptop and installed from source and key-seqs seem to be working as expected. Yanking direct to clipboard is even better than I am used to!

So I do not know what is up with my PC but I will re-make the source when I get home and see if that helps.

cheers again.

portix wrote:

@naphelge: here is a version that also shows the source:

Hey portix,

Wow! Appreciate the ears. I originially had the .deb installed from Debian package page, but since installed from source.

The sh command works great. A new tab is opened with the source code of selected text on a web page. Unfortunately for me, the ys key-seq does nothing more than copy the plain text of a text selection to the clipboard. That the html source tags are not included as they are using the sh key-seq.

Any ideas what I might be doing wrong? I also use parcellite, but that has never been a problem for me with any other app that access the clipboards and actually I think I have parcellite setup to sync clipboards in my xubu setup.

cheers and I still have yet to find anything I am unhappy with. This is definitely an app written by someone who knows how to surf. Although I prefer Zathura, I was surprised and impressed with inline PDF viewing capability as well. Config file layout is clean, self explanatory and straightforward. Just an awesome job. Its been awhile, a long time since I have been so impressed with a new app.

Last edited by naphelge (2013-03-15 07:27:33)

Offline

#1504 2013-03-15 21:45:23

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 747

Re: dwb - a webkit web browser

Hi,
I'm experiencing some strange artifacts in dwb: https://www.dropbox.com/s/0gydtzcww1grr … 7%3A50.png
Using dwb from [community], version 2012.12.03-1. I'd post my config but I think it's more like webkit's fault. Any ideas?
Thanks

Offline

#1505 2013-03-15 21:48:48

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: dwb - a webkit web browser

@Iahwaacz, what kind of video card do you have and what are the settings you have for it?  I had something similar some time ago and it was related to the update (at the time) of the intel graphics stack.  Though this has long since been resolved...

Offline

#1506 2013-03-15 21:50:38

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: dwb - a webkit web browser

You probably have composite extension disabled.

Offline

#1507 2013-03-15 22:00:11

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 747

Re: dwb - a webkit web browser

WonderWoofy wrote:

@Iahwaacz, what kind of video card do you have and what are the settings you have for it?  I had something similar some time ago and it was related to the update (at the time) of the intel graphics stack.  Though this has long since been resolved...

I have old ati radeon, and don't think it's due to some update - it appeared some time ago, I haven't used dwb recently...

Šaran wrote:

You probably have composite extension disabled.

Yes, I have composite extension disabled, will try to enable it. But is that relevant? Isn't there some way to better configure webkit (even at compile time)?

Offline

#1508 2013-03-15 22:23:21

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 747

Re: dwb - a webkit web browser

Enabling composite extension fixed it, thanks. But I'm still interested in options to make webkitgtk2 work without composite extension, it doesn't seem unnecessary.

Offline

#1509 2013-03-17 21:00:42

toerb
Member
Registered: 2013-02-07
Posts: 3

Re: dwb - a webkit web browser

Hey,

again I love this browser but i mentioned some memory inefficiency the last days.
First: After running about 3 weeks, dwb ist almost at 70% of my 4GB RAM
Second: I just watched the Tatort on TV and when I got back to my PC it was hardly swapping. dwb got from about 15% to 3GB of RAM and 2GB of SWAP. In about 90 minutes

I use the community/dwb 2012.12.03-1 package of dwb.

Is the memory efficiency better with the latest hg versions?

toerb

Offline

#1510 2013-03-17 21:02:09

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: dwb - a webkit web browser

toerb wrote:

Hey,

again I love this browser but i mentioned some memory inefficiency the last days.
First: After running about 3 weeks, dwb ist almost at 70% of my 4GB RAM
Second: I just watched the Tatort on TV and when I got back to my PC it was hardly swapping. dwb got from about 15% to 3GB of RAM and 2GB of SWAP. In about 90 minutes

I use the community/dwb 2012.12.03-1 package of dwb.

Is the memory efficiency better with the latest hg versions?

toerb

It is not very hard to try it an see.  It is such a small program that it compiles in mere seconds.

Offline

#1511 2013-03-17 21:16:22

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

Re: dwb - a webkit web browser

That sounds like a memory leak in some javascript on a site in one of your open tabs. If you just leave dwb open without browsing dwb will hardly allocate memory itself. You could try to disable javascript in a new instance (with the same tabs open) and leave that instance alone and see if it still uses that much memory.

Offline

#1512 2013-03-19 10:14:56

ignorant
Member
Registered: 2012-06-09
Posts: 50

Re: dwb - a webkit web browser

Thank you for this amazing browser. Love it.

Offline

#1513 2013-03-19 13:23:12

ignorant
Member
Registered: 2012-06-09
Posts: 50

Re: dwb - a webkit web browser

Some questions:

Is there any kind of "select" or "visual" mode for selecting and copying/yanking text on a web page?
Is there any way to switch into "vi mode" for text entry and text areas?
Is there any way to make the webkit inspector highlight elements when they are selected (similar to how chromium does it)?
Is there a way to make any element with an `onclick` event follow-able? For example: Reddit's upvote and downvote buttons don't show up under `follow` right now, because they are just `<div>` with an `onclick` event.

Thanks again for a great browser.

Last edited by ignorant (2013-03-19 14:27:20)

Offline

#1514 2013-03-19 18:32:29

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: dwb - a webkit web browser

portix, dwb crashes here after installing the latest hg snapshot "upgraded dwb-hg (1904-1 -> 1913-1)". This is caused by my entries in ~/.config/dwb/userscripts. I see that you changed the api, that's the reason. So I reinstalled all extensions I use with dwbem -i, but dwb still crashes. So I was wondering, if this is caused by a bug. Since I'm not sure, I thought I'll post it here first, if necessary I'll file a bug report.

Here's dwb's output

$ dwb
Received SIGSEGV, trying to clean up.
Last 12 stack frames: 
 12: dwb() [0x40f210]
 11: dwb() [0x428265]
 10: /usr/lib/libpthread.so.0(+0xf1e0) [0x7f9429c701e0]
  9: /usr/lib/libjavascriptcoregtk-1.0.so.0(JSObjectGetProperty+0xf9) [0x7f942a57f319]
  8: dwb() [0x4135b9]
  7: dwb() [0x42041a]
  6: dwb() [0x4177c6]
  5: dwb() [0x417d71]
  4: /usr/lib/libgio-2.0.so.0(g_application_run+0x128) [0x7f942adf3558]
  3: dwb() [0x41803d]
  2: /usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7f94298d5a15]
  1: dwb() [0x40f2d9]
Segmentation fault (core dumped)

edit: Downgrading fixes the problem, so it's ok for the moment.

Last edited by Army (2013-03-19 18:33:05)

Offline

#1515 2013-03-19 19:03:47

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

Re: dwb - a webkit web browser

I have stripped the commit that caused the segfault from the repository, if you update again you should grab revision 1911.

Offline

#1516 2013-03-19 21:47:55

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

Re: dwb - a webkit web browser

The segmentation fault is now fixed. For those who want to write userscripts, the scripting-api has changed in the last weeks, for compatability the old api will still work for a few months, dwb will just print a deprecation warning to stdout. There is also a new api documentation online which can be found under http://portix.bitbucket.org/dwb/api/.

Offline

#1517 2013-03-19 22:05:35

andmars
Member
Registered: 2012-03-13
Posts: 362

Re: dwb - a webkit web browser

hello, there are currently 2 pages that are not working for me in dwb.

http://www.bahn.de
I can perform a search and enter where I want to go to but when I hit the search button (suchen) nothing happens.

http://adf.ly/PRIVOXY-FORCE/KrR26
dwb in combination with privoxy I try to download a texture pack for minecraft from planetminecraft.com The ad is blocked by privoxy and hitting the "skip ad" button has no effect either.

here are my current dwb settings;
http://pastebin.com/X9QTXJyK

Last edited by andmars (2013-03-19 22:06:33)

Offline

#1518 2013-03-19 23:04:00

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: dwb - a webkit web browser

portix wrote:

The segmentation fault is now fixed. For those who want to write userscripts, the scripting-api has changed in the last weeks, for compatability the old api will still work for a few months, dwb will just print a deprecation warning to stdout. There is also a new api documentation online which can be found under http://portix.bitbucket.org/dwb/api/.

Nice!

I'm afraid I need some help with the toggle_plugins.js script you posted here on my request.

dwb outputs

DWB DEPRECATION: signals.connect() is deprecated, use Signal.connect() instead!

This one I was able to fix (obviously). The other output is

DWB SCRIPT EXCEPTION: in line 39: 'undefined' is not a function (evaluating 'util.domainFromHost(request.message.uri.host)')

Line 39 is the third of this code

Signal.connect("navigation", function(wv, frame, request) {                                                    
  if (frame === wv.mainFrame)                                                                                  
    wv.settings.enablePlugins = wl.indexOf(util.domainFromHost(request.message.uri.host)) != -1;               
  return false;                                                                                                
});

I'm lost, no idea what to do here, could you please show me?

Offline

#1519 2013-03-19 23:50:34

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

Re: dwb - a webkit web browser

@andmars: i can confirm it with enabled adblocker using adblock_subscriptions, but you aren't using dwb's adblocker, so maybe privoxy also blocks bahn.de.
@Army: util.domainFromHost has changed to net.domainFromHost, i forgot to add a compatability function which i now did with the last revision, btw. you can also use the whitelistshortcuts extension, i does basically the same but allows whitelisting of all webkitsettings.

Offline

#1520 2013-03-20 01:51:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: dwb - a webkit web browser

bahn.de works for me...

Offline

#1521 2013-03-20 06:57:14

andmars
Member
Registered: 2012-03-13
Posts: 362

Re: dwb - a webkit web browser

@portix: yes, you're right. Disabling privoxy with a single Strg+p and reloading the page does the trick for bahn.de and the minecraft texturepack thingy...so it's good bye firefox for me now :-)

Last edited by andmars (2013-03-20 06:57:49)

Offline

#1522 2013-03-20 08:19:41

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: dwb - a webkit web browser

portix wrote:

@Army: util.domainFromHost has changed to net.domainFromHost, i forgot to add a compatability function which i now did with the last revision, btw. you can also use the whitelistshortcuts extension, i does basically the same but allows whitelisting of all webkitsettings.

Thanks! IIRC you recommended this before, so now I switched.

Why I'm doing another post: In the default config of whitelistshortcuts, there's a little mistake in the settings, you missed a , at the end of command:"whitelistplugins".

settings : [ 
  // { setting : "enable-plugins", 
  //   shortcut : "wtp", 
  //   command  : "whitelistplugins"
  //   autoreload : "always", 
  //   defaultValue : true 
  // },
  // { setting : "auto-load-images", 
  //   shortcut : "wti", 
  //   autoreload : "always", 
  //   defaultValue : false 
  // },
  // { setting : "user-stylesheet-uri", 
  //   shortcut : "wtu", 
  //   defaultValue : "file://" + data.configDir + "/stylesheet.css",
  //   alternateValue : ""
  // }
]

Last edited by Army (2013-03-20 08:20:24)

Offline

#1523 2013-03-20 17:10:07

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: dwb - a webkit web browser

Hm, sorry for this new post about a problem I'm having, but since it's there, it's worth mentioning:

Arrow keys (e.g. to scroll) and the Escape key (e.g. to close popups in facebook) don't work anymore. Maybe others as well, I don't know. Caused by the api change as well?

Offline

#1524 2013-03-20 17:31:02

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: dwb - a webkit web browser

I think, perhaps, related to the changes Army noticed with the popups in facebook, if you have a chat window open and focused in gmail (or another google service) tab, and you hit escape, it doesn't just unfocus the textbox, it closes the chat window. Thoughts?

All the best,

-HG

Offline

#1525 2013-03-20 18:24:04

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

Re: dwb - a webkit web browser

The changes Army noticed were on purpose, there was someone who complained that
all keystrokes were sent to the website if they weren't bound, so now all
keystrokes are ignored if they are not bound. I didn't realize that
webkit-builtin shortcts will no longer work with the new behaviour. I have
already implemented a new option (that i will push soon) called
'passthrough-keys', it has three possible values, all which is equivalent
to the old behaviour, none which is equivalent to the new behaviour and
webkit which means all keystrokes are ignored except for webkit builtin
shortcuts.

Offline

Board footer

Powered by FluxBB