Commit 5d3733cf authored by Andrew Hodgkinson's avatar Andrew Hodgkinson
Browse files

This log message covers changes from the version before last up until now

- i.e. it includes the changes that were part of the intermediate check-in
done yesterday (02/09/97).

New function to go from URL to pathname in urlutils, also changed return
values on those functions which alter the given buffer to return nothing,
rather than the buffer address (which wasn't helpful).

Fixed nasty in the Message_DataLoad code (it thought all loads were
app to app - oops; can in fact just check your_ref, which is 0 if this
is a DataOpen or DataLoad direct from the Filer. PRM 3-253).

Implemented Load Images and View Source buttons.

Small fetch window - configurable in Choices (UseSmall) is the use of a
special 'small' window for fetches. Configurable as if you Shift+Select
click it'll open one of these, which some people might hate, so you
can turn the feature off and the fetch will progress in the browser
window you clicked on, as normal. Default is for this to be on, since
it matches the behaviour of other browsers. This means all Res files
have been updated, except for the Customer build, which can't fetch
external objects as it is a full screen variant.

New pointers for the hotlist autoscroll, including full specification
of their active point offsets in Controls. This means all Sprites files
have been updated.

New sprites for HTML and URI files, so all !Sprites and !Sprites22 have
been updated.

(Suggested by KBracey) You can now drag objects to the toolbars of a window
to fetch into the ancestor (useful for framesets).

Function windows_close_browser now returns void; it only returned an int as
it used to be a Toolbox event handler and I obviously forgot to get rid of
this when I turned it into a general purpose function.

!Run/!RunD/etc. files updated yet again, since the browser now supports
different application names. Corrected fault where Browse$CookiePath was
being unset - should've been Browse$CookieFile and Browse$CookieFileFormat.
420K is no longer enough, so they've all been given 512K for the non-debug
versions (OK since malloc will fill up any excess allocation before starting
to extend the slot size itself).

Fixed global history bug - the history would become corrupted whenever
it exceeded the maximum size specified in Choices.

Fetcher now supports HTTP return code 301 (Moved Permanently). Wrapped in
#ifndef STRICT_PARSER.

I've started on some general documentation, aside from the overdetailed
PSI memory information (which needs updating). Once this gets some substance
to it and achieves a recognisable, maintainable structure, it'll get added
to CVS - for now, there's no point (you'd have trouble making sense of the
various unsorted fragments!).

Right. Time to get rid of SaveDBox.
parent ac76adb8
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -278,13 +278,37 @@ AlterWith:<none>
#
# PtrLnkActvX - Link pointer active point x offset (pixels from left).
# PtrLnkActvY - Link pointer active point y offset (pixels from top).
# PtrMapActvX - Map pointer active point x offset (pixels from left).
# PtrMapActvY - Map pointer active point y offset (pixels from top).
# PtrMapActvX - Map pointer.
# PtrMapActvY
# PtrUDActvX - Up/down frame resize.
# PtrUDActvY
# PtrLRActvX - Left/right frame resize.
# PtrLRActvY
# PtrUDLRActvX - Up/down/left/right frame resize.
# PtrUDLRActvY
# PtrNoRActvX - Can't resize this frame edge or corner.
# PtrNoRActvY
# PtrToSActvX - Hotlist window waiting to auto scroll.
# PtrToSActvY
# PtrScrActvX - Hotlist window auto scrolling.
# PtrScrActvY
PtrLnkActvX:5
PtrLnkActvY:2
PtrMapActvX:8
PtrMapActvY:8
PtrLnkActvY:1
PtrMapActvX:7
PtrMapActvY:7
PtrUDActvX:5
PtrUDActvY:8
PtrLRActvX:8
PtrLRActvY:5
PtrUDLRActvX:7
PtrUDLRActvY:7
PtrNoRActvX:7
PtrNoRActvY:7
PtrToSActvX:0
PtrToSActvY:0
PtrScrActvX:8
PtrScrActvY:8
# End
# ===
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -278,13 +278,37 @@ AlterWith:<none>
#
# PtrLnkActvX - Link pointer active point x offset (pixels from left).
# PtrLnkActvY - Link pointer active point y offset (pixels from top).
# PtrMapActvX - Map pointer active point x offset (pixels from left).
# PtrMapActvY - Map pointer active point y offset (pixels from top).
# PtrMapActvX - Map pointer.
# PtrMapActvY
# PtrUDActvX - Up/down frame resize.
# PtrUDActvY
# PtrLRActvX - Left/right frame resize.
# PtrLRActvY
# PtrUDLRActvX - Up/down/left/right frame resize.
# PtrUDLRActvY
# PtrNoRActvX - Can't resize this frame edge or corner.
# PtrNoRActvY
# PtrToSActvX - Hotlist window waiting to auto scroll.
# PtrToSActvY
# PtrScrActvX - Hotlist window auto scrolling.
# PtrScrActvY
PtrLnkActvX:5
PtrLnkActvY:2
PtrMapActvX:8
PtrMapActvY:8
PtrLnkActvY:1
PtrMapActvX:7
PtrMapActvY:7
PtrUDActvX:5
PtrUDActvY:8
PtrLRActvX:8
PtrLRActvY:5
PtrUDLRActvX:7
PtrUDLRActvY:7
PtrNoRActvX:7
PtrNoRActvY:7
PtrToSActvX:0
PtrToSActvY:0
PtrScrActvX:8
PtrScrActvY:8
# End
# ===
No preview for this file type
No preview for this file type
......@@ -1239,6 +1239,17 @@ _kernel_oserror * html_get_next_token(browser_data * b, unsigned int handle, int
switch (code)
{
#ifndef STRICT_PARSER
/* Moved permanently - drop through to redirection code. Only */
/* do this if not in a STRICT_PARSER build, as in the latter */
/* case slightly broken links (missing '/'s off the ends, and */
/* so-on) aren't hidden by the browser moving on. */
case 301:
#endif
/* Redirect; 'redirect' is a pointer to a new URL. */
case 302:
......
......@@ -356,8 +356,18 @@ _kernel_oserror * history_record_global(char * url)
int size, oldest = *(int *) global_history;
char * e;
char * f = NULL;
char * p = (char *) global_history;
char * p;
/* Lock flex - we want to store pointers for a moment and */
/* can't allow it to move (it shouldn't anyway, but this */
/* makes absolutely sure!). */
flex_set_budge(0);
/* Point to the first byte in 'p', the last byte in 'e', and */
/* start with 'f' pointing to the first byte too. */
p = (char *) global_history;
e = p + flex_size(&global_history) - 1;
f = p;
......@@ -389,7 +399,11 @@ _kernel_oserror * history_record_global(char * url)
/* Copy entries above the entry down over it */
/* and shrink the flex block as appropriate */
memmove(f, f + size, (e - f) - size);
memmove(f, f + size, (e - f + 1) - size); /* (e - f + 1 as e points to the last used byte, not to the first free one) */
/* Allow flex to move again */
flex_set_budge(1);
#ifdef TRACE
flexcount -= size;
......@@ -656,6 +670,10 @@ return;
/* existing title is kept. If the URL can't be */
/* found, the function will fail silently. */
/* */
/* This may make the history exceed its maximum */
/* size. The history will not be truncated to */
/* within that value until a new URL is added. */
/* */
/* Parameters: Pointer to the title string which */
/* is not in a flex block; */
/* */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment