Commit Graph

12369 Commits

Author SHA1 Message Date
Vincent Sanders
4448fa6cbf Fix warnings in unit tests 2016-08-08 22:12:16 +01:00
Michael Drake
1158536bff Tests: Squash more warnings. 2016-08-08 18:09:37 +01:00
Michael Drake
4b90528d3c Tests: Squash some warnings. 2016-08-08 18:03:57 +01:00
Michael Drake
655b619fd4 Add header that may be needed for Windows build. (CI fix attempt.) 2016-08-08 15:17:56 +01:00
Vincent Sanders
c1aec1cfa0 fix urldb warning and test build 2016-08-08 13:52:54 +01:00
Vincent Sanders
05d2b9a92c update urldb dump to use LOG rather than writing to stderr directly 2016-08-08 13:44:18 +01:00
Vincent Sanders
aa10f2f1ef wrap urldb tests in check harness and add minimal session test 2016-08-08 13:44:18 +01:00
Michael Drake
4394587ab0 Utils: Split time handling functions out of utils.c into time.c. 2016-08-07 15:22:13 +01:00
Michael Drake
0e76523e4c Indentation: spaces to tabs. 2016-08-07 14:54:46 +01:00
Vincent Sanders
cc3c1eb99b add unit test for user message handling 2016-08-06 23:43:23 +01:00
Vincent Sanders
35d9baa14e remove unused GTK treeview code completely repalced with core window API 2016-08-06 17:11:29 +01:00
Vincent Sanders
8547452232 convert GTK hotlist to use GTK core window 2016-08-06 17:08:21 +01:00
Vincent Sanders
597d167b9d fix hotlist keypress consumption return 2016-08-06 16:59:43 +01:00
Vincent Sanders
124d3fe9f0 add some more bad values to choices file to ensure parser can cope 2016-08-06 10:43:52 +01:00
Vincent Sanders
c0f4bbb308 remove erroneous parameter check to nsoption_snoptionf
The API check and bounds check for option indexes was from an unsigned
enum so checking for negative numbers was causing "comparison is always
false" errors in compilation.
2016-08-06 10:27:32 +01:00
Vincent Sanders
40ae120360 fix formatted option no init test 2016-08-06 01:29:43 +01:00
Vincent Sanders
62b76bf31a improve option test coverage futher 2016-08-06 01:20:37 +01:00
Vincent Sanders
b2a78c5c6e improve user option testing to cover all the API 2016-08-06 00:06:44 +01:00
Vincent Sanders
afc79d5912 Improve user option testing and API parameter checking 2016-08-05 22:34:44 +01:00
Vincent Sanders
f17e88e709 rename gtk global history implementation 2016-08-04 23:50:06 +01:00
Vincent Sanders
189b7b45fb convert GTK global history to use GTK core window 2016-08-04 23:41:22 +01:00
Vincent Sanders
73b81a59cc fix global history keypress consumption return 2016-08-04 23:40:34 +01:00
Vincent Sanders
e8df81fdb3 add tests for utility string handling 2016-08-04 00:19:48 +01:00
Vincent Sanders
5a73f0797f add url escape test for complete garbage input 2016-08-03 16:06:17 +01:00
Vincent Sanders
eb5e0599af Improve percent escaping testing, parameter checking and documentation 2016-08-03 15:04:28 +01:00
Vincent Sanders
908db8a51d Add url percent escape test with minimal test vectors 2016-07-31 13:25:20 +01:00
Vincent Sanders
378d975474 add basic documentation on unit testing using check 2016-07-31 13:25:20 +01:00
Vincent Sanders
af191bbcc9 make gtk certificate viewing use gtk core window API 2016-07-31 13:25:20 +01:00
Vincent Sanders
e0d531b824 fix certificate viewer keypress consumption return 2016-07-31 13:25:20 +01:00
Vincent Sanders
b939afe3fc Allow certificate verification user prompt creation to return errors 2016-07-31 13:25:20 +01:00
Vincent Sanders
51725592c9 make gtk cookies manager use core window API 2016-07-31 13:25:20 +01:00
Vincent Sanders
ca5b165c85 add nsgtk support for core window API 2016-07-31 13:25:20 +01:00
Vincent Sanders
ea84f67035 fix gdk to nskey mapping for home/end and missing keypad mappings 2016-07-31 13:25:20 +01:00
Vincent Sanders
0f5d7cfcd2 Fix cookie manager keypress consumption return 2016-07-31 13:25:20 +01:00
Vincent Sanders
8dbb61d2f5 fix documentation of mouse state enumeration 2016-07-31 13:25:20 +01:00
Chris Young
3303c005ee Remove pointless string copy 2016-07-29 18:02:56 +01:00
Vincent Sanders
2d41d6c933 cleanup gtk cookie interface
use gtk_window_present instead of gdk_window_raise and reduce exposed
variables and interfaces.
2016-07-25 21:59:17 +01:00
Michael Drake
0c7649d030 URL escape: Improve API documentation. 2016-07-25 09:04:35 +01:00
Michael Drake
a122b94efd URL escape: Simplify to avoid unnecessary allocation.
This removes the toskip parameter, which was only used by the RISC OS
front end.  The toskip param was used to skip 8 characters which did
not need to be escaped from the start of the URL.  The RISC OS front
end now orders the steps of its URL construction to avoid the need
for this.
2016-07-25 09:04:35 +01:00
Chris Young
7bff70e746 Fix TODO (writing past end of buffer) 2016-07-24 22:38:46 +01:00
Michael Drake
7417a21bb1 Improve comments. 2016-07-24 19:48:03 +01:00
Michael Drake
e88d82f87f URL module: Remove unused curl #include. 2016-07-24 14:16:12 +01:00
Michael Drake
b4e21b76fd URL unescape: Calculate new_len at end, rather than maintaining it. 2016-07-24 14:03:28 +01:00
Michael Drake
fa2e3b7784 URL unescape: return the new length to the caller.
The avoids situations were we threw away the length, only for
the caller to have to strlen the returned string.

Note, there seems to be a case of the amiga front end writing
beyond end of allocation.  Added a TODO for now.
2016-07-24 14:03:16 +01:00
Michael Drake
cf753f20cc Avoid using curl for URL unescaping.
This moves us towards working without curl.
2016-07-24 13:29:01 +01:00
Michael Drake
a543206075 URL unescape: Use size_t for length. 2016-07-24 12:33:51 +01:00
Michael Drake
7202ff2f64 Data URL handling: Use url_unescape rather than curl. 2016-07-24 12:23:42 +01:00
Michael Drake
90a260a2cc Doxygen: Fix instance of bad function comment syntax. 2016-07-24 12:21:23 +01:00
Michael Drake
f9870c41f5 Whitespace: Convert spaces to tab for indent. 2016-07-24 12:07:31 +01:00
François Revol
83f95fe05e Explicitely support http and https URI schemes in the .desktop 2016-07-22 11:50:07 +01:00