John Mark Bell
89793c2171
Make content_reset actually do what it's meant to (i.e. reset the appropriate members)
...
Fix up CONTENT_MSG_REFRESH scheduled events to gracefully the refresh URL disappearing from under them.
svn path=/trunk/netsurf/; revision=3870
2008-02-27 18:38:41 +00:00
John Mark Bell
1cf46a6792
SignednessWarnings.squash()
...
Aside from a number of instances of const being cast away (mostly relating to the urldb, which is correct to only export const data) this now builds warning-free with GCC 4 on x86, which is nice.
svn path=/trunk/netsurf/; revision=3868
2008-02-25 17:58:00 +00:00
John Mark Bell
ad6fcea6b0
Add url_fragment to extract fragment from URL
...
Optionally allow url_compare to ignore fragments in comparison
Fix handling of url_compare result in a few places
Fix redirects which contain fragments in the Location header
svn path=/trunk/netsurf/; revision=3826
2008-02-03 12:04:48 +00:00
John Mark Bell
78d194cb77
Rework handling of HTTP redirects -- we now count the number of redirects followed for a given item and abort if a fixed limit is reached. This fixes sites which have pages that redirect to themselves.
...
Redirect handling is now transparent to clients of fetchcache.
The new scheme works as follows:
1) Request content for URL (fetchcache()
2) Start fetch of content (fetchcache_go()
3) If no redirect, continue through LOADING, READY, DONE etc. states as before
If redirect, receive NEWPTR for each redirect that occurs, then continue
through LOADING, READY, DONE etc. states as before.
The upshot of this is that redirects result in extra contents being created. It also means that, until LOADING has been received, the content (and thus the URL being fetched) may change. Therefore, fetchcache clients should expect to have to deal with transient data prior to LOADING occurring.
As a necessary side-effect of this, the HTML object URLs and CSS @import URLs are no longer stored alongside the relevant contents. These URLs can be accessed by interrogating the url member of struct content anyway, so it was a rather redundant scheme before.
svn path=/trunk/netsurf/; revision=3787
2008-01-28 01:35:00 +00:00
John Mark Bell
8afe0caedd
Add break; (these things help, now and again)
...
Add ACTION_NONE case to the deferred action switch (shuts GCC up)
svn path=/trunk/netsurf/; revision=3649
2007-11-04 13:47:36 +00:00
Adrian Lees
ac6946ef83
Fix frame-related crash (images.google) caused by destruction of current window when clicking URL/submitting form
...
svn path=/trunk/netsurf/; revision=3644
2007-11-04 01:16:50 +00:00
James Bursa
d8b810b46b
Bug fixes by Franz Korntner.
...
svn path=/trunk/netsurf/; revision=3636
2007-10-28 17:05:39 +00:00
Daniel Silverstone
f025f23c52
Remove the old and crap gesture core
...
svn path=/trunk/netsurf/; revision=3537
2007-09-14 18:33:32 +00:00
Michael Drake
81df02abe4
Fix for Shift+Adjust clicks on links by Christopher Martin.
...
svn path=/trunk/netsurf/; revision=3533
2007-08-26 16:58:06 +00:00
Vincent Sanders
2f864eeecc
Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
...
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
John Mark Bell
cc684469df
Fix division by 0 caused by uninitialised scale value.
...
Break out initialisation of common parts of struct browser_window into their own function.
svn path=/trunk/netsurf/; revision=3481
2007-08-07 07:58:04 +00:00
James Bursa
07c54283e3
Move window scaling from platform-specific code to desktop/browser.c. Modify gtk gui to handle scaling in the same way as RO.
...
svn path=/trunk/netsurf/; revision=3478
2007-08-07 03:55:18 +00:00
Daniel Silverstone
6807b4208a
Remove the netsurf/ from the include paths and rationalise use of <> vs "" in includes
...
NetSurf includes are now done with ""s and other system includes with <>s as C intended.
The scandeps tool has been updated to only look for ""ed includes, and to verify that the
files exist in the tree before adding them to the dependency lines. The depend rule has
therefore been augmented to make sure the autogenerated files are built before it is run.
This is untested under self-hosted RISC OS builds. All else tested and works.
svn path=/trunk/netsurf/; revision=3307
2007-05-30 22:39:54 +00:00
Richard Wilson
bc0c4c4f3e
Don't block new windows for Adjust-click on target='_blank' links.
...
svn path=/trunk/netsurf/; revision=3253
2007-04-08 17:49:42 +00:00
Richard Wilson
00af899230
Open window targets with a new name in a new window. Fix handling of Adjust-click on a form submit when new window opening is disabled.
...
svn path=/trunk/netsurf/; revision=3248
2007-04-07 23:08:31 +00:00
John Mark Bell
9d32795b47
Minor tidying
...
svn path=/trunk/netsurf/; revision=3224
2007-03-25 19:32:41 +00:00
John Mark Bell
9cf5122797
Content handlers should not call warn_user - they should broadcast the
...
error using content_broadcast and leave it to the content owner(s) to
decide what to do about it.
Only use warn_user for top-level contents.
svn path=/trunk/netsurf/; revision=3204
2007-03-11 22:08:57 +00:00
John Mark Bell
25213dca24
Fix handling of cookies in unverifiable transactions caused by a redirect from a fetch into a browser window which was varifiable.
...
svn path=/trunk/netsurf/; revision=3165
2007-02-02 23:08:13 +00:00
James Bursa
a0b6661eb6
Make GTK build compile on FreeBSD.
...
svn path=/trunk/netsurf/; revision=3154
2007-01-29 22:27:15 +00:00
John Mark Bell
df4dbaf4cf
Handle cookies in unverifiable transactions
...
svn path=/trunk/netsurf/; revision=3151
2007-01-27 20:58:20 +00:00
James Bursa
bda01b3135
Fix parsing error when an empty HTML data is returned. Add HTTP status and other information to status bar.
...
svn path=/trunk/netsurf/; revision=3140
2007-01-13 00:21:15 +00:00
Richard Wilson
0b875957cb
Format frame content to correct initial size. Scale iframe co-ordinates.
...
svn path=/trunk/netsurf/; revision=3134
2007-01-03 15:15:54 +00:00
Richard Wilson
f4b8d3a009
Reflow iframes on layout (fix 1617625)
...
svn path=/trunk/netsurf/; revision=3126
2006-12-30 02:10:46 +00:00
Richard Wilson
1353585036
Implement form targets (fix 1619094)
...
svn path=/trunk/netsurf/; revision=3125
2006-12-30 00:34:26 +00:00
Michael Drake
ba23e4b693
Update project URL.
...
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
James Bursa
ec563e60ca
Add browser_window_reformat() and use it instead of content_reformat() to remove browser_window calls from html.c.
...
svn path=/trunk/netsurf/; revision=3071
2006-11-26 21:04:42 +00:00
James Bursa
21af6f7fda
Move frames-related code out of browser.c into a new file. Remove some browser_window calls from html.c.
...
svn path=/trunk/netsurf/; revision=3070
2006-11-26 20:11:20 +00:00
John Mark Bell
118f435133
Unescape fragment identifiers.
...
svn path=/trunk/netsurf/; revision=2973
2006-10-01 18:10:55 +00:00
Richard Wilson
c7f70a8cf6
Stop iframes from all getting the same content.
...
svn path=/trunk/netsurf/; revision=2935
2006-09-08 20:19:08 +00:00
Richard Wilson
b30921382f
Trigger frame recalculation on child frame scale change.
...
svn path=/trunk/netsurf/; revision=2934
2006-09-08 17:18:44 +00:00
Richard Wilson
02a8722cc6
Fix 1553282.
...
svn path=/trunk/netsurf/; revision=2932
2006-09-08 16:57:26 +00:00
Richard Wilson
3e0c02e8e5
Simplify and tidy up RISC OS gui_ functions. Fix toolbar height changing issues for framesets.
...
svn path=/trunk/netsurf/; revision=2924
2006-09-06 22:15:58 +00:00
John Mark Bell
221e5aa2a3
Add frame target support to imagemaps.
...
svn path=/trunk/netsurf/; revision=2920
2006-09-06 00:15:10 +00:00
Richard Wilson
96b8fa5d46
Limit maximum frame nesting level.
...
svn path=/trunk/netsurf/; revision=2918
2006-09-05 17:59:29 +00:00
Richard Wilson
bb8cc24871
Make frame border width external to frame.
...
svn path=/trunk/netsurf/; revision=2912
2006-09-04 21:09:11 +00:00
Richard Wilson
05f16eef8f
Fix 1551183.
...
svn path=/trunk/netsurf/; revision=2911
2006-09-04 16:47:08 +00:00
Richard Wilson
74fa727509
Experimental new frames code.
...
svn path=/trunk/netsurf/; revision=2906
2006-09-02 15:52:41 +00:00
James Bursa
3887fb72ae
Use browser_window_remove_caret() instead of resetting caret-related callbacks directly.
...
svn path=/trunk/netsurf/; revision=2896
2006-08-28 19:35:12 +00:00
Adrian Lees
66c4906fb6
Give Adjust precedence over Select
...
svn path=/trunk/netsurf/; revision=2868
2006-08-19 19:27:59 +00:00
Adrian Lees
5295d21743
Reposition caret when browser window reformatted
...
svn path=/trunk/netsurf/; revision=2839
2006-08-13 03:05:55 +00:00
John Mark Bell
25501c695e
Centralise keypress handling (download and query dialogs still need porting over to wimp_event)
...
Make core browser window invalidate caret callback on mouse clicks
svn path=/trunk/netsurf/; revision=2746
2006-07-13 21:57:35 +00:00
Richard Wilson
ea44d84833
Make adjust-back/forwards/up open content in a new window (implement 1431600)
...
svn path=/trunk/netsurf/; revision=2717
2006-07-05 16:50:35 +00:00
Richard Wilson
a102f34fa6
Make adjust-clicking submit open a new window (fix 1430135)
...
svn path=/trunk/netsurf/; revision=2716
2006-07-05 01:23:25 +00:00
Richard Wilson
667c3b6730
Fix 1516353 and implement 1352354
...
svn path=/trunk/netsurf/; revision=2711
2006-07-04 19:56:37 +00:00
John Mark Bell
5e2567370d
Fix submission of forms in embedded objects; resolve submission URL at
...
form creation time rather than at submit.
svn path=/trunk/netsurf/; revision=2707
2006-07-03 21:41:25 +00:00
Daniel Silverstone
52e973d094
Don't clone a NULL gesturer
...
svn path=/trunk/netsurf/; revision=2613
2006-06-02 13:31:18 +00:00
Daniel Silverstone
8a86b6b2b4
Added rudimentary gesture engine and test in gtk frontend
...
svn path=/trunk/netsurf/; revision=2611
2006-06-02 07:48:13 +00:00
James Bursa
dece339528
Fix box_at_point() for certain cases involving floats (solves unclickable links on Wikipedia). Fix text-selection code that assumed that text boxes would be returned last by box_at_point().
...
svn path=/trunk/netsurf/; revision=2606
2006-05-24 22:55:37 +00:00
Richard Wilson
c7f77b0165
Finish history cloning.
...
svn path=/trunk/netsurf/; revision=2547
2006-04-22 18:24:18 +00:00
Richard Wilson
2b87a0b148
Clone history for child browser windows.
...
svn path=/trunk/netsurf/; revision=2546
2006-04-22 16:38:13 +00:00