Michael Drake
44f91c9fc8
Ensure colour values around #888888 can be read in HTML output.
2013-05-28 22:15:29 +01:00
Vincent Sanders
68c2013504
add provenance to about:config
2013-05-28 21:36:46 +01:00
Vincent Sanders
06d87fec2b
if the colour value is unusable do not assign garbage to teh option
2013-05-28 20:29:37 +01:00
Vincent Sanders
45d309c0e3
copy the options data with memcpy instead
2013-05-28 20:04:42 +01:00
Vincent Sanders
a92e5930ff
fixup issues with new options API merge
2013-05-28 16:44:46 +01:00
Vincent Sanders
4ae69da5ea
build new options code and remove old
2013-05-28 14:16:11 +01:00
Vincent Sanders
a2769ec68b
add new option API and implementation
2013-05-28 14:16:10 +01:00
Vincent Sanders
35dacc3671
move the logging initialisation out to be call by frontends
...
This allows each frontend to pass a distinct callback to configure the
output file stream appropriately for their use.
2013-05-23 11:50:57 +01:00
Vincent Sanders
12ff7a47f4
removed unsuded memdebug utilities
2013-05-23 09:29:00 +01:00
Vincent Sanders
447c0fc271
ensure downloaded files are not interpreted
2013-05-22 19:12:26 +01:00
Rob Kendrick (humdrum)
bb08964f27
Merge branch 'master' into rjek/bloom
2013-05-17 13:15:25 +01:00
Michael Drake
39cc1a6d4a
Add function to get a nsurl's hash value.
2013-05-17 12:25:04 +01:00
Rob Kendrick (humdrum)
60e8f11850
urldb maintains a bloom filter of URLs contained within and consults it when searching
2013-05-17 11:40:43 +01:00
Rob Kendrick (humdrum)
0c45ed935d
Better bit and byte selection
2013-05-16 17:24:05 +01:00
Rob Kendrick (humdrum)
7d60132816
Painfully trivial bloom filter implementation to experiment with optimising urldb lookups
2013-05-16 17:15:29 +01:00
Michael Drake
023c014ac4
Tidy up cached descriptor usage and ensure "shrink-wrap" realloc call only ever has to shrink.
2013-05-15 23:30:01 +01:00
Michael Drake
51a5febad7
Cache conversion descriptor since this func. is called many times in series for the same conversion. (UTF-8 --> iso-8859-1)
2013-05-15 22:13:30 +01:00
Vincent Sanders
bb9a7bbe6d
update with x86 Linux proper triplet
2013-05-12 18:40:53 +01:00
Vincent Sanders
e6eecc098b
improve script to use case statements as appropriate and fail correctly for unsupported usage
2013-05-11 10:45:19 +01:00
Vincent Sanders
29086c377f
add jenkins build script
2013-05-10 19:38:13 +01:00
Vivek Dasmohapatra
70b1a8b1ce
Add new translation entries to the master file when importing
2013-05-07 22:20:11 +01:00
Vivek Dasmohapatra
9c6e4c7eb5
Fix unescaping when importing transifex/java-properties format translations
2013-05-07 22:20:11 +01:00
Vivek Dasmohapatra
f4af0d86e2
import messages from other formats into a fatmessages file
2013-05-06 14:33:33 +01:00
Vincent Sanders
04c486ab54
perl script to fetch translated resources from transifex
2013-05-06 14:31:56 +01:00
Vincent Sanders
c3530a0c39
make filepath_findfile() rely on realpath allocating the output buffer.
2013-05-04 16:42:00 +01:00
Vincent Sanders
52c5cccdeb
cleanup tree_create_leaf_node text ownership
2013-05-04 09:49:11 +01:00
Vivek Dasmohapatra
4c4dff3384
Improvements to generated output
2013-05-02 23:08:18 +01:00
Vivek Dasmohapatra
820767e417
Improve the message split script to allow alternate output formats
2013-05-01 11:45:09 +01:00
Michael Drake
c3f21572ed
Add function to get the byte length of n characters in a utf8 string.
2013-03-17 22:01:42 +00:00
Vincent Sanders
95e726c7cc
split sources lists out to their subdirectories as first step towards using core buildsystem
2013-03-11 17:53:52 +00:00
Vincent Sanders
cc7f45898b
refactor stylesheet handling to separate object from within html rendering
2013-02-24 16:08:37 +00:00
Michael Drake
f72da52cfc
Fix over-allocation of space for hash table chain heads.
2013-02-22 22:33:36 +00:00
Michael Drake
d8af191c0a
Include stdbool.h
2013-02-22 13:31:51 +00:00
Michael Drake
7088908cc2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
...
Conflicts of doom:
render/html.c
2013-02-22 13:24:36 +00:00
Michael Drake
c2a718075a
A load of refactoring of how content selection and input work.
...
Keypresses now go via content interface.
Contents don't shove the selection object into browser windows any more.
Contents report selection existence by sending message.
HTML content keeps track of where selections in it exist.
Contents report whether they have input focus via caret setting msg.
Caret can be hidden (can still input/paste) or removed.
Consolidate textarea selection handling.
Make textarea report its selection status changes to client.
Various textarea fixes.
Changed how we decide when to clear selections, and give focus.
2013-02-22 12:19:35 +00:00
Vincent Sanders
5be20a0d6e
change stylesheet fetching to be generated from the default dom events
2013-02-19 23:51:16 +00:00
Vincent Sanders
3bfb5b96a7
browser_window_navigate refactor
2013-02-18 11:23:27 +00:00
Vincent Sanders
7ab835df8f
implement Element::className
2013-01-23 17:00:13 +00:00
Michael Drake
4e756f6088
Remove architecture from UA string.
2013-01-14 13:59:07 +00:00
John-Mark Bell
a6b08c674f
Fix handling of junk input
2013-01-12 20:57:01 +00:00
John-Mark Bell
261528747c
Remove code that hasn't been used since 2004.
2013-01-12 02:35:09 +00:00
John-Mark Bell
d0d3d31e97
Revert "Treat cookies from HTTP and HTTPS as identical."
...
Sadly, this breaks path cookies on HTTPS sites. The correct
fix is to implement RFC6265 in full (probably replacing
urldb with something less complex, too).
This reverts commit 924f8844d4
.
2013-01-04 22:06:31 +00:00
John-Mark Bell
568a9c2b8f
Remove junk "http_equiv" string.
2013-01-03 00:33:36 +00:00
John-Mark Bell
924f8844d4
Treat cookies from HTTP and HTTPS as identical.
2013-01-03 00:28:51 +00:00
John-Mark Bell
ea3f09a724
Correctly emit entities when serialising to HTML.
2012-12-30 23:37:06 +00:00
Vincent Sanders
347fdf0743
add dom event handler to document object
2012-12-17 14:55:16 +00:00
Vincent Sanders
912b9de928
ensure default action fetcher is set to NULL
2012-12-06 19:33:25 +00:00
Vincent Sanders
646aed64ff
change to parameterised parser binding creation
2012-12-06 18:04:43 +00:00
Vincent Sanders
fb5d763d75
extend corestings with event types
2012-11-28 17:19:49 +00:00
Vincent Sanders
ce309aa5a9
add message retrival of error codes ensuring there are messages for all codes
2012-11-26 17:32:57 +00:00
Adrien Destugues - PulkoMandy
eb28188661
Update the BeOS/Haiku port
...
* Toolbar use HVIF icons on Haiku
* Download window
* Some tweaks to the event loop to let network traffic happen
Signed-off-by: François Revol <revol@free.fr>
2012-11-24 21:39:40 +01:00
Michael Drake
8bccf16158
Check if box with imagemap at point has area at point.
2012-11-22 17:40:20 +00:00
Vincent Sanders
7d83151d1a
make nsurl_access() not assert with being passed a NULL url as it is assumed elsewhere this will never fail.
2012-11-22 17:04:26 +00:00
Chris Young
7df658618c
Close file when we've finished parsing it.
2012-11-11 11:48:42 +00:00
John-Mark Bell
ce640e59fd
Report (and ignore) failure to load non-existent document. (Credit: Chris Young)
2012-11-11 11:31:34 +00:00
Vincent Sanders
a79e098817
remove redundant domutils and put functionality in existing utils/libdom
2012-11-10 11:44:38 +00:00
John-Mark Bell
4d58ed6562
Port hotlist load/save to libdom.
2012-11-09 23:23:04 +00:00
John-Mark Bell
79bd44fcb4
Fix conditionals to be sane
2012-11-09 23:23:04 +00:00
Vincent Sanders
43fb761f45
add document.body, head and documentElement getters
...
add a dom utility file and use it
2012-11-07 18:53:05 +00:00
Vincent Sanders
2b4a359425
reduce call overhead on log messages
2012-11-05 15:49:23 +00:00
Daniel Silverstone
b23aee2f09
type=search is a new-fangled HTML5 thing which we treat as input and thus give EX width hinting. Closes #3578446
2012-11-04 17:29:26 +00:00
Michael Drake
9ab851a5a9
Fix join with rel part of " ". Add a few tests.
2012-11-02 10:54:34 +00:00
Michael Drake
a526209e74
More useful title info for images.
2012-10-24 18:22:45 +01:00
Vincent Sanders
f18bbd48c7
Improve error handling in html content
2012-10-17 21:52:43 +01:00
Michael Drake
e2bde3482b
Remove double ;.
2012-10-16 18:36:34 +01:00
Michael Drake
53b51c8083
Add newline at end of file.
2012-10-14 18:32:15 +01:00
Michael Drake
4fccdf18f3
Move dom walker to utils/libdom.{c|h}. Add a few HTML elements to core strings.
2012-10-12 16:21:29 +01:00
Michael Drake
672fa0a8e2
Make url_{get|reform|destroy}_components static.
2012-10-11 20:12:06 +01:00
Michael Drake
d84e3fd773
Add nsurl_replace_query. Add tests. Make tester itterate remaining lwc_strings.
2012-10-11 19:23:22 +01:00
Michael Drake
4c4e93ea54
Remove unused function.
2012-10-11 17:49:01 +01:00
Michael Drake
8ab9430bb4
Don't need url_compare any more.
2012-10-11 17:24:00 +01:00
Michael Drake
25cacb19c8
Ensure correct error type is returned.
2012-10-11 14:21:13 +01:00
Michael Drake
93ee8f48c1
Fix dead store.
2012-10-11 14:11:49 +01:00
Michael Drake
20425b6914
Ensure non-void functions have a return at the end, even though it shouldn't get there, to squash warning.
2012-10-11 11:58:27 +01:00
Michael Drake
9d29c8b48a
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
2012-10-08 20:34:34 +01:00
Michael Drake
1b9b870921
Add "https" lwc string.
2012-10-08 19:26:35 +01:00
Vincent Sanders
5800789df2
trivial docuemntation cleanups to address some of the huge number of docuemntation warnings
2012-10-08 14:52:24 +01:00
Daniel Silverstone
9cb4d00ea9
If you pass CI_BUILD=xxx to make, it will build a CI #xxx into the version string and also mention it in the testament
2012-10-06 18:12:57 +01:00
Michael Drake
aeac82ff17
Remove url_parent.
2012-10-06 14:11:29 +01:00
Michael Drake
40343b740d
Add nusrl_parent function, to get parent path URL.
2012-10-06 14:06:38 +01:00
Michael Drake
01f421611c
Remove unused functions.
2012-10-05 17:29:19 +01:00
Michael Drake
3d337642bd
Don't let it read off the front of empty relative URLs.
2012-10-02 20:20:38 +01:00
Michael Drake
d5e1616a45
Fix select elements. Requires latest libdom.
2012-09-19 14:42:05 +01:00
Michael Drake
b134279644
Allow the presence of form inputs to be obtained without knowledge of html content internals.
2012-08-20 22:02:37 +01:00
Vincent Sanders
cc6c3a7c70
add mint to mmap exclude list
2012-08-13 21:03:37 +01:00
Vincent Sanders
f58b5924a5
alter file fetcher to use mmap where available
2012-08-13 17:00:43 +01:00
Michael Drake
8e8c75cfe3
Fix RO build.
2012-08-13 15:41:26 +01:00
Vincent Sanders
de982b4d3e
fix windows build format specifiers
...
add install target for windows - creates installer rather than actually installing
2012-08-12 21:52:39 +01:00
Michael Drake
b0ca8175bb
Dodge a clang warning.
2012-08-09 17:44:59 +01:00
Vincent Sanders
db76dd3b1a
extend completion types
2012-07-30 22:55:13 +01:00
Michael Drake
4bd23e73ab
s/object/option/
2012-07-26 18:27:15 +01:00
Michael Drake
2f408f0ecb
More use of interns.
2012-07-26 15:57:33 +01:00
Michael Drake
81e079e747
Use interns for string comparisons.
2012-07-26 14:49:27 +01:00
Vincent Sanders
25cdea3351
doxygen serious warning cleanup
2012-07-24 16:19:49 +01:00
Michael Drake
26a92340e2
Compare interns instead of strings in html_forms.c
2012-07-23 12:06:43 +01:00
Michael Drake
f6f2bcbcde
Interned string cleanup, phase 6 (final): Move html.c to corestring.
2012-07-22 23:28:45 +01:00
Michael Drake
5dadb1a0ec
Interned string cleanup, phase 5: Move imagemap.c to corestring.
2012-07-22 20:52:34 +01:00
Michael Drake
1947019095
Interned string cleanup, phase 4: Move html_script.c to corestring.
2012-07-22 18:58:22 +01:00
Michael Drake
9de20d9a1a
Interned string cleanup, phase 3: Move html_forms.c to corestring.
2012-07-22 18:01:10 +01:00
Michael Drake
2ad24f39da
Interned string cleanup, phase 2: Create utils/corestrings and use it in css handler.
2012-07-22 15:48:55 +01:00
Daniel Silverstone
98e2b3f4df
git-testament: Cope with detached HEAD better
2012-07-15 13:56:33 +01:00
Daniel Silverstone
ea5a8ed771
Make log times line up for neatness
2012-07-07 18:01:57 +01:00
Chris Young
7ae14f77a2
Ensure backslashes are escaped in the GECOS string. Fixes a warning when building under Windows.
2012-07-07 10:14:44 +01:00
John Mark Bell
a1b119b2cc
Remove bogus sanity checks -- the content factory removed the need for these.
...
svn path=/trunk/netsurf/; revision=13988
2012-06-26 23:06:37 +00:00
Daniel Silverstone
0437f81c55
Testament generation now supports git
...
svn path=/trunk/netsurf/; revision=13946
2012-06-04 15:48:21 +00:00
Daniel Silverstone
9dc9e36bc3
Fix FTP detection. Thanks to Etienne Cochard <etienne.cochard@gmail.com> for spotting the bug.
...
svn path=/trunk/netsurf/; revision=13930
2012-05-23 10:34:30 +00:00
François Revel
647a36e2ee
Redo r13857 differently, to avoid issues with non-unixish shells.
...
svn path=/trunk/netsurf/; revision=13858
2012-04-12 18:17:56 +00:00
François Revel
480282085f
Make sure we use the default locale before parsing output of a localized program.
...
This fixes generating the testament here.
svn path=/trunk/netsurf/; revision=13857
2012-04-12 16:42:02 +00:00
Rob Kendrick
0adac87454
Add a perl script for splitting out messages files again
...
svn path=/trunk/netsurf/; revision=13669
2012-03-25 10:26:02 +00:00
Rob Kendrick
104e19994e
Fix message merging script's manipulation patterns to mean we don't need any code changes on the C side.
...
svn path=/trunk/netsurf/; revision=13668
2012-03-25 10:25:15 +00:00
Rob Kendrick
99701232b2
Script to merge messages files. More tag manipulation patterns needed.
...
svn path=/trunk/netsurf/; revision=13662
2012-03-25 09:39:54 +00:00
François Revel
57676ad1c0
Reworked r13532 in a cleaner way. The FLEX_ARRAY_LEN_DECL macro from utils.h should be used when declaring an empty array at end of struct.
...
svn path=/trunk/netsurf/; revision=13535
2012-03-19 18:24:43 +00:00
François Revel
3d3bb0c5cf
Workaround use of C99 flex array. gcc2 did not support it, only 0-len arrays. Possibly a FLEX_ARRAY_LEN macro could be defined in utils.h instead.
...
svn path=/trunk/netsurf/; revision=13532
2012-03-19 02:45:53 +00:00
Vincent Sanders
c0b0dbd373
fix incorrect type in message loading
...
zlib has changed
typedef voidp gzFile;
to
typedef struct gzFile_s *gzFile;
historically the gzFile *fp has efectively expanded to void**fp
The compiler considerd void ** to be identical to void* as void cannot
be dereferenced and compilation suceeded.
With a concrete type it does not work.
svn path=/trunk/netsurf/; revision=13517
2012-03-14 16:42:02 +00:00
John Mark Bell
26a1bb7718
Use S_IRWXU where appropriate
...
svn path=/trunk/netsurf/; revision=13439
2012-02-10 20:02:13 +00:00
Michael Drake
67f2470d5a
Pass whether background images are wanted in redraw_context.
...
svn path=/trunk/netsurf/; revision=13335
2011-12-23 22:39:25 +00:00
John Mark Bell
6ef2df13f7
Fix const correctness
...
svn path=/trunk/netsurf/; revision=13228
2011-12-04 11:12:17 +00:00
Michael Drake
714f07c48b
Rename nsurl_enquire to nsurl_has_component.
...
svn path=/trunk/netsurf/; revision=13183
2011-11-27 18:32:06 +00:00
Michael Drake
de10eff59c
Don't escape '|'.
...
svn path=/trunk/netsurf/; revision=13162
2011-11-23 16:27:20 +00:00
Michael Drake
04f6957141
Fix handling of bad mailto: urls.
...
svn path=/trunk/netsurf/; revision=13113
2011-11-03 12:15:32 +00:00
Michael Drake
3ecf3c1eaf
Fix empty port separator and redundant port removal when credentials are present.
...
svn path=/trunk/netsurf/; revision=13108
2011-10-31 22:23:02 +00:00
Michael Drake
a4dc04e44a
Test numbers before calling strncmp.
...
svn path=/trunk/netsurf/; revision=13107
2011-10-31 22:17:05 +00:00
Michael Drake
d64e09aef7
Make sure port's just 80, before removing in http case.
...
svn path=/trunk/netsurf/; revision=13106
2011-10-31 22:13:38 +00:00
Michael Drake
ea761e16e6
nsurl optimisation: Remove a load of branches into fewer.
...
svn path=/trunk/netsurf/; revision=13105
2011-10-31 22:02:40 +00:00
Michael Drake
3936e6df15
Remove some code that's not needed. Fix redundant port handling.
...
svn path=/trunk/netsurf/; revision=13104
2011-10-31 21:47:10 +00:00
Michael Drake
c6f13db858
Don't need to generate string from scratch in nsurl_defragment, just copy.
...
svn path=/trunk/netsurf/; revision=13103
2011-10-31 21:27:11 +00:00
Michael Drake
f980e6015f
nsurl optimisation: Don't use separate allocations for nsurl strings.
...
svn path=/trunk/netsurf/; revision=13102
2011-10-31 21:13:29 +00:00
Michael Drake
a112bfb676
Function for adding fragment onto nsurl.
...
svn path=/trunk/netsurf/; revision=13087
2011-10-28 19:18:14 +00:00
John Mark Bell
f90aeba984
Appease ancient Perl installs.
...
svn path=/trunk/netsurf/; revision=13079
2011-10-24 22:52:12 +00:00
John Mark Bell
da930e48ad
Use local variables instead of global filehandles
...
svn path=/trunk/netsurf/; revision=13068
2011-10-17 21:55:45 +00:00
Michael Drake
62248c06d3
Don't need to rescan authority if there was no scheme. Bring documentation back into sync with code. Make pre-authority slash skipping more robust.
...
svn path=/trunk/netsurf/; revision=13061
2011-10-15 14:03:13 +00:00
John Mark Bell
5b644acf61
Move timeval_subtract to utils/log.c & make it static, as it's not used anywhere else
...
svn path=/trunk/netsurf/; revision=13059
2011-10-15 13:11:04 +00:00
John Mark Bell
ee930d97e4
Fix handling of no scheme
...
svn path=/trunk/netsurf/; revision=13055
2011-10-15 11:51:54 +00:00
John Mark Bell
ca4dfc7f1e
Move nsurl test suite into test/
...
Fix up llcache tester to reflect nsurl changes
Make handling of http:,http:/,http:// consistent
Fix buffer overflow when presented with an input string: "http://"
svn path=/trunk/netsurf/; revision=13051
2011-10-14 21:29:13 +00:00
Michael Drake
c69e75220d
Remove unused variable.
...
svn path=/trunk/netsurf/; revision=13048
2011-10-14 20:54:18 +00:00
Michael Drake
9bf80e3788
Improve bad URL handling.
...
svn path=/trunk/netsurf/; revision=13045
2011-10-14 13:54:52 +00:00
Michael Drake
0826de092f
Fix double inclusion of host/port separator when login credentials are present. Add tests to tester.
...
svn path=/trunk/netsurf/; revision=13040
2011-10-13 19:39:30 +00:00
Michael Drake
606d7cc64e
Add nsurl testing rig.
...
svn path=/trunk/netsurf/; revision=13035
2011-10-11 14:59:32 +00:00
Michael Drake
9a7b316661
Set scheme_end marker after advance due to leading whitespace.
...
svn path=/trunk/netsurf/; revision=13034
2011-10-11 14:54:28 +00:00
Michael Drake
624967f30a
Pedantic spacing fix.
...
svn path=/trunk/netsurf/; revision=13009
2011-10-08 13:14:08 +00:00
Michael Drake
642d773e2f
Add function to get at url length.
...
svn path=/trunk/netsurf/; revision=13003
2011-10-08 12:03:54 +00:00
Michael Drake
c8bdbdd2e7
Handle joining to a base with no path.
...
svn path=/trunk/netsurf/; revision=12983
2011-10-07 21:16:35 +00:00
Michael Drake
3fde9589c1
Remove unused url_normalise() and don't include regex.h.
...
svn path=/trunk/netsurf/; revision=12971
2011-10-06 12:38:47 +00:00
Michael Drake
fd5ad500c5
Only need to cope with trailing whitespace if it exists.
...
svn path=/trunk/netsurf/; revision=12969
2011-10-06 11:53:23 +00:00
Michael Drake
1203c4baf2
Ensure trailing whitespace is ignored.
...
svn path=/trunk/netsurf/; revision=12960
2011-10-05 20:16:19 +00:00
Michael Drake
7d3a84231e
Optimise nsurl__is_no_escape.
...
svn path=/trunk/netsurf/; revision=12957
2011-10-05 15:43:44 +00:00
Michael Drake
7d0b91caa7
Make sure the fragment remover sets the nsurl to NULL on failure.
...
svn path=/trunk/netsurf/; revision=12956
2011-10-05 12:15:27 +00:00
Michael Drake
921e9959e6
Namespaceing.
...
svn path=/trunk/netsurf/; revision=12955
2011-10-05 12:13:26 +00:00
Michael Drake
0c30fe98af
Handle % in URL without 2 hex digits after.
...
svn path=/trunk/netsurf/; revision=12953
2011-10-05 09:46:06 +00:00
Michael Drake
20c70fcb90
Fix upper case hex and return -1 for invalid hex.
...
svn path=/trunk/netsurf/; revision=12952
2011-10-05 09:41:54 +00:00
Vincent Sanders
c18c9b5511
make url character checks table driven and remove expensive strchr
...
svn path=/trunk/netsurf/; revision=12951
2011-10-05 09:33:56 +00:00
Michael Drake
280ece6df9
Handle upper case hex.
...
svn path=/trunk/netsurf/; revision=12950
2011-10-05 09:30:12 +00:00
Vincent Sanders
a25f87a739
make nsurl__create_from_section correctly escape characters as per RFC3986
...
svn path=/trunk/netsurf/; revision=12948
2011-10-04 22:32:04 +00:00
John Mark Bell
170136a4e8
Ensure refcounts add up
...
svn path=/trunk/netsurf/; revision=12944
2011-10-03 22:13:45 +00:00
Michael Drake
6366f25f0d
Remove LOG.
...
svn path=/trunk/netsurf/; revision=12936
2011-10-03 20:56:35 +00:00
Michael Drake
a522d9ff14
Fix host/path with no scheme.
...
svn path=/trunk/netsurf/; revision=12935
2011-10-03 20:54:41 +00:00
Michael Drake
898b01e721
More conversion to nsurl. (box->href, object params, imagemaps, (i)frames)
...
svn path=/trunk/netsurf/; revision=12933
2011-10-03 20:28:29 +00:00
Michael Drake
a595d7c4bb
Fix parse of url with host name only.
...
svn path=/trunk/netsurf/; revision=12925
2011-10-03 11:36:26 +00:00
Michael Drake
2220e1c725
Fragment component doesn't include hash.
...
svn path=/trunk/netsurf/; revision=12924
2011-10-03 11:35:02 +00:00
Michael Drake
f97d7425a8
lwc version of ring function.
...
svn path=/trunk/netsurf/; revision=12911
2011-09-29 15:32:39 +00:00
Michael Drake
970d6dd835
Add function to get a nsurl with fragment removed from a nsurl.
...
svn path=/trunk/netsurf/; revision=12903
2011-09-28 11:26:10 +00:00
Michael Drake
7e7e1f6ed3
Squash erroneous warnings abuout uninitalised variable use from gcc 3.4.6.
...
svn path=/trunk/netsurf/; revision=12901
2011-09-27 12:08:23 +00:00
Michael Drake
e1f7a37f15
Port fetch layer to nsurl. Remove unused fetch_get_referer function.
...
svn path=/trunk/netsurf/; revision=12899
2011-09-27 11:07:32 +00:00
Michael Drake
a269a82d1f
s/nsurl_get_lwc/nsurl_get_component/
...
svn path=/trunk/netsurf/; revision=12898
2011-09-27 08:18:32 +00:00
Michael Drake
e90f794706
Add nsurl_get_lwc function.
...
svn path=/trunk/netsurf/; revision=12894
2011-09-26 21:50:16 +00:00
Michael Drake
75d61bca44
Simply return bool from nsurl_compare.
...
svn path=/trunk/netsurf/; revision=12889
2011-09-26 14:57:45 +00:00
Michael Drake
47b18439e7
Change if/else if ladder to a switch.
...
svn path=/trunk/netsurf/; revision=12887
2011-09-26 14:12:19 +00:00
Michael Drake
85e5fcea40
Updated documentation.
...
svn path=/trunk/netsurf/; revision=12884
2011-09-26 13:29:05 +00:00
Michael Drake
38caddcf93
Add means to find out if a NetSurf URL object contains a given component.
...
svn path=/trunk/netsurf/; revision=12883
2011-09-26 13:27:20 +00:00
Michael Drake
dc53b47e0b
Don't return length from nsurl_access.
...
svn path=/trunk/netsurf/; revision=12882
2011-09-26 12:19:35 +00:00
Michael Drake
1385dea029
Assert that the url exists before reducing its reference count. Thanks to Martin Bazley.
...
svn path=/trunk/netsurf/; revision=12865
2011-09-23 09:06:05 +00:00
Michael Drake
2837f05094
nsurl_access must return const.
...
svn path=/trunk/netsurf/; revision=12863
2011-09-22 20:45:38 +00:00
Michael Drake
828b5b44c7
Simplify nsurl_access and sync implementation with API.
...
svn path=/trunk/netsurf/; revision=12862
2011-09-22 20:28:26 +00:00
Michael Drake
8c861347c0
Add nsurl_ref for copying, replace nsurl_destroy with nsurl_unref, and add nsurl_access for accessing a pointer to string data internal to the NetSurf URL object.
...
svn path=/trunk/netsurf/; revision=12861
2011-09-22 16:28:46 +00:00
Michael Drake
9f3a082658
New URL handling (unused atm).
...
svn path=/trunk/netsurf/; revision=12843
2011-09-21 14:36:42 +00:00
Vincent Sanders
dec633ca8e
make high level cache take a parameter structure
...
make hlcache have a single global container
svn path=/trunk/netsurf/; revision=12779
2011-09-08 12:04:57 +00:00
Michael Drake
4075648e7a
Content interface to get at contextual content at point.
...
svn path=/trunk/netsurf/; revision=12753
2011-09-06 18:07:30 +00:00
John Mark Bell
338544df09
Squash warnings
...
svn path=/trunk/netsurf/; revision=12721
2011-09-05 07:19:04 +00:00
John Mark Bell
6807fa854d
Sniff content types where appropriate.
...
We never sniff for CSS, nor for non-page artefacts (e.g. treeview icons)
svn path=/trunk/netsurf/; revision=12707
2011-09-04 06:28:09 +00:00
John Mark Bell
3e1bd0d0bf
Skip over credentials when lower casing host
...
svn path=/trunk/netsurf/; revision=12624
2011-07-24 12:11:11 +00:00
John Mark Bell
b34502af82
Refactor http utilities
...
svn path=/trunk/netsurf/; revision=12595
2011-07-08 08:38:17 +00:00
Michael Drake
eddae6af06
Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
...
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake
b57c2e0bee
Move rectangle type to utils/types.h
...
svn path=/trunk/netsurf/; revision=12525
2011-06-28 15:18:48 +00:00
John Mark Bell
e71691bae8
Merge branches/jmb/content-factory to trunk
...
svn path=/trunk/netsurf/; revision=12283
2011-05-06 20:40:09 +00:00
John Mark Bell
f55474bf78
Make strchrnul stupid.
...
svn path=/trunk/netsurf/; revision=12174
2011-04-08 07:18:27 +00:00
John Mark Bell
ff60007458
Fix build with NDEBUG defined
...
svn path=/trunk/netsurf/; revision=12154
2011-04-03 22:23:14 +00:00
Vincent Sanders
74ffc40e92
move logging initialisation
...
svn path=/trunk/netsurf/; revision=12152
2011-04-02 13:05:55 +00:00
Vincent Sanders
ad12c46af5
remove extraneous logging
...
fix windows path_to_url coping with NULL input and allocation errors.
remove forced verbose logging
svn path=/trunk/netsurf/; revision=12147
2011-03-29 20:50:31 +00:00
Vincent Sanders
402aaeb368
make windows frontend use
...
svn path=/trunk/netsurf/; revision=12146
2011-03-29 20:38:40 +00:00
Michael Drake
66f6e9eff5
Rename utils/resource to utils/filepath to avoid confusion with resource: fetcher.
...
svn path=/trunk/netsurf/; revision=12088
2011-03-17 11:26:30 +00:00
Vincent Sanders
1da7b161f8
Stop gtk printing from exploding if its unable to initialise the job
...
add interface to clone a high level cache handle
make generic printing core call new hlcache interface
svn path=/trunk/netsurf/; revision=12068
2011-03-15 22:02:06 +00:00
Daniel Silverstone
1cd4c59f99
Slightly safer operation on RO
...
svn path=/trunk/netsurf/; revision=12064
2011-03-15 18:43:41 +00:00
Daniel Silverstone
a4b99f5c31
Remove use of POSIX.pm from svn-testament -- RISCOS seems to be incomplete in that respect
...
svn path=/trunk/netsurf/; revision=12062
2011-03-15 17:55:13 +00:00
Daniel Silverstone
775a139103
And use POSIX::uname for the hostname
...
svn path=/trunk/netsurf/; revision=12061
2011-03-15 15:49:08 +00:00
Daniel Silverstone
6d2a7a3495
Corify a bunch of svn-testament to work better on RISC OS with a bit of luck
...
svn path=/trunk/netsurf/; revision=12060
2011-03-15 15:45:18 +00:00
Chris Young
1d764f7bf7
Fix warning
...
svn path=/trunk/netsurf/; revision=12056
2011-03-15 00:26:25 +00:00
Chris Young
bdf75f07aa
Try harder to get useful values if (a) getent is not available or (b) HOSTNAME env-var
...
does not exist.
svn path=/trunk/netsurf/; revision=12055
2011-03-15 00:20:18 +00:00
John Mark Bell
408f78b737
Move schedule.h to utils/
...
svn path=/trunk/netsurf/; revision=12039
2011-03-13 22:50:54 +00:00
Chris Young
c615507e15
Set version using testament.h instead of old ARexx script
...
svn path=/trunk/netsurf/; revision=12028
2011-03-13 17:32:00 +00:00
Daniel Silverstone
514b94b1f4
Add hostname and path
...
svn path=/trunk/netsurf/; revision=12023
2011-03-13 12:17:18 +00:00
Daniel Silverstone
8695000b83
Slightly better out-of-svn build info
...
svn path=/trunk/netsurf/; revision=12022
2011-03-13 12:09:01 +00:00
Daniel Silverstone
cc18b5f21e
Initial testament functionality
...
svn path=/trunk/netsurf/; revision=12020
2011-03-13 11:59:20 +00:00
John Mark Bell
0c7c722e23
Log to stderr
...
svn path=/trunk/netsurf/; revision=11983
2011-03-12 19:13:27 +00:00
Daniel Silverstone
7e85d15cb6
Add a deaf monkey frontend. TODO: Make it listen
...
svn path=/trunk/netsurf/; revision=11968
2011-03-12 15:08:07 +00:00
John Mark Bell
f71dcf9667
Further hackery for the inconsistency of iconv() APIs
...
svn path=/trunk/netsurf/; revision=11951
2011-03-09 21:30:54 +00:00
John Mark Bell
021d3afd3e
Fix comment
...
svn path=/trunk/netsurf/; revision=11798
2011-02-25 19:41:13 +00:00
Vincent Sanders
0231675abf
add resource handling
...
move gtk and framebuffer to use generic resource handling
svn path=/trunk/netsurf/; revision=11772
2011-02-23 22:27:55 +00:00
John Mark Bell
c550ae0e69
Parser for Content-Disposition header
...
svn path=/trunk/netsurf/; revision=11765
2011-02-22 23:46:03 +00:00
Vincent Sanders
3c414e7668
Stop win32 frontend using 100% cpu time when idle
...
svn path=/trunk/netsurf/; revision=11633
2011-02-08 23:42:18 +00:00
Vincent Sanders
aa2865c7a4
add compatability for inet_pton and inet_aton
...
svn path=/trunk/netsurf/; revision=11627
2011-02-07 14:41:44 +00:00
John Mark Bell
a128b7acec
Rationalise definition of NO_IPV6 for atari frontend
...
svn path=/trunk/netsurf/; revision=11623
2011-02-06 15:40:36 +00:00
John Mark Bell
656a2d20c1
Explicitly cast unused results to void
...
svn path=/trunk/netsurf/; revision=11596
2011-02-01 21:50:34 +00:00
Sven Weidauer
fd23621211
Changing Xcode project file to build using the Makefiles and fixed some warnings.
...
svn path=/trunk/netsurf/; revision=11558
2011-01-31 07:57:52 +00:00
François Revel
3060423700
Remove odd WARNFLAGS copied from Atari stuff. Silence warning about redeclared strcasestr().
...
svn path=/trunk/netsurf/; revision=11381
2011-01-19 01:42:54 +00:00
John Mark Bell
e65bdafbe3
Fix url_host_is_ip_address() when encountering blatently invalid IPv4 addresses (which inet_aton fails to notice).
...
Also fix a number of insidious buffer overflows.
svn path=/trunk/netsurf/; revision=11293
2011-01-12 21:48:07 +00:00
John Mark Bell
8c09af5568
Add Mac OS X detection to config.h (credit: Sven Weidauer)
...
svn path=/trunk/netsurf/; revision=11291
2011-01-12 20:15:04 +00:00
James Bursa
ae44623e0d
Remove unused include.
...
svn path=/trunk/netsurf/; revision=11273
2011-01-09 21:39:49 +00:00
John Mark Bell
124e4cd788
Atari frontend (credit: Ole Loots)
...
svn path=/trunk/netsurf/; revision=11218
2011-01-05 21:02:22 +00:00
John Mark Bell
ed2fcc7121
AmigaOS 3 doesn't support IPv6, either
...
svn path=/trunk/netsurf/; revision=11147
2010-12-29 21:25:09 +00:00
John Mark Bell
a501aeaabe
malloc.h is non-standard. Remove it
...
svn path=/trunk/netsurf/; revision=11141
2010-12-29 18:39:20 +00:00
Daniel Silverstone
8f734e5b7a
Add RING_COUNTBYLWCHOST
...
svn path=/trunk/netsurf/; revision=11107
2010-12-20 10:31:59 +00:00
John Mark Bell
b550f27f4b
Fix OpenBSD build (credit: Anthony Bentley)
...
svn path=/trunk/netsurf/; revision=11054
2010-12-14 08:38:20 +00:00
Chris Young
e3073b6623
OS4's Roadshow doesn't have IPv6 yet
...
svn path=/trunk/netsurf/; revision=11031
2010-12-12 11:37:14 +00:00
François Revel
afc6a62b7a
BeOS does not support IPv6, and never will.
...
svn path=/trunk/netsurf/; revision=11014
2010-12-05 19:16:49 +00:00
Rob Kendrick
632f7df653
More IPv6 compatibility work, added hack to cope with incorrect calls to url_host_is_ip_address while we fix the callers.
...
svn path=/trunk/netsurf/; revision=10968
2010-12-04 16:35:48 +00:00
Rob Kendrick
fe56f45ac6
Reimplement url_host_is_ipaddress() to cope with IPv6 addresses and decimal/hex IPv4 addresses in addition to dotted-quad v4 addresses.
...
svn path=/trunk/netsurf/; revision=10959
2010-12-04 14:47:03 +00:00
Vincent Sanders
18196e6692
Improve url_host_is_ip_address
...
svn path=/trunk/netsurf/; revision=10951
2010-11-26 15:36:27 +00:00
Vincent Sanders
07c62407e2
Fix windows url bar
...
Clean up toolbar and urlbar creation and subclassing
svn path=/trunk/netsurf/; revision=10891
2010-10-17 00:08:35 +00:00
Vincent Sanders
aa2587254a
Update build instructions
...
Remove warnings from treeview branch merge
svn path=/trunk/netsurf/; revision=10874
2010-10-09 18:00:32 +00:00
Vincent Sanders
4d6534622e
add realpath compatability for windows
...
svn path=/trunk/netsurf/; revision=10873
2010-10-09 17:11:28 +00:00
John Mark Bell
6173bb0e6c
Merge treeview-redux to trunk
...
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
Rob Kendrick
195c1ea319
Add seconds/microseconds wallclock time to log output, move header includes to inside guard.
...
svn path=/trunk/netsurf/; revision=10864
2010-10-04 19:58:10 +00:00
James Bursa
a359fb13fa
Remove themes.c and themes.h. Not used and implementation was never done.
...
svn path=/trunk/netsurf/; revision=10765
2010-09-12 23:57:27 +00:00
Vincent Sanders
faca1687ce
hell with it, heres a version which should result in fewer portability complaints
...
svn path=/trunk/netsurf/; revision=10756
2010-09-11 18:47:36 +00:00
Chris Young
4cbb19f218
Fix compilation on AmigaOS4
...
svn path=/trunk/netsurf/; revision=10755
2010-09-11 17:45:23 +00:00
John Mark Bell
2077918805
Merge branches/vince/netsurf-file-fetcher to trunk
...
r=jmb
svn path=/trunk/netsurf/; revision=10750
2010-09-09 21:45:59 +00:00
François Revel
d4ea23abab
Add a fallback for PRId64 as it's not defined on BeOS. It's only valid for 32bit, but any 64bit platform should be recent enough to have them.
...
svn path=/trunk/netsurf/; revision=10674
2010-08-02 21:44:35 +00:00
Vincent Sanders
bda534e12a
Clean up how GTK frontend finds resources
...
svn path=/trunk/netsurf/; revision=10668
2010-07-28 15:22:44 +00:00
Michael Drake
513793a060
Fix inventory file leafname.
...
svn path=/trunk/netsurf/; revision=10624
2010-07-09 21:36:55 +00:00
Chris Young
d6eb28d5de
Replace unnecessarily complicated path concatenation with something simpler and
...
easily adaptable to different platform path structures.
svn path=/trunk/netsurf/; revision=10621
2010-07-09 19:45:44 +00:00
Daniel Silverstone
5e887908b3
Consolidate several 'myrealloc' functions into ns_realloc, rename one which *is* different, thereby eliminating the word 'myrealloc' from the NS codebase
...
svn path=/trunk/netsurf/; revision=10530
2010-04-30 16:06:03 +00:00
Vincent Sanders
bd9c0d9a7e
hopefully fix the _GNU_SOURCE mess
...
svn path=/trunk/netsurf/; revision=10487
2010-04-26 09:27:16 +00:00
Vincent Sanders
03bb3e8636
remove _GNU_SOURCE define from everywhere.
...
strndup is not standard so provide an implementation.
svn path=/trunk/netsurf/; revision=10474
2010-04-24 15:22:17 +00:00
John Mark Bell
f81ea3419e
Fix Content-Type header parsing
...
svn path=/trunk/netsurf/; revision=10426
2010-04-18 11:14:56 +00:00
Daniel Silverstone
0235cc68d8
When iterating a linked list, please to always remember to *iterate* and not just stop after one item.
...
svn path=/trunk/netsurf/; revision=10400
2010-04-14 16:28:55 +00:00
Daniel Silverstone
6948496d45
Ensure that aborting or releasing hlcache handles will result in nascent retrieval contexts being cleaned up
...
svn path=/trunk/netsurf/; revision=10298
2010-04-08 11:21:50 +00:00
John Mark Bell
2748fe4f64
Make downloads work again.
...
svn path=/trunk/netsurf/; revision=10243
2010-04-05 21:35:38 +00:00
Vincent Sanders
95e4a737de
rationalise the usage of the file scheme
...
svn path=/trunk/netsurf/; revision=10221
2010-03-31 13:59:57 +00:00
John Mark Bell
e6d85230f1
Squash warning
...
svn path=/trunk/netsurf/; revision=10197
2010-03-28 23:40:12 +00:00
Daniel Silverstone
270ef59a98
Merge jmb/new-cache; r=dsilvers,rs=vince
...
svn path=/trunk/netsurf/; revision=10180
2010-03-28 12:56:39 +00:00