You are not logged in.

#1 2010-04-18 22:07:53

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

dwb - a webkit web browser

dwb is another webkit-browser similar to vimprobable written in C.
features:

  • vi-like keybindings

  • easy customizable via a webinterface

  • quickmarks

  • bookmarks

  • tab-completion

  • cookie- and proxy-support (including a cookie-whitelist)

  • hintmode

  • add keywords for searchengines and searchfields

  • save sessions

  • tiling layouts

  • plugin-, script-, and adblocker (including a whitelist for plugins and scripts)

  • userscripts

Dependencies:

  • libwebkit

  • gtk2

Packages:
git-version (recommended): GTK2, GTK3
stable: The GTK2 version is in the community repo, the GTK3-Version in AUR

Homepage:
http://portix.bitbucket.org/dwb/

Please don't post bugreports for dwb on the bbs, dwb has a bugtracker.

Last edited by portix (2014-03-28 00:17:25)

Offline

#2 2010-04-19 07:50:54

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: dwb - a webkit web browser

I assume this is your project?
For me dwb dies with a " segmentation fault (core dumped)  dwb" every time i press backspace in the commandline (like when o for opening a url).
Actually, even without being in the commandline, pressing backspace kills it all the time.

% p -Qi dwb-hg
Name                 : dwb-hg
Version              : 181-1

I don't have time for more testing right now though.

Ogion


(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant

Offline

#3 2010-04-19 08:35:40

ludovico
Member
From: Oslo, Norway
Registered: 2008-08-24
Posts: 75

Re: dwb - a webkit web browser

Great app, thanks! big_smile

Ogion wrote:

For me dwb dies with a " segmentation fault (core dumped)  dwb" every time i press backspace in the commandline (like when o for opening a url).
Actually, even without being in the commandline, pressing backspace kills it all the time.

This doesn't happen with me.

One question: Is it possible to open links in a new instance of dwb?


Sin? What's all this about sin?

Offline

#4 2010-04-19 09:31:38

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

Re: dwb - a webkit web browser

Ogion wrote:

I assume this is your project?
For me dwb dies with a " segmentation fault (core dumped)  dwb" every time i press backspace in the commandline (like when o for opening a url).

I cannot reproduce this. dwb is currently in an early state, so it is far away from being "stable".

ludovico wrote:

One question: Is it possible to open links in a new instance of dwb?

This is not possbible and i am not sure if i implement it, since i don't need this feature.

Offline

#5 2010-04-19 10:53:06

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: dwb - a webkit web browser

looks cool.
in uzbl, we have something similar: a split-windows branch which splits the window in two.
http://www.youtube.com/watch?v=F-qsgzebUs0

maybe it would be better to use that code as a starting point. that is, if you like the other implementation details in uzbl.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#6 2010-04-19 11:09:38

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: dwb - a webkit web browser

Hm.
Well, there is this thing that my netbook-keyboard once got to 'drink some coffee' (wasn't my fault) and since then a few keys do not work as intended anymore. One of which was that the backspace key was 'fused' with the delete key, so pressing backspace produced a backspace and a delete signal. So i disabled delete with xmodmap. Dunno, maybe that is the reason for it if nobody else experiences that.

Anyway, it's good that the small/minimalist browsers get numerous wink

Ogion


(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant

Offline

#7 2010-04-19 11:23:20

ludovico
Member
From: Oslo, Norway
Registered: 2008-08-24
Posts: 75

Re: dwb - a webkit web browser

portix wrote:
ludovico wrote:

One question: Is it possible to open links in a new instance of dwb?

This is not possbible and i am not sure if i implement it, since i don't need this feature.

I just thought it could be useful for "grouping" open pages from the same site, like when browsing
new posts on these forums smile


Sin? What's all this about sin?

Offline

#8 2010-04-19 12:15:39

soulicia
Member
Registered: 2010-04-09
Posts: 14

Re: dwb - a webkit web browser

For the same purpose, I can use uzbl and a tiling window manager.
Anyway, it's cool.

Offline

#9 2010-04-19 12:57:52

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

Re: dwb - a webkit web browser

ludovico wrote:

I just thought it could be useful for "grouping" open pages from the same site, like when browsing
new posts on these forums smile

Ok, i just added this  feature. Pressing "w" will open the next opened link in a new window.

Offline

#10 2010-04-19 13:54:15

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: dwb - a webkit web browser

soulicia wrote:

For the same purpose, I can use uzbl and a tiling window manager.
Anyway, it's cool.

+1

Although I still prefer Opera.

Offline

#11 2010-04-19 15:07:42

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

Great project -- I'll follow with interest! Right now the keyboard commands only work for maybe two to three pages, then all I can use on the keyboard is arrow keys and spacebar....all the other keyboard commands stop working. I can still browse with the mouse. Only error messages were:

** Message: console message: http://maps.google.com/maps?hl=en&tab=wl @9: TypeError: Result of expression 'e' [http://www.google.com/local/add?hl=en&gl=us] is not a function.

** Message: console message: http://maps.google.com/maps?hl=en&tab=wl @21: TypeError: Result of expression 'e' [http://www.google.com/local/add?hl=en&gl=us] is not a function.

but those don't look related, as this happened on other combinations of pages as well.

Thanks!
Scott

Offline

#12 2010-04-26 16:17:43

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

Re: dwb - a webkit web browser

firecat53 wrote:

Right now the keyboard commands only work for maybe two to three pages, then all I can use on the keyboard is arrow keys and spacebar....all the other keyboard commands stop working.

Should be fixed now, testers welcome.

Offline

#13 2010-04-27 17:24:59

jiyuu
Member
Registered: 2010-04-13
Posts: 63

Re: dwb - a webkit web browser

First. Thanks for making dwb. It makes a great replacement of vimperator.

I have write down, as I used dwb, several bugs that I have encountered, features
that would be great to have. Here is the list with additional comments:

Bugs:
  -- cookies are not set.
     dwb doesn't seem to set cookie (with or without cookies.allow file).
     If I create the file with 'touch ~/.config/dwb/cookies'. It will be delete
     later by dwb.

  -- If url of search engine contains '%', they will not work.

Annoyances:
  -- In hint-mode, if a link is 'triggered' with less character than what you
     typed, the remaining characters will be 'evaluate' after the link is loaded.

  -- modifier keys keep waiting for input (but without notification) if a key is
     pressed but doesn't trigger a command.

Feature requests:
-- Readline-style shortcut (e.g. Ctrl-a, Ctrl-e, Ctrl-u, Ctrl-k, Ctrl-h, Ctrl-w) in text field
    and command line.

-- Remembering passwords.

-- Having a way to know to which url a link points to.

Thanks.

Last edited by jiyuu (2010-04-27 21:15:41)

Offline

#14 2010-04-27 21:30:59

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

Re: dwb - a webkit web browser

Thanks for your response.

jiyuu wrote:

-- cookies are not set.
     dwb doesn't seem to set cookie (with or without cookies.allow file).
     If I create the file with 'touch ~/.config/dwb/cookies'. It will be delete
     later by dwb.

You can either allow all Cookies in config.h or add domains to cookies.allow. I
have already fixed the "AllowCookie" command, which saves the domain in
cookies.allow and the cookie in cookies, if a webpage tries to set a cookie. I
will commit this soon.

jiyuu wrote:

-- If url of search engine contains '%', they will not work.

Can you give an example? I haven't noticed it yet.

jiyuu wrote:

-- In hint-mode, if a link is 'triggered' with less character than what you
     typed, the remaining characters will be 'evaluate' after the link is loaded.

Haven't found an appropriate solution yet. So far i see two possibilities:
* lock all commands until the new page is loaded (won't work if one types too slow or the page loads too fast).
* Only follow a link after pressing return.
Any ideas are welcome.

jiyuu wrote:

-- modifier keys keep waiting for input (but without notification) if a key is
     pressed but doesn't trigger a command.

Fixed, but not committed yet.

jiyuu wrote:

-- Readline-style shortcut (e.g. Ctrl-a, Ctrl-e, Ctrl-u, Ctrl-k, Ctrl-h, Ctrl-w) in text field
    and command line.

I thought about implementing vi-shortcuts in textfields, i never used the
readline shortcuts, maybe i implement both.

jiyuu wrote:

-- Proxy support (maybe it already exists?).
    This will allow usage of proxy for blocking ads.

Proxy support is already implemented. Just add

export http_proxy=localhost:<PORT>

to your loginshell rcfile.

jiyuu wrote:

-- Remembering passwords.

I never used this "feature" in webbrowsers, so i don't know if i will implement
this.

jiyuu wrote:

-- Having a way to know to which url a link points to.

Will be implemented soon.

Offline

#15 2010-04-27 23:49:29

jiyuu
Member
Registered: 2010-04-13
Posts: 63

Re: dwb - a webkit web browser

portix wrote:
jiyuu wrote:

jiyuu wrote:

-- If url of search engine contains '%', they will not work.

Can you give an example? I haven't noticed it yet.

For example, the wikipedia search url contains a '%'.

portix wrote:
jiyuu wrote:

jiyuu wrote:

-- In hint-mode, if a link is 'triggered' with less character than what you typed, the remaining characters will be 'evaluate' after t
he link is loaded.

Haven't found an appropriate solution yet. So far i see two possibilities:
* lock all commands until the new page is loaded (won't work if one types too slow or the page loads too fast).
* Only follow a link after pressing return.                                                                                                                     
Any ideas are welcome.

Iirc, vimperator use a short timer during which all commands are disabled.

portix wrote:

I thought about implementing vi-shortcuts in textfields, i never used the readline shortcuts, maybe i implement both.

I thought of the readline one because is what vimperator use, but if you implement vi-shortcuts, it's better wink                                                                                                                                             
Readline shortcut however, would be useful in dwb 'command line'.
                                                                                                                                                               
---                                                                                                                                                             
Using dwb as my main browser, I enjoy surfing the web with it. It is fast and it starts as fast as a terminal window (which is fast smile. Coming from vimperator but looking for a lightweight alternative, I was afraid that I would missed some of its functionality but it's not the case, though a command to cycle focus backward and another one to undo the closing of a view would be useful. Oh and maybe a way to copy the url of a link without having to reach for the mouse.

Offline

#16 2010-04-28 02:30:41

empthollow
Member
Registered: 2009-09-26
Posts: 168

Re: dwb - a webkit web browser

Cool browser. for me it is a bit of a learning curve comming from firefox.  Whenever I put something into the url that is not a .com or something it crashes.  For example, i press 'o' and type servu (the specified name of another computer on my network in my hosts file), then it crashes.  It does work if I type in the ip though.  Here is the output.

/libaurora.so
b3296000-b3297000 ---p 00000000 00:00 0 
b3297000-b3bb7000 rw-p 00000000 00:00 0 
b3bb7000-b3bb8000 ---p 00000000 00:00 0 
b3bb8000-b43b8000 rw-p 00000000 00:00 0 
b43b8000-b43c2000 r-xp 00000000 08:02 456559     /lib/libnss_files-2.11.1.so
b43c2000-b43c3000 r--p 00009000 08:02 456559     /lib/libnss_files-2.11.1.so
b43c3000-b43c4000 rw-p 0000a000 08:02 456559     /lib/libnss_files-2.11.1.so
b43c4000-b4575000 r--p 00000000 08:02 930476     /usr/lib/locale/locale-archive
b4575000-b4579000 rw-p 00000000 00:00 0 
b4579000-b457d000 r-xp 00000000 08:02 881353     /usr/lib/libXdmcp.so.6.0.0
b457d000-b457e000 rw-p 00003000 08:02 881353     /usr/lib/libXdmcp.so.6.0.0
b457e000-b4580000 r-xp 00000000 08:02 880661     /usr/lib/libXau.so.6.0.0
b4580000-b4581000 rw-p 00001000 08:02 880661     /usr/lib/libXau.so.6.0.0
b4581000-b4584000 r-xp 00000000 08:02 456081     /lib/libuuid.so.1.3.0
b4584000-b4585000 rw-p 00002000 08:02 456081     /lib/libuuid.so.1.3.0Aborted

p.s. under synopsis in the manual is says dwm instead of dwb.
Thanks for the good work.


--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org

Offline

#17 2010-04-28 10:54:27

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

Re: dwb - a webkit web browser

empthollow wrote:

Cool browser. for me it is a bit of a learning curve comming from firefox.  Whenever I put something into the url that is not a .com or something it crashes.  For example, i press 'o' and type servu (the specified name of another computer on my network in my hosts file), then it crashes.  It does work if I type in the ip though.  Here is the output.

Fixed in the current  revision, but you should add a searchengine and restart dwb (the first  entry in ~/.conifg/dwb will be used as the default searchengine) or dwb will only load valid urls.

empthollow wrote:

p.s. under synopsis in the manual is says dwm instead of dwb.

Would be great if anyone could write an appropriate  man-page (my english is too bad).

jiyuu wrote:

-- Having a way to know to which url a link points to.

In Hintmode the active url now is shown. Links are now also shown, if the mouse pointer is over a link.

Offline

#18 2010-04-29 03:00:51

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

1. Can we get an option to replace the link-follow numbers with letter combinations (like vimium for chrome does), and perhaps an option to select if we prefer having the links on the right or left side of the link?
2. Link follow isn't finding select/submit buttons, drop-down menu boxes, text boxes or text areas.
3. When viewing quickmarks (gb) , 'H' doesn't go back to the page you were viewing
4. Google Reader seems to render very slowly compared to other browsers, even on a fairly fast machine. When running in 'Insert' mode on that page to use the built-in Reader shortcuts, it periodically kicks back to Normal mode without any warning. I wonder if some even in loading one of the articles sends a signal that cancels Insert mode.
5. Maybe have an option for a 'Monocle' mode by default where new views are maximized and a small count of available views is put up in the top info (status?) bar someplace.
6. Page scroll position is lost when switching between two views (both tiled and maximized)
7. 'M' to bookmark a page, but how to view bookmarks, other than opening the file in .config/dwb ?
8. Will dwb work with a SOCKS proxy server like chromium or firefox? It works fine with tsocks, so this isn't a big deal.
9. dwb doesn't open the localhost:631 cups page -- doesn't do anything, actually.

Again, great work -- it's incredibly fast (all but Google Reader smile ) !!!

Scott

Last edited by firecat53 (2010-04-29 03:28:12)

Offline

#19 2010-04-29 10:09:00

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

Re: dwb - a webkit web browser

@firecat 53:
1+2: I will reimplement hintmode when i find time.
3. Fixed.
4. I have no google-account, so i cannot test it. Have you tried other webkit-browser with Google Reader?
5. Im implementing an optional tabbar for monocle layout at the moment.
7. bookmarks currently only can be opened via tabcompletion.
8. See  post #14.
9. I will fix this soon. For now you can open the cups page via 127.0.0.1:631

Edit:
5. Maximized layout can now be set as default.

Last edited by portix (2010-04-29 23:03:04)

Offline

#20 2010-05-01 16:17:15

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

Re: dwb - a webkit web browser

Added optional tabs in Monocle-Layout.
@firecat53:
Bookmarks can be shown and opened by pressing "sb" now. The Browsing history now also can be shown ("sh").

Offline

#21 2010-05-01 19:37:07

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

Awesome work!
1. I'm getting some weird behaviors with the tabbed/monocle mode. Not sure if it's me, or if you're still working out the bugs. Difference between Focus and CycleFocus isn't clear to me.  It's almost there!
2. When I have separate instances open, it seems like one will always segfault after a short time. One time, it just got reallllly slow, then the screen wouldn't refresh, then it died.
3. Is the filetype opener based on mime-type, or extension or ??? I'm trying to set a *.ica file (which is small text file downloaded to be used when launching a Citrix session) to open with a certain program, but dwb doesn't seem to recognize that filetype.
4. Still would like to see the page scroll location retained when switching views.

Thanks!
Scott

Last edited by firecat53 (2010-05-01 19:38:00)

Offline

#22 2010-05-01 21:10:13

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

Re: dwb - a webkit web browser

1. This weird behaviour is intended big_smile. In Monocle Layout CycleFocus shows the tiled views if a tiled view has the focus, if the view on the master area has the focus, the tiled views are hidden. Focus pushes the focused view to the master area or the first tiled view, if the master view has focus. Focus can also be combined with a number (e.g. "3space" pushes view 3 to the master area).
2. Does this only happen when you open a new instance from a dwbsession?
3. The filetype opener is based on extension, but only works if the mimetype cannot be shown by webkit (should be reimplemented).
4. Implemented for the master area in the current revision, i think there is no need to remember the tiled position.

Edit: 1. Maybe i change the behaviour in Monocle Layout to dwm-like behaviour, but i will test it a few days.

Last edited by portix (2010-05-01 22:16:42)

Offline

#23 2010-05-01 23:40:03

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

1. Yeah, I'd like a very simple behavior -- keep the tab bar and just be able to cycle through the maximized (monocle) views with space (or tab or...). Some suckless people might argue that you went too far with doing the tiling within the browser....but the rest of dwb works so well that it doesn't bother me in the least smile I'd just like to be able to turn off the tiling if I want to.

2. The crashes happen when I launch a completely new instance of dwb -- having multiple views within one instance works great....multiple instances with one or more views each will crash.

Scott

edit: Also, getting a segfault when I open more than two views and cycle between them several times. Sometimes it dies immediately, sometimes it will start skipping one of the views, but in both cases it dies fairly quickly.

edit2: Ok, I guess these crashes only happen when I  have the Lifehacker.com page opened -- not sure then if it's a flash issue or because it's just a big page!

edit3: Wow -- it doesn't like gmail! The site works fine...until you try to open a different view and switch back and forth -- instant crash. I know you don't have a google account, but enough people use their sites, it might be worthwhile for you to get one as a testbed site.

Last edited by firecat53 (2010-05-02 01:20:19)

Offline

#24 2010-05-03 03:52:56

empthollow
Member
Registered: 2009-09-26
Posts: 168

Re: dwb - a webkit web browser

perhaps this is intended but I am curious why no window manager will produce decoration for this program.  I've tried fluxbox, gnome, awesome3, and wmii.  Ironically, it is most problematic in wmii as it disables tiling and stacking  mode if opened first.


--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org

Offline

#25 2010-05-03 04:19:36

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: dwb - a webkit web browser

It crashes when attempting to load the YouTube homepage

Offline

Board footer

Powered by FluxBB