Michael Drake
4a014fecde
hlcache content callback: Use designated initialiser for hlcache_event.
2017-08-28 11:52:54 +01:00
Michael Drake
e411c84e9b
SVG content handler: Convert to using content_broadcast_errorcode().
2017-08-28 10:24:04 +01:00
Michael Drake
9e64f37846
RSVG content handler: Convert to using content_broadcast_errorcode().
2017-08-28 10:21:11 +01:00
Michael Drake
cae1c44f8f
PNG content handler: Convert to using content_broadcast_errorcode().
2017-08-28 10:14:22 +01:00
Michael Drake
36c01fc03b
Sprite content handler: Convert to using content_broadcast_errorcode().
2017-08-28 10:06:47 +01:00
Vincent Sanders
cde300133e
initialise event struct correctly to avoid compiler warning
2017-08-27 16:01:58 +01:00
Michael Drake
d1a493f569
ICO content handler: Convert to using content_broadcast_errorcode().
2017-08-27 13:32:53 +01:00
Michael Drake
d83f6ea3c1
GIF content handler: Convert to using content_broadcast_errorcode().
2017-08-27 13:28:21 +01:00
Michael Drake
337bd98f6c
BMP content handler: Convert to using content_broadcast_errorcode().
2017-08-27 13:28:21 +01:00
Michael Drake
d4cdcf3067
CSS content handler: Convert to using content_broadcast_errorcode().
2017-08-27 13:09:44 +01:00
Michael Drake
e94fe1632e
Content API: Avoid content message copy in content user callback.
2017-08-26 16:38:18 +01:00
Michael Drake
d70beb28db
Content API: Make content_broadcast take pointer to content_msg_data.
2017-08-26 15:50:03 +01:00
Vincent Sanders
2467a0a990
fix coverity issue 1372473 Out-of-bounds write
2017-06-09 19:51:12 +01:00
Vincent Sanders
703427a486
Update documentation removing junk and moving to markdown for most text files
2017-06-09 17:30:00 +01:00
Michael Drake
ff20edbfbe
Duktape: Make declarations match definitions for fastint-enabled functions.
2017-04-21 11:33:28 +01:00
Michael Drake
6da983ca27
Duktape: Enable fastints.
...
Suggested by svaarala.
2017-04-20 12:12:29 +01:00
Michael Drake
9a8577fead
Duktape: Make declaration match definition for duk_refzero_check_fast()
2017-04-16 17:36:25 +01:00
Michael Drake
40e589531e
Duktape: Make declarations match definitions for duk_raw_read_xxx_be
...
Restore 6d63f7959a
for 2.1.0 import.
2017-04-16 16:58:57 +01:00
Michael Drake
8449b13a3a
Duktape: Prevent clang static analysis.
...
Restore 336326af3a
for 2.1.0 import.
2017-04-16 16:58:35 +01:00
Michael Drake
db9b0dfe00
Duktape: Update to 2.1.0 release.
2017-04-16 16:57:01 +01:00
Michael Drake
5d5081eb57
CSS: Handle presentational hint for HR's "width" attribute.
2017-04-10 09:33:09 +01:00
Michael Drake
abdab90859
Presentational hints: Ensure length is initialised for auto margins.
...
Although the length is unused when margin is auto, having
uninitialised values present in a computed style means that
the style hashing may give the same style different hashes
depending on the unintitialised info.
The effect of this would have been be to reduce the chance
of computed style sharing. It would have had no effect on
page rendering.
2017-04-06 17:14:58 +01:00
Vincent Sanders
4e750bdab6
fix doc comment spelling mistake
2017-03-28 11:45:24 +01:00
Michael Drake
0a0e7b5bd7
Duktape: Suppress warnings about increasing alignment of pointer type.
2017-03-23 17:52:28 +00:00
Michael Drake
ae793a3ad9
Duktape: Atari Mint lacks trunc, log2 and cbrt.
...
build/Linux-atari/content_handlers_javascript_duktape_duktape.o:build/Linux-atari/content_handlers_javascript_duktape_duktape.o:(.text+0x978): undefined reference to `_trunc'
build/Linux-atari/content_handlers_javascript_duktape_duktape.o:build/Linux-atari/content_handlers_javascript_duktape_duktape.o:(.text+0x990): undefined reference to `_log2'
build/Linux-atari/content_handlers_javascript_duktape_duktape.o:build/Linux-atari/content_handlers_javascript_duktape_duktape.o:(.text+0x99c): undefined reference to `_cbrt'
2017-03-23 16:02:48 +00:00
Michael Drake
bc204a469a
Duktape: Make declarations match definitions for duk_raw_read_xxx_be
...
Restore 6d63f7959a
for 2.0.2 import.
2017-03-23 15:30:22 +00:00
Michael Drake
c98fc7999a
Duktape: Prevent clang static analysis.
...
Restore 336326af3a
for 2.0.2 import.
2017-03-23 14:56:32 +00:00
Michael Drake
5d39972b9f
Duktape 2.X: duk_error now returns a duk_ret_t
...
https://github.com/svaarala/duktape/blob/master/doc/release-notes-v2-0.rst#duk_error-duk_error_va-duk_throw-duk_fatal-have-a-return-value
This also changes Console.bnd to return on error, rather than ignoring it.
2017-03-23 14:56:32 +00:00
Michael Drake
ff8e5c99a0
Duktape 2.x: duk_safe_call callbacks now have a void ptr user data param.
...
https://github.com/svaarala/duktape/blob/master/doc/release-notes-v2-0.rst#duk_safe_call-userdata
2017-03-23 14:56:32 +00:00
Michael Drake
736bbbed71
Duktape 2.X: Update to Duktape 2.0.2.
...
Note that DUK_OPT_XXX feature selection has been removed.
This means we can't use `DUK_OPT_HAVE_CUSTOM_H`, so we need another
way to tell duktape about our custom header.
This means assembling our own duktape distribution with a
duktape "tools/configure.py" invocation.
Instructions for updating duktape have been added to NetSurf's
`Docs/` directory.
See:
https://github.com/svaarala/duktape/blob/master/doc/release-notes-v2-0.rst#duk_opt_xxx-feature-option-support-removed
2017-03-23 14:56:32 +00:00
Michael Drake
be77f764e2
Improve content logging with content IDs (pointer values).
...
This makes it easier to track a content by its ID through a log.
2017-03-23 14:23:57 +00:00
Vincent Sanders
f39d78dc2e
mimimal mime sniffing test
2017-03-20 00:48:11 +00:00
Vincent Sanders
0866314d96
reduce hlcache handle api usage in mimesniff
2017-03-19 22:29:23 +00:00
Vincent Sanders
93e2b4855b
make mimesniffing use core strings
2017-03-19 15:00:21 +00:00
Vincent Sanders
2406acfeb3
fix urldb numerical v6 address handling
2017-03-13 23:44:06 +00:00
Vincent Sanders
27aa56cbf6
make the urldb content type setting API return an error
2017-03-13 21:55:39 +00:00
Vincent Sanders
92b5f114ba
make urldb persistance setting API return an error
2017-03-13 21:19:59 +00:00
Vincent Sanders
5078bffad7
change urldb_set_title API to return an error status
2017-03-13 16:38:24 +00:00
Vincent Sanders
5ebec85282
actually check the generated database files against reference test data
2017-03-08 22:22:54 +00:00
Vincent Sanders
0da0dcc342
remove urldb_add_host and path from public API
...
The urldb_add_host and urldb_add_path API were only public for the
urldb test code which was calling them incorrectly in any case as the
url bloom filters were not updated so serialising and adding data to
entries was inconsistent.
This also changes the tests to use the urldb_add_url API which is less
buggy and results in a smaller, cleaner urldb API.
2017-03-08 13:27:00 +00:00
Vincent Sanders
b78887c7c8
make update data api return an result
2017-03-08 13:13:21 +00:00
Vincent Sanders
670110b171
use robust handling of time_t value (de)serialisation
...
The previous implementation was wrong on systems where time_t was not
an int type. This changes urldb to use the portable implementation
netsurf has available.
2017-03-08 10:54:17 +00:00
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