summaryrefslogtreecommitdiff
path: root/browser.c
AgeCommit message (Collapse)Author
2015-01-05Implement a simple certificate trust storePeter Hofmann
The WebKit1 version of lariza simply ignored certificate errors. I could have turned off validation in WebKit2 as well, but I wanted to try to do it right. :-) Closes #12.
2015-01-01Automatically recover from WebKit crashesPeter Hofmann
2014-12-14Show the download manager when a download startsPeter Hofmann
This is kind of a quickfix as well (related to #10). I'll have to use this for a while to see if I'm happy with it.
2014-12-14Quickfix for crashes when downloads startPeter Hofmann
Every new window added download_handle_start() as a signal handler to the global WebKitWebContext. This is wrong anway, because the signal handler sets the destination path; this should not be done multiple times. The actual crash happened when a window was closed and *then* a download started. The window's signal handler still existed with a pointer to the window's "struct Client". This struct, however, is now free'd and invalid. Hence the crash. To get rid of the crashes, only add the signal handler once. Sad thing is, this makes the "status" level bar useless: It would only work for the very first window ever created -- if it still existed. If that window has been closed as well, we would still crash. Thus, remove "status" completely. We'll have to find a new way to announce the start of a download. Closes #10.
2014-11-30Tell WebKit where to look for web extensionsPeter Hofmann
2014-11-09Improve mouse wheel zoom and update READMEPeter Hofmann
2014-11-09Fix interactive mouse wheel zoom (GTK+ 3)Peter Hofmann
2014-11-09Remove remaining stuff about "view source mode"Peter Hofmann
2014-11-09Fix deprecation warning about gtk_scrolled_window_add_with_viewport()Peter Hofmann
2014-11-09Fix deprecation warning about stock IDsPeter Hofmann
2014-11-09Remove obsolete comment: Full content zoom is always enabled nowPeter Hofmann
... because it's WebKit2's default.
2014-11-09Prettify accepted_languagePeter Hofmann
2014-11-09"-r" is useless without the adblock hookPeter Hofmann
2014-11-09Reactivate $LARIZA_USER_AGENT and use WebKit's defaultPeter Hofmann
2014-11-09Port searching for text to WebKit2Peter Hofmann
2014-11-09Port opening of new tabs to WebKit2Peter Hofmann
2014-11-09Completely remove adblock for nowPeter Hofmann
With WebKit2, adblock is no longer a trivial task. It must be realized as a "web extension" in WebKit2. See, for example: http://blogs.igalia.com/carlosgc/2013/09/10/webkit2gtk-web-process-extensions/ We need to connect to the "send-request" signal and stop the request from being sent in the first place.
2014-11-09Port downloads to WebKit2Peter Hofmann
2014-11-08Port the most basic stuff to WebKit2Peter Hofmann
2014-11-08Port to GTK+ 3 firstPeter Hofmann
2014-08-09Code style: Allow more than 80 chars to avoid uglinessPeter Hofmann
Plus, my "80 characters" only work with 4-spaced-tabs anyway. I might rethink that.
2014-08-09Show size of downloads in megabytePeter Hofmann
MB is good enough, I don't care about byte, kilobyte, megabyte, gigabyte, ... Yes, SI units.
2014-08-09Minor improvement to changed_download_progress()Peter Hofmann
I checked WebKit's source code: webkit_download_get_destination_uri() never returns NULL in lariza. It's because we set the destination URI in the signal handler for the download request. If g_filename_from_uri() really returned NULL for some reason, then it'd be just plain wrong to announce the "suggested file name", because we might be saving the download ... somewhere else. I doubt this function ever returns NULL in lariza, though, but you never know. So, now, the download manager will correctly show the URI if the destination URI is "unknown".
2014-07-26User Agent: s/UPPERCASE/CAPITALIZED/Peter Hofmann
CC #6.
2014-07-26Steal surf's user agentPeter Hofmann
Ugly hackaround. Closes #6, though.
2014-07-24Fix loading of keywordsPeter Hofmann
CC #5.
2014-07-24Always free "tokens" in keywords_load()Peter Hofmann
Closes #5.
2014-07-10Introduce $LARIZA_HOME_URIPeter Hofmann
As suggested by @okraits in #2.
2014-07-04Mod1 + d closes the download managerPeter Hofmann
While Mod1 + q is consistent with the main window, it also poses the risk of accidentally closing the main window. With Mod1 + d it's more like a "toggle the download manager".
2014-06-22Fix a very important typoPeter Hofmann
2014-06-22Only talk about URIsPeter Hofmann
Let's stick to WebKit's and GNOME's terminology.
2014-06-22No URLs specified? Open about:blank!Peter Hofmann
2014-06-21Fix crash when closing a tab that's still loadingPeter Hofmann
Disconnect the handler for "notify::progress" because that signal might get fired after "c" has been free'd which resulted in a reproducible crash.
2014-06-21Warn when the XID from tabbed is 0Peter Hofmann
2014-06-21Always close tabbed's stdout when finished readingPeter Hofmann
2014-06-21Fix some NULL pointersPeter Hofmann
GLib catched these errors but it's wrong nevertheless.
2014-06-19Keep the changed_* scheme for notify::*Peter Hofmann
2014-06-19Code stylePeter Hofmann
2014-06-19Download manager: Show the real file namePeter Hofmann
2014-06-19Use -Wno-unused-parameter instead of void castsPeter Hofmann
2014-06-19Add "toggle view source mode"Peter Hofmann
2014-06-19Move reading _FIFO_SUFFIX to the right placePeter Hofmann
2014-06-19adblock_load(): Fix invalid regexes, support commentsPeter Hofmann
- Invalid regexes are no longer added to the list. - Lines starting with a "#" are ignored.
2014-06-19Shorten some codePeter Hofmann
2014-06-19Small costmetic fixPeter Hofmann
2014-06-19Mouse wheel zoomPeter Hofmann
2014-06-19The FIFO filename can have a suffixPeter Hofmann
This allows for launching lariza like this: $ LARIZA_FIFO_SUFFIX=1 lariza file:///home/void/bookmarks.xhtml And another instance like this: $ LARIZA_FIFO_SUFFIX=2 lariza http://www.startpage.com
2014-06-19Implement keyword based searchingPeter Hofmann
2014-06-19Rework and extend hotkeysPeter Hofmann
hjkl is nice in a terminal, but it poses a problem in GUI programs: If your program is not ENTIRELY controlled via keyboard, your right hand has to reach from the mouse to the keyboard to the mouse to the keyboard... That's nasty. Now, all hotkeys can be hit using your left hand. I also think that using Control as a modifier is uncomfortable. Your pinkie has to do a lot of work and stays in an uncomfortable position. Using Alt/Mod1 feels better. Secondly, there's no need for scrolling hotkeys. This only makes sense if your program has keyboard-only usage. I can scroll using the mouse (plus, I have screen barriers to support this). Furthermore, there's a hotkey now that enters search mode and hotkeys to create or destroy windows/tabs. I also differentiate between single-handed hotkeys and dual-handed hotkeys. When you enter the location bar or search mode, you are going to begin typing -- thus, your right hand MUST move from the mouse to the keyboard. As a result, it doesn't make sense to make these hotkeys reachable using only your left hand. Mod1+l to enter the location bar is totally fine and so is Mod1+k for searching. Of course, it's more comfortable if you can also close the download manager using Mod1+q. Reloading is useful as well and I NEVER want to have "reload WITH using the cache" (major annoyance of other browsers). To sum it up, your left hand can stay relaxed over q, w, e, d.
2014-06-19Close the adblock file handlePeter Hofmann