Commit Graph

13483 Commits

Author SHA1 Message Date
Vincent Sanders
4a24a14b09 ensure fedora gcc gives us all the version information 2018-10-04 17:18:02 +01:00
Vincent Sanders
7a61c95724 rewrite form_successful_controls_dom as form_dom_to_data
Trying to reason about error propagation and resource leakage within
 the form submission code was impossible because of the
 form_successful_controls_dom function.

This function was over six hundred lines long, had twenty six top
 level local variables and six levels of indent in places.

This commit splits it out into thirteen shorter and more obvious
 functions. The resulting operation is identical except errors are
 properly propagated (all failures were reported as out of memory)
 and resource management can be reasoned about.

The compiler appears to inline the entirety of the code from
 form_submit() down excepting a handful of leaf functions. This
 results in similar code output size as previous implementation.

The new implementation has a greater number of variables passed to sub
 functions than desirable because multiple character sets are required
 to encode names and values in the multipart data list. However as
 noted the compiler effectively inlines all these functions so this
 does not actually become a major problem.
2018-09-29 16:59:34 +01:00
Chris Young
5b849b1e22 Add a TODO for history context menu 2018-09-27 00:23:36 +01:00
Chris Young
dfc8f5aef4 Quick fix to convert helphints to correct charset
We should probably have our own strings for these
2018-09-27 00:18:14 +01:00
Chris Young
b097455772 Convert find window messages to local charset 2018-09-27 00:12:17 +01:00
Chris Young
64bc2a7931 Stop using the same large list of gadget constants everywhere
Saves a small amount of memory
2018-09-26 23:53:49 +01:00
Vincent Sanders
a268252629 gcc on openbsd is unable to reason about res variable usage and generates bogus warning 2018-09-26 21:32:35 +01:00
Vincent Sanders
5c96acd6f1 fix url encoding to be compatible with nsurl API changes.
As part of this fix the form submission error handling and
 reporting has been improved.
2018-09-26 17:21:48 +01:00
Vincent Sanders
9100fcb409 improve nsurl query handling.
Alter the handling of query values within nsurl to be like fragments.

This ensures callers never have to care about the query punctuation,
e.g. the question mark

This also means the strings generated will no longer have trailing
question marks which now conforms to behaviour in whatwg url spec
on url serializing in section 4.5
2018-09-26 17:21:33 +01:00
Vincent Sanders
83512a6ff5 squash clang warning about increased alignment requirements. 2018-09-26 17:21:05 +01:00
Chris Young
1a8fdb1462 Change logging back to INFO 2018-09-09 14:36:28 +01:00
Vincent Sanders
22fd851e14 Fix compiler version comparison test 2018-09-07 14:26:12 +01:00
Vincent Sanders
c3d3023e4a stop overriding non test warning flags 2018-09-07 14:25:41 +01:00
Vincent Sanders
e4537cb37e allow comments to supress implicit fallthrough warnings 2018-09-07 12:53:51 +01:00
Vincent Sanders
bd8991c2f6 fix framebuffer BUILD libpng flags on freebsd 2018-09-07 12:23:39 +01:00
Vincent Sanders
40cdf498b9 Change BUILD compiler target to cc
The use of gcc explicitly does not work on systems where the local
 building system only has the clang compiler.

Framebuffer was the only user of the BUILD_CC target for local
 tooling and its handling of flags was also improved.
2018-09-07 12:01:21 +01:00
Vincent Sanders
8bca6cf28b correctly setup feature flags 2018-09-06 21:34:51 +01:00
Vincent Sanders
05b9baadbc _XOPEN_SOURCE needs defining to avoid warnings on BSD 2018-09-06 12:35:36 +01:00
Vincent Sanders
2596331640 seems freebsd needs _XOPEN_SOURCE for math.h macros to be defined 2018-09-06 12:10:38 +01:00
Vincent Sanders
6ce6b62099 stop defining _XOPEN_SOURCE
This is necessary with some libc as it overrides _POSIX_C_SOURCE
and removes definitions of scandir etc.
2018-09-06 11:33:02 +01:00
Chris Young
39176736b3 Log version numbers of opened libraries
Log open failures as ERROR instead of INFO
2018-09-02 17:12:40 +01:00
Vincent Sanders
f45d84631c fix up package version on haiku 2018-08-29 11:49:05 +01:00
Vincent Sanders
ba4b06dc04 Update version for next development cycle 2018-08-29 10:52:51 +01:00
Vincent Sanders
dd5d97b61c Merge branch 'heads/releasing/3.8' 2018-08-29 10:51:36 +01:00
Vincent Sanders
66fe825c8d Update version files for release 2018-08-29 10:46:30 +01:00
Vincent Sanders
7fae41b6d3 update copyright years and versions in docs and readme 2018-08-29 10:40:36 +01:00
Vincent Sanders
912aa3774e remove use of strcpy 2018-08-29 10:24:23 +01:00
Vincent Sanders
9142bab736 remove a warning on openbsd 2018-08-28 22:17:02 +01:00
Vincent Sanders
026fb31d2d update certificate bundle 2018-08-28 22:17:02 +01:00
Michael Drake
9d8f37ca10 HTML: Don't try to finish an HTML document's conversion twice. 2018-08-27 20:47:37 +01:00
Michael Drake
d54e0461ad GTK: Remove logging during window resize. 2018-08-27 20:04:24 +01:00
Vincent Sanders
487309a1e6 fixup usage of gvalue init macro 2018-08-26 11:22:20 +01:00
Vincent Sanders
4765c68a15 fix gtk 3 deprication warnings 2018-08-26 10:12:35 +01:00
Vincent Sanders
f4620a3f68 remove depricated gtk 3 interfaces 2018-08-24 20:25:14 +01:00
Vincent Sanders
eee67a65e8 remove warning by replacing sprintf snprintf 2018-08-24 11:49:56 +01:00
Vincent Sanders
5dd5d5da4b remove warning by replacing strcpy with safer strncpy 2018-08-24 10:26:26 +01:00
Vincent Sanders
865796486d make ssize_t type available on some platforms 2018-08-23 21:18:54 +01:00
Vincent Sanders
7d645bee91 make "Help" string available in all frontends 2018-08-21 20:33:46 +01:00
François Revol
579465df50 Haiku: use the native locale API to get the language name
We used getenv() on LC_MESSAGES but we currently set it incorrectly
anyway... We keep this as a fallback.
2018-08-21 21:17:12 +02:00
Vincent Sanders
bec6428c6c pass PACKAGER variable to pakage build target 2018-08-21 19:55:08 +01:00
Vincent Sanders
2f663987c5 do not use strlen as a variable name 2018-08-21 14:59:29 +01:00
Vincent Sanders
16cc1121e3 ignore generated Messages files 2018-08-21 13:45:18 +01:00
Vincent Sanders
a8248a7bb9 Update windows frontend to use windows resources 2018-08-21 10:27:16 +01:00
Vincent Sanders
650ac58604 Improve GTK login dialog 2018-08-19 23:16:16 +01:00
Vincent Sanders
2f3c7e24c0 make the login dialog password control obscure input 2018-08-18 23:52:08 +01:00
Vincent Sanders
5f1defd4a7 fix size_t format specifiers 2018-08-18 23:44:15 +01:00
Vincent Sanders
a6c595f4f3 add win32 http authentication dialog 2018-08-18 23:30:12 +01:00
Vincent Sanders
c938d1962b add login dialog 2018-08-16 17:28:38 +01:00
Chris Young
0f18440fd5 Convert user/pass from/to UTF-8
Haven't successfully logged in with credentials featuring UTF-8 characters, but ASCII run through the conversion is working and UTF-8 usernames display correctly when the user is re-prompted.
2018-08-15 18:54:47 +01:00
Chris Young
b46f1257c3 Convert user/pass to UTF-8 for submission 2018-08-15 18:20:18 +01:00