Sunday, 26 January 2014

Long URLs on RISC OS

I've made some changes to the RISC OS front-end to partly address tickets
#390 and #2053: URL entry fields are now 2047 characters long (which appears
to be up there with the "best of the worst" of the mainstream browsers), and
changing this is now a case of altering a #define in riscos/gui.h and
recompiling. It's a compromise, as RISC OS's inability to change the size of
writable fields on the fly means that longer sizes waste more memory for
each window that's opened.

In addition, over-size URLs are handled more gracefully by browser toolbars:
the user gets a warning and the field is cleared and terminated safely.
Finally, I've fixed a bug where it was possible for toolbar URLs to miss the
conversion from UTF8 into local encoding under some (probably unlikely)
circumstances.

If anyone has any thoughts about the advisability (or otherwise) of these
changes, I'd welcome comments. Otherwise, they are in the branch

http://git.netsurf-browser.org/netsurf.git/log/?h=stevef/urlsize

if someone with access outside of riscos/ could merge them with the master?

There's a new message token in FatMessages, which could do with the non-en
forms translating into appropriate languages: xx.ro.LongURL is the warning
the user gets of URLs which are too long to display.

PS: Should I be deleting my branches once they're merged? If so, what's the
preferred way to do it?

--
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

No comments:

Post a Comment