Commit Graph

12323 Commits

Author SHA1 Message Date
Vincent Sanders
dee7426656 stop content header dragging in so many other headers 2016-04-19 23:20:29 +01:00
Vincent Sanders
d29bccdb3a add missing explicit dirent includes 2016-04-19 15:56:57 +01:00
Vincent Sanders
798654f910 remove curl fetchers use of the wallclock API
The wallclock() API uses gettimeofday which can be affected by the the
systems clock being changed etc. The curl fetcher usage of this API is
to generate a timing delta and does not cope with the gettimeofday
issues.

This changes the fetcher to use the nsutils library monotonic time
function which does not suffer from the issues with gettimeofday.
2016-04-19 14:18:09 +01:00
Vincent Sanders
afea659fef move dir_sort_alpha function from generic utils to one specific place it is used 2016-04-19 12:01:05 +01:00
Vincent Sanders
1bc010665e Reduce unecessary use of directory entry headers
The config header was causing many source files to unecessarily
include the dirent headers causing extra dependancies. This has been
fixed by providing a utility dirent header that provides a common API
across all platforms while removing the unecessary dirent header usage.
2016-04-19 11:21:06 +01:00
Vincent Sanders
4f38963337 move time function to apropriate header 2016-04-19 10:36:35 +01:00
Vincent Sanders
836ea5679e move sys/time.h support functionality out of generic header
The utils header is a large collection of functionality for several
system headers and API. This splits out the ones from sys/time.h into
a separate header reducing the need for many unconnected source files
to include the system header unecessarily.
2016-04-19 09:16:09 +01:00
Vincent Sanders
46e1061ef3 fix missing struct on http parameter declaration due to header change 2016-04-18 23:17:38 +01:00
Vincent Sanders
392307bb1f reduce content header interdependancy 2016-04-18 23:04:16 +01:00
Vincent Sanders
34f6aa1323 clean up header usage in content hnadling core 2016-04-18 20:58:49 +01:00
Vincent Sanders
d2dd574106 fix urldb test build 2016-04-17 22:27:53 +01:00
Vincent Sanders
695853c192 fix use of INT_MAX without including limits.h 2016-04-17 15:14:18 +01:00
Vincent Sanders
ade0cd8bb9 Reduce unecessary use of networking headers
The utility configuration header dragged in a number of bsd sockets
and related API as a side effect of setting up the configuration. By
splitting the header and API setup into a separate header only the
small number of places that need the functionality explitly include
it.
2016-04-17 13:42:28 +01:00
Vincent Sanders
810e9153d1 urldb no longer uses curl directly but it does need correct network includes
The update to remove curl usage from urldb must pull in the utility
config header instead to get inet_aton and such or compoles on some
platforms fail.
2016-04-17 09:39:44 +01:00
Vincent Sanders
7dee1cb7d6 fix missing misc table fixup on beos 2016-04-17 09:37:37 +01:00
Vincent Sanders
0bc5d2ca4c create date and time to seconds since epoch processing utility function
currently NetSurf uses curl_getdate to convert textural date and time
strings into seconds since epoch. It is betetr to move this
functionality to a utility function so curl_getdate can easily be
replaced if required.
2016-04-16 23:50:22 +01:00
Vincent Sanders
33c7df0c40 complete the rename of the gui browser table
When the operations tables were created the browser table was renamed
to miscellaneous except the actual rename patch was never applied,
this fixes that situation.
2016-04-16 23:50:21 +01:00
Vincent Sanders
7b78985983 make check library probe faliure silent 2016-04-16 23:50:21 +01:00
Chris Young
86450ed8a2 Ensure the ARexx-reported version number doesn't jump around between CI and release builds
Update minor version for next release cycle
2016-04-16 13:40:57 +01:00
Vincent Sanders
3a5b4571b4 update version info for next development cycle 2016-04-06 12:01:07 +01:00
Vincent Sanders
d6ad20a2c4 Merge branch 'heads/release/3.5' 2016-04-06 11:44:28 +01:00
Vincent Sanders
b2a32c3ea2 Update version for 3.5 release 2016-04-06 11:39:35 +01:00
Chris Young
281fe7674c Skip setting the pen in the RastPort if it is already set to that pen
This captures the scenario when the RGBA value has changed but graphics.library has picked the same pen.
2016-03-23 23:18:05 +00:00
Chris Young
0368935cd3 Avoid nsurl NULL access 2016-03-23 00:01:45 +00:00
Chris Young
7a7d99e004 Ensure we are only accessing pixel data using amiga_bitmap_get_buffer() 2016-03-22 22:55:31 +00:00
Chris Young
8a7d030af7 Ensure we don't access invalid pointers 2016-03-22 19:45:15 +00:00
Chris Young
215d1bec58 Document new bitmap functions 2016-03-22 19:39:33 +00:00
Chris Young
4b2ac84233 Make struct bitmap private to bitmap.c 2016-03-22 19:26:36 +00:00
Chris Young
bd663be927 Apparently setting pens is a strangely complex process, so avoid it. 2016-03-22 18:45:20 +00:00
Vincent Sanders
9faef114ec Update font interface documentation to include parameter direction 2016-03-22 17:52:24 +00:00
Vincent Sanders
afc1d2c3c7 fix broken windows frontend font handling 2016-03-22 17:51:31 +00:00
Michael Drake
719dc37b22 Fix obvious bug in nsfont_split.
Was using nsfont_position_in_string instead of nsfont_width, resulting
in returning nonsense actual_x and char_offset values.
2016-03-21 14:44:01 +00:00
Michael Drake
af4d72416b Log nsfont_width failure. 2016-03-21 14:43:47 +00:00
Michael Drake
3c8e522c25 Remove printf logging. 2016-03-21 14:43:46 +00:00
Vincent Sanders
57c9034f31 Add missing resources to windows frontend 2016-03-20 21:59:16 +00:00
Vincent Sanders
78fd5ccbf6 fix new creating new window assert 2016-03-20 20:28:20 +00:00
Vincent Sanders
c2f321010a add certificate authority bundle handling to windows
The curl certificate handling on windows does not have a compiled in
default location so it is necessary to attempt to find a default
bundle.

This provides a bundle in the install and code to set it as the
default bundle location.
2016-03-20 10:24:18 +00:00
Vincent Sanders
d15ab96a51 Fix size_t printf formatting
The printf formatting for size_t is set in c99 as %zu but in windows
it is %Iu this is solved by adding and inttypes style PRI macro for size_t

This also uses this macro everywhere size_t is formatted.
2016-03-17 22:00:54 +00:00
Vincent Sanders
232cda5317 Update CA bundle 2016-03-17 22:00:54 +00:00
Chris Young
876a472454 OS3 compatible language mappings 2016-03-16 23:27:33 +00:00
Vincent Sanders
69d9d5dd22 frontends should not call the reformat API directly
The reformat API locking semantics are challenging to understand,
efectiveky browser_window_reformat should never be called by frontend
code directly except explicitly on the reformat callback. Otherwise
the content may already be locked and the system winds up asserting.
2016-03-16 21:07:14 +00:00
Vincent Sanders
06c84a26e9 remove unecessary header inclusion 2016-03-16 09:31:19 +00:00
Vincent Sanders
7d4d500c1d Revert "Fix memory leak in error handling"
This reverts commit c53be10892.

Issue tracked in bug 2443
2016-03-16 08:36:36 +00:00
Michael Drake
6f2fe0af47 Remove unused #includes. 2016-03-15 13:48:31 +00:00
Vincent Sanders
c53be10892 Fix memory leak in error handling
error handling during form gadget construction could leak, this fixes
the leak on error. Fixes coverity CID 1109875
2016-03-14 15:54:10 +00:00
Dave Higton
fdbb413403 Fix RISC OS relocatable module checks
Several relocatable modules are distributed with the RISC OS
version. The !Run file checks for their presence and version
number. However, if the check fails, the user is referred to dead
links.

This fixes this to requested an update to the !System folder from the
NS archive, using the Configure app.

Closes: 2441
2016-03-14 15:24:37 +00:00
Vincent Sanders
3dca38cf98 Avoid null dereference in gtk resource handling
Ensure the error handling in gtk pixmap resource handling does not
cause a null pointer dereference. Fixes coverity CID 1307743
2016-03-14 15:03:39 +00:00
Vincent Sanders
1ace8538d1 Fix possible dereference of NULL
The return of calloc was not being checked and could have lead to a
NULL pointer dereference. This fixes coverity CID 1316337

Additionally the functions documentation comments were cleaned up.
2016-03-14 14:19:43 +00:00
Vincent Sanders
c45afb6a29 Clean up gtk login window
This fixes coverity ID 1316338 by dealing with memory and window
creation errors properly.

Previously such errors could seg fault or leave the browser navigation
logic "stuck" waiting for user input to a window that never existed.

The code was also refactored to remove forward declarations and add
documentation comments.
2016-03-14 14:02:48 +00:00
Vincent Sanders
1d7b305db9 fixup nsurl handling to avoid locale specific character type implementation 2016-03-14 13:01:06 +00:00