Vincent Sanders
c41d42644b
clean up url database documentation comments and formatting
2017-03-06 23:21:12 +00:00
Vincent Sanders
a88254897b
Revert "make urldb internal parse macros less prone to control flow errors"
...
This reverts commit 718da3ffff
.
These macros are used in a way that causes safe macros to break
2017-03-05 15:28:05 +00:00
Vincent Sanders
3217c82cdb
attempt to remove unintended sign extension warning in fs backing store
2017-03-05 13:02:47 +00:00
Vincent Sanders
718da3ffff
make urldb internal parse macros less prone to control flow errors
...
fixes issue highlighted by coverity (CID 1361696)
2017-03-05 12:11:48 +00:00
Vincent Sanders
d9a2c7b9c1
fix some doxygen errors
2017-02-24 14:02:31 +00:00
Vincent Sanders
07c8ea22a5
fix unused variable warning on non public suffix library builds
2017-02-23 23:33:39 +00:00
Vincent Sanders
0f69965805
clean up some of the doxygen generation warnings
2017-02-19 11:32:17 +00:00
Vincent Sanders
7d660561cc
Update knockout plotter to use new API
2017-02-11 13:57:06 +00:00
Vincent Sanders
3722ff8d86
Update all core use of plotters to new API
2017-02-11 13:55:41 +00:00
Daniel Silverstone
8e9751d3b6
Add EventTarget binding
...
This adds the binding for EventTarget along with implementations for
addEventListener() removeEventListener() and dispatchEvent()
2017-02-05 12:39:46 +00:00
Daniel Silverstone
2858aec1c2
Add EventListener support to duktape binding.
...
This paves the way for EventTarget and its associated event listener support.
In particular it ensures the generic event handling we do supports the
semantics of the addEventListener() and removeEventListener() managed lists of
callbacks.
2017-02-05 12:05:04 +00:00
Daniel Silverstone
108cc0cebd
Support fixed nsgenbind bindings
2017-02-05 11:20:08 +00:00
Vincent Sanders
1f52b2d514
remove unused fetch acessor
2017-01-31 22:56:45 +00:00
Vincent Sanders
e96bf01339
make backing store use inttypes format specifiers
2017-01-21 16:48:41 +00:00
Vincent Sanders
6075feb487
create netsurf inttypes header to have portable integer formatting macros
2017-01-21 14:20:55 +00:00
Vincent Sanders
70d700b26c
rationalise use of utils/utils.h header
2017-01-19 21:15:08 +00:00
Vincent Sanders
7dab7cb43d
move plot style header to netsurf include directory
...
move plotter style header and adjust all callers to use only what they
actually require.
2017-01-13 10:03:24 +00:00
Vincent Sanders
9be0f4ccaf
fixup usage of directory creation macro in Makefiles
2017-01-07 13:21:25 +00:00
Michael Drake
770c277ccc
Duktape: Prevent clang static analysis.
...
Restore 336326af3a
for 1.6.0 import.
2016-12-28 15:06:08 +00:00
Michael Drake
539d5da5c4
Duktape: Make declarations match definitions for duk_raw_read_xxx_be
...
Restore 6d63f7959a
for 1.6.0 import.
2016-12-28 15:04:08 +00:00
Michael Drake
7c03ae91fd
Duktape: Update to version 1.6.0.
2016-12-28 15:01:03 +00:00
Vincent Sanders
af1f1f375d
make nsgenbind call last in rule so faliures are noticed by make
2016-11-24 23:45:49 +00:00
Vincent Sanders
3f88c12315
Fix OpenSSL X509 cert API detection
...
LibreSSL defines a OPENSSL_VERSION_NUMBER of 2.1 but only provides the
old OpenSSL 1.0.x API.
2016-11-21 18:29:23 +00:00
Vincent Sanders
bcce8cc7b4
fix spelling of retrived
2016-11-21 00:07:13 +00:00
Vincent Sanders
f679a9b1d6
fix spelling and doxygen comments in image cache
2016-11-21 00:07:12 +00:00
Vincent Sanders
b3042f6c1f
fix spelling in low level cache code
2016-11-20 15:38:14 +00:00
Vincent Sanders
9ff13d64c4
fix spelling mistakes in hlcache code
2016-11-20 15:25:33 +00:00
Vincent Sanders
8828bdc702
fix comedy spelling in fs backing store code
2016-11-20 15:22:04 +00:00
Vincent Sanders
e8a9e37445
fix openSSL 1.1.0 X509 certificate handling
2016-11-20 12:15:31 +00:00
Vincent Sanders
61a00c3832
fix unecessary base64 header include
2016-11-19 17:11:23 +00:00
Michael Drake
b3d98a4d7d
Work in Progress: Update for style-sharing LibCSS API.
2016-11-19 14:46:44 +00:00
Daniel Silverstone
1fb06929d9
Remove internal BASE64 in favour of nsutils' one
2016-11-19 14:40:10 +00:00
Michael Drake
b42d253f86
Table cell nowrap attribute is presentational hint, not UA style.
2016-10-13 12:44:27 +01:00
Vincent Sanders
1ef1edc9e0
enable use of netsurf public suffix library to prevent supercookies
2016-09-20 21:45:35 +01:00
Vincent Sanders
e582497322
if the cookie is a session cookie indicate it
...
previously session cookies were simply displayed as having an expiry
in 1970 which was unhelpful.
2016-09-13 23:17:28 +01:00
Vincent Sanders
a91c7cdf04
make urldb parsing of ascii data explicit
2016-09-10 23:05:24 +01:00
Vincent Sanders
fa1af79e7c
document file fetcher being locale dependant
2016-09-10 23:05:24 +01:00
Michael Drake
91d6215215
Duktape: Prevent clang static analysis.
...
Restore 336326af3a
for 1.5.1 import.
2016-08-31 18:58:13 +01:00
Michael Drake
a64f8eb8a0
Duktape: Make declarations match definitions for duk_raw_read_xxx_be
...
Restore 6d63f7959a
for 1.5.1 import.
2016-08-31 18:58:13 +01:00
Michael Drake
9800c5f298
Duktape: Update to version 1.5.1.
...
Version 1.5.1 includes some of our own fixes, reducing our delta
to upstream.
These should not be needed now:
- 2cbb337756
Squash harmless Clang warning introduced in Duktape 1.5.0.
- 8f8cda2b48
Fix Duktape on AmigaOS3 (thanks to Tygre and Sami)
2016-08-31 18:54:35 +01:00
Chris Young
8f8cda2b48
Fix Duktape on AmigaOS3 (thanks to Tygre and Sami)
2016-08-27 18:51:17 +01:00
Sergei Rogachev
a815ad6250
Fix longjmp to invalid address on jpeg init error
...
Libjpeg used in NetSurf for decoding of JPEG images handles exceptions using a
pair of non-local jump functions: setjmp() and longjmp(). When a decompression
context is created via a call to the function jpeg_create_decompress() the
caller passes a structure jpeg_decompress_struct as a parameter. This structure
should has a validly initialized jump buffer, so the initialization or other
functions called in future can jump to the exception handling context.
The jpeg backend of NetSurf now initializes libjpeg mistakenly: jump buffer is
filled after the call to jpeg_create_decompress(). It results in jump to random
addresses in the case of exception caught during operation of the function
jpeg_create_decompress().
The patch moves the initialization of jump buffer before the call to
jpeg_create_decompress().
Signed-off-by: Sergei Rogachev <rogachevsergei@gmail.com>
2016-08-14 22:37:12 +01:00
Vincent Sanders
59b108498a
fix bitmap modification callback calling for bmp image handler
...
bitmap file decoding is done at first call to redraw but was not
calling the modified callback at the correct time immediately after
decode so frontend image chnages were not being done. This caused
nsgtk to fail to apply its colour space fixups so red was swapped with
blue.
2016-08-14 22:26:37 +01:00
Michael Drake
fe00eac8cb
Buildsystem: Make curl/openssl usage build-time options.
2016-08-13 13:31:07 +01:00
Vincent Sanders
9176d3233f
ensure url database destructor cleans up correctly
2016-08-09 13:15:02 +01:00
Vincent Sanders
115985f069
extend url database unit testing to cover more API
2016-08-09 12:26:37 +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
b939afe3fc
Allow certificate verification user prompt creation to return errors
2016-07-31 13:25:20 +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