Thursday, 28 February 2019

Duktape ECMA/Java-script support

So my evaluation of javascript support in NS3.9 (Ubuntu 18.04) has found.

 

The version of duktape used is 2.3.  Reference found in duktape.h.

 

According to the duktape site version 2.3 is ECMAscript 5.0-5.1 compliant.

 

According to ECMAscript 5.0 documentation the try-catch statement is supported.

 

My testing with NS 3.9 shows try-catch is not working.  So something is amiss!

 

As jquery requires try-catch it is prevented from working in NS.

 

The DOM module is also severely truncated.

 

There are nearly 1800 unimplemented bindings listed in UnimplementedJavascript.txt.

 

Many of these bindings are critical!

 

It is my conclusion that there would be very few javascript enabled sites that the current implantation of NS3.9
could or would actually render.

 

Walter

Wednesday, 27 February 2019

Re: JavaScript won't enable. Version 3.9.

On 27/02/2019, David Pitt <pittdj@pittdj.co.uk> wrote:
> Walter Zambotti, on 27 Feb, wrote:
>
>> Downloaded and compiled latest build 3.8 which turned out to be 3.9 in
>> the
>> about.
>>
>> I have ensured that Enable JavaScript is ticked in the netsurf
>> preferences
>> content tab.
>>
>> But when I visit any java site including :
>>
>> www.whatismybrowser.com/detect/is-javascript-enabled
>>
>> All sites claim JavaScript is not enabled.
>
> Javascript in NetSurf is rather limited and insufficient to pass online
> tests.
>
> http://www.netsurf-browser.org/documentation/info.html#JavaScript
>
> --
> David Pitt
>
>

Also needing to be remembered, is that javascript can be interpreted
differently, between different web browsers, and, between different
versions of the same web browser.

It is one of the problems of client-side processing.

--
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is,
you'll know what the answer means."
- Deep Thought,
Chapter 28 of Book 1 of
"The Hitchhiker's Guide to the Galaxy:
A Trilogy In Four Parts",
written by Douglas Adams,
published by Pan Books, 1992

....................................................

Re: JavaScript won't enable. Version 3.9.

Walter Zambotti, on 27 Feb, wrote:

> Downloaded and compiled latest build 3.8 which turned out to be 3.9 in the
> about.
>
> I have ensured that Enable JavaScript is ticked in the netsurf preferences
> content tab.
>
> But when I visit any java site including :
>
> www.whatismybrowser.com/detect/is-javascript-enabled
>
> All sites claim JavaScript is not enabled.

Javascript in NetSurf is rather limited and insufficient to pass online
tests.

http://www.netsurf-browser.org/documentation/info.html#JavaScript

--
David Pitt

Re: JavaScript won't enable. Version 3.9.

On 27/02/2019, Walter Zambotti <zambotti@iinet.net.au> wrote:
> Downloaded and compiled latest build 3.8 which turned out to be 3.9 in the
> about.
>
> I have ensured that Enable JavaScript is ticked in the netsurf preferences
> content tab.
>
> But when I visit any java site including :
>

Just out of interest, whilst the names may appear confusingly similar,
java is completely different to javascript.


> www.whatismybrowser.com/detect/is-javascript-enabled
>
> All sites claim JavaScript is not enabled.
>
> Have I missed something?
>
> Walter
>


--
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is,
you'll know what the answer means."
- Deep Thought,
Chapter 28 of Book 1 of
"The Hitchhiker's Guide to the Galaxy:
A Trilogy In Four Parts",
written by Douglas Adams,
published by Pan Books, 1992

....................................................

Tuesday, 26 February 2019

Re: JavaScript won't enable. Version 3.9.

On 27 Feb 2019 Walter Zambotti <zambotti@iinet.net.au> wrote:

> Downloaded and compiled latest build 3.8 which turned out to be 3.9 in the
> about.

> I have ensured that Enable JavaScript is ticked in the netsurf preferences
> content tab.

> But when I visit any java site including :

> www.whatismybrowser.com/detect/is-javascript-enabled

> All sites claim JavaScript is not enabled.

> Have I missed something?

Maybe. JavaScript is working here in 3.9, (Dev CI#4562) under RISC OS
5.25, RComp version (24-Aug 18), except on the site you mention. In
particular, https://javatester.org/javascript.html conforms that
JavaScript version 2.2 is working.

Best wishes,

Peter.

--
Peter Young (zfc Au) and family
Prestbury, Cheltenham, Glos. GL52, England
http://pnyoung.orpheusweb.co.uk
pnyoung@ormail.co.uk

JavaScript won't enable. Version 3.9.

Downloaded and compiled latest build 3.8 which turned out to be 3.9 in the about.


I have ensured that Enable JavaScript is ticked in the netsurf preferences content tab.


But when I visit any java site including :


www.whatismybrowser.com/detect/is-javascript-enabled


All sites claim JavaScript is not enabled.


Have I missed something?


Walter





Sent from my Xperia by Sony smartphone

Sunday, 24 February 2019

Re: CA certificates file

On 23/02/2019 22:41, David Higton wrote:
> Hi guys,
>
> The CA certs file as supplied with RISC OS is some months out of date.
> Also, RISC OS HardDisc4 distributions come with the same file, but in
> a different location and under a different name.
>
> Can NetSurf be made to use the one that RISC OS provides?

Probably, although it should most likely check for its existence first
and fall back to the one that is provided with NetSurf itself (which
will always be current at the time the relevant release of NetSurf is
made). Patches to set_default() in frontends/riscos/gui.c are most welcome.

> Is it a command line option, for example?

The relevant configuration option is called "ca_bundle" and its value is
expected to be a (host-platform native) path to a standard certificate
bundle file. This may be set manually by editing the configuration file.
There is a corresponding "ca_path" which may be used to provide a path
to a standard indexed certificate directory (which is probably
irrelevant for RISC OS, as such a thing would have to exist first).

Like all configuration options, it can be passed on the command line, thus:

--<option-name>=<option-value>

So, for ca_bundle (on an OS that uses Unix-style paths):

--ca_bundle=/path/to/file

However, the command line should be reserved for a user's own
configuration choices and not be used in shipped software.


J.

Saturday, 23 February 2019

CA certificates file

Hi guys,

The CA certs file as supplied with RISC OS is some months out of date.
Also, RISC OS HardDisc4 distributions come with the same file, but in
a different location and under a different name.

Can NetSurf be made to use the one that RISC OS provides? Is it a
command line option, for example?

I'm looking at writing a little app that gets an updated copy of the
CA certs file if and only if it has been updated. If I can make it
work, it could save lots of people the trouble of working with an
out of date file or having to work out how to get an updated copy
without risking unexpected/unwanted changes to !Boot.

Dave

Thursday, 21 February 2019

Re: Crash on loading NetSurf

In message <mpro.pn9wz701726v002f2.lists@stevefryatt.org.uk>
on 21 Feb 2019 Steve Fryatt <lists@stevefryatt.org.uk> wrote:

> On 21 Feb, David Higton wrote in message
> <c67dbf8957.DaveMeUK@my.inbox.com>:

>> My best suggestion is to delete your existing NS application, then install
>> NS again *properly*, following the instructions, i.e. there are a !Boot
>> and a !System to merge.

> Have the various cache files, which reside in Scrap (IIRC), been deleted? I
> have a recollation of corrupt Unicode cache (RUFL) data preventing the
> browser from starting.

Thanks, Steve, that has solved the problem :-)


Regards

Andrew
--
Andrew Pinder

Re: SVG

In article <5789df88f8Lists@Torrens.org>, Richard Torrens (lists)
<Lists@Torrens.org> wrote:
> In article <5789dcef69tim@timil.com>, Tim Hill <tim@timil.com> wrote:
> > > It's also curious tha the text is truncated on the left margin as
> > > if CSS left-margin has a negative value.

> > You can try and decipher their CSS here:
> > https://www.electronics-notes.com/parts/css/style.complete.min.css?go=6

> > (The page in NetSurf is blank. Press f8 then use search and replace
> > to change the } into }+newline and change the wrapwidth to 1024.)

> Yes, I got that and had a quick look. Not an easy page to understand
> without a lot of processing.

Looking at it using Chrome Dev's "Inspect" the CSS is best described as a
rat's nest.

> > There's a width of 1270px in there which may be responsible but I
> > didn't cross-refer all the style and whatnot.

> It cannot be a negative left-margin as negative values aren't allowed.

> However - might Metsurf be calculating the margin and ending up with a
> negative result?

I didn't look in detail after I saw "width:1270px;".
If it contains such fixed widths and if centred in a narrower window it
would extend too far left and right offscreen. Widening the NetSurf
window brings it into view. If the window is already as wide as your
monitor, reducing the page to 80% zoom would probably bring it on screen.

--
Tim Hill
--------
Find an event to attend at:
http://timil.com/riscos/calendar/
Mimemap and other stuff:
http://timil.com/riscos/

Re: SVG

In article <5789dcef69tim@timil.com>,
Tim Hill <tim@timil.com> wrote:
> > It's also curious tha the text is truncated on the left margin as if
> > CSS left-margin has a negative value.

> You can try and decipher their CSS here:
> https://www.electronics-notes.com/parts/css/style.complete.min.css?go=6

> (The page in NetSurf is blank. Press f8 then use search and replace to
> change the } into }+newline and change the wrapwidth to 1024.)

Yes, I got that and had a quick look. Not an easy page to understand
without a lot of processing.

> There's a width of 1270px in there which may be responsible but I didn't
> cross-refer all the style and whatnot.

It cannot be a negative left-margin as negative values aren't allowed.

However - might Metsurf be calculating the margin and ending up with a
negative result?

--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!

Re: SVG

In article <5789d3c2d1Lists@Torrens.org>, Richard Torrens (lists)
<Lists@Torrens.org> wrote:
> How far has SVG rendering got?

> sVGs are not common yet, but I met a page with some prsent, which don't
> display properly:

> https://www.electronics-notes.com/articles/antennas-propagation/dipole-antenna/folded-dipole.php

> It's also curious tha the text is truncated on the left margin as if
> CSS left-margin has a negative value.

You can try and decipher their CSS here:
https://www.electronics-notes.com/parts/css/style.complete.min.css?go=6

(The page in NetSurf is blank. Press f8 then use search and replace to
change the } into }+newline and change the wrapwidth to 1024.)

There's a width of 1270px in there which may be responsible but I didn't
cross-refer all the style and whatnot.

--
Tim Hill
--------
Find an event to attend at:
http://timil.com/riscos/calendar/
Mimemap and other stuff:
http://timil.com/riscos/

Re: SVG

In message <5789d3c2d1Lists@Torrens.org>
"Richard Torrens (lists)" <Lists@Torrens.org> wrote:

> How far has SVG rendering got?
>
> sVGs are not common yet, but I met a page with some prsent, which don't
> display properly:
>
> https://www.electronics-notes.com/articles/antennas-propagation/dipole-antenna/folded-dipole.php
>
> It's also curious tha the text is truncated on the left margin as if CSS
> left-margin has a negative value.

It was pointed out recently that the SVGs of QR codes, created by the
QrCode app by calling out to https://api.qrserver.com, render completely
black. They contain a line <rect stype=...>; deleting this line causes
them to be rendered correctly by NetSurf.

Dave

SVG

How far has SVG rendering got?

sVGs are not common yet, but I met a page with some prsent, which don't
display properly:

https://www.electronics-notes.com/articles/antennas-propagation/dipole-antenna/folded-dipole.php

It's also curious tha the text is truncated on the left margin as if CSS
left-margin has a negative value.

--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!

Re: Crash on loading NetSurf

On 19/02/2019 22:29, Andrew Pinder wrote:
> Message from NetSurf: "The Unicode font library could not be
> initialised. Please report this to the developers."
>
> I don't believe this is a bug - it's the aftermath of a crash.
>
> This ARMini (RO 5.22) had been out of use for a period due to a house
> move. I had been using release 4335, which seemed stable. I
> downloaded release 4528 as the then most recent. This ran but wasn't
> displaying some pages correctly. I think the next day I had a crash
> while downloading email with NetFetch. This caused disc problems.
> After using DiscKnight and repairing Messenger I then tried loading
> NetSurf. I got the above error message. I deleted r4528 and reverted
> to r4335. The error message still occurs on attempting to load
> NetSurf. I double checked the modules in System to make sure they
> were the ones that came with r4335.
>
> My best guess is that a Unicode file has been corrupted. How do I
> check? Where do I find an up to date version of Unicode to install?

The Unicode resource (!Unicode) has very little to do with the Unicode
font library used internally by NetSurf.

Please provide a NetSurf log file (which can be found by running the
OpenScrap obey file stored in the NetSurf application directory -- shift
double click on !NetSurf to open it) from a crashing start -- this
contains copious information which will allow the developers to
understand what is going on. In all likelihood you have a font installed
that causes it to get confused. I thought we'd found and fixed all of
the issues here over the last decade, but clearly not.


J.

Re: Crash on loading NetSurf

On 21 Feb, David Higton wrote in message
<c67dbf8957.DaveMeUK@my.inbox.com>:

> My best suggestion is to delete your existing NS application, then install
> NS again *properly*, following the instructions, i.e. there are a !Boot
> and a !System to merge.

Have the various cache files, which reside in Scrap (IIRC), been deleted? I
have a recollation of corrupt Unicode cache (RUFL) data preventing the
browser from starting.

--
Steve Fryatt - Leeds, England

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

Re: Crash on loading NetSurf

In message <a3a7838957.Andrew-Pin@waitrose.com>
Andrew Pinder <Andrew.Pinder@tiscali.co.uk> wrote:

>In message <57895fcbc1ron.briscoe@blueyonder.co.uk>
> on 20 Feb 2019 Ron Briscoe <ron.briscoe@blueyonder.co.uk> wrote:
>
>> In article <56b3fc8857.Andrew-Pin@waitrose.com>,
>> Andrew Pinder <Andrew.Pinder@tiscali.co.uk> wrote:
>>> My best guess is that a Unicode file has been corrupted. How do I
>>> check? Where do I find an up to date version of Unicode to install?
>
>> There is a Unicode application in the !Boot supplied in the NetSurf zip.
>
>On checking I seem to have messed up restoring files - I had reverted
>to r4316 from Jan 2018, not r4335 from May 2018. Also, I hadn't
>reverted the !Unicode folder in Boot.Resources when I thought I had.
>
>But doing those correctly and then rebooting doesn't solve the
>problem.

My best suggestion is to delete your existing NS application, then
install NS again *properly*, following the instructions, i.e. there
are a !Boot and a !System to merge.

Dave

Wednesday, 20 February 2019

Re: Crash on loading NetSurf

In message <57895fcbc1ron.briscoe@blueyonder.co.uk>
on 20 Feb 2019 Ron Briscoe <ron.briscoe@blueyonder.co.uk> wrote:

> In article <56b3fc8857.Andrew-Pin@waitrose.com>,
> Andrew Pinder <Andrew.Pinder@tiscali.co.uk> wrote:
>> My best guess is that a Unicode file has been corrupted. How do I
>> check? Where do I find an up to date version of Unicode to install?

> There is a Unicode application in the !Boot supplied in the NetSurf zip.

On checking I seem to have messed up restoring files - I had reverted
to r4316 from Jan 2018, not r4335 from May 2018. Also, I hadn't
reverted the !Unicode folder in Boot.Resources when I thought I had.

But doing those correctly and then rebooting doesn't solve the
problem.


Regards

Andrew
--
Andrew Pinder

Re: Crash on loading NetSurf

In article <56b3fc8857.Andrew-Pin@waitrose.com>,
Andrew Pinder <Andrew.Pinder@tiscali.co.uk> wrote:
> My best guess is that a Unicode file has been corrupted. How do I
> check? Where do I find an up to date version of Unicode to install?

There is a Unicode application in the !Boot supplied in the NetSurf zip.

Regards Ron.

Tuesday, 19 February 2019

Crash on loading NetSurf

Message from NetSurf: "The Unicode font library could not be
initialised. Please report this to the developers."

I don't believe this is a bug - it's the aftermath of a crash.

This ARMini (RO 5.22) had been out of use for a period due to a house
move. I had been using release 4335, which seemed stable. I
downloaded release 4528 as the then most recent. This ran but wasn't
displaying some pages correctly. I think the next day I had a crash
while downloading email with NetFetch. This caused disc problems.
After using DiscKnight and repairing Messenger I then tried loading
NetSurf. I got the above error message. I deleted r4528 and reverted
to r4335. The error message still occurs on attempting to load
NetSurf. I double checked the modules in System to make sure they
were the ones that came with r4335.

My best guess is that a Unicode file has been corrupted. How do I
check? Where do I find an up to date version of Unicode to install?

Regards


Andrew
--
Andrew Pinder

Re: [gccsdk] Patch to move add_headers() to build-program

On 09/01/2019 21:10, Cameron Cawley wrote:
> Hi
>
> This patch moves the various implementations of add_headers to
> build-program in an attempt to reduce duplication between recipes.
>
> Regards
> Cameron

Thanks for that, now committed.

Lee.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Tuesday, 12 February 2019

Re: mailto:

In article <57852acb56Lists@Torrens.org>, Richard Torrens (lists)
<Lists@Torrens.org> wrote:
> Recent Netsurf seems to have a problem with indirect mailto: urls.


> e.g http://www.burwellness.co.uk/index.html In the body there are two
> email buttons. These call a cgi program which (if the calling button
> has sent a correct CheckVar) returns the relevant URL in the form
> mailto:Richard@torrens.org

NetSurf works as expected if you type a mailto: into the URL bar so it
not working from an indirect script seems odd, doesn't it?

> It is this indirect URL which now does not work. It's an anti-spam
> system I have used for years and I have only recenly noticed it failing.

Curious, I have just thrown together a PHP script here using those same
forms and a method which works in Chrome using header() and it too fails
with NetSurf. I found other postings with similar problems and one
suggested using the Javascript alternative to header() which works in
Chrome, but guess what NetSurf makes of that!! It works if Javascript is
enabled!!! Inform the gentlemen of the press!!!!

www.timil.com/temp/email-addy.php

to download that script:

www.timil.com/temp/dl-email-addy.php

HTH

T

--
Tim Hill
--------
Find an event to attend at:
http://timil.com/riscos/calendar/
Mimemap and other stuff:
http://timil.com/riscos/

mailto:

Recent Netsurf seems to have a problem with indirect mailto: urls.

e.g
http://www.burwellness.co.uk/index.html
In the body there are two email buttons. These call a cgi program which
(if the calling button has sent a correct CheckVar) returns the relevant
URL in the form mailto:Richard@torrens.org

It is this indirect URL which now does not work. It's an anti-spam system
I have used for years and I have only recenly noticed it failing.

--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!

Saturday, 9 February 2019

Re: GMail in Netsurf 3.9

In article <f8a95c8357.harriet@blueyonder.co.uk>, Harriet Bazley
<lists@bazleyfamily.co.uk> wrote:
> I managed to restore access by copying across the Cookies file from the
> other computer again, but that cookie will presumably eventually expire
> too. :-(

Google seem to be reorganising to cope with the soon-to-happen demise of
Google+

Friday, 8 February 2019

GMail in Netsurf 3.9

On 30 Jan 2019 as I do recall,
Bret Busby wrote:


> On 22/01/2019, Harriet Bazley <lists at bazleyfamily.co.uk> wrote:
> > On 21 Jan 2019 as I do recall,
> > Bret Busby wrote:
> >
> >> The gmail seems to be as usable as gmail is usable (it does not work
> >> with firefox, for me - the way it is displayed in firefox, is
> >> illegible).
> >>
> >
> > Yes, it is - but can you enter your password to log in? (Better
> > take a copy of the COokies file if you plan to experiment...)
> >
> > Google now appear to have wrapped GMail into the concept of their general
> > 'Google Account', which I suspect is what is causing the problem.

>
> Okay.
>
> With Netsurf having just crashed due to the Internet connection
> breaking up, I have started a new session og gmail, and the login
> process is as it has been for a while - account name - 1 screen, then
> password input - second screen, and I logged in without any problem.
>
> Then the browser crashed again, when the Internet connection broke
> again, but, I managed to log in again, without any problem.

Well, here it's just happened again: GMail session logged out (not by
me this time!), account name ("one account. All of Google") - 1 screen ,
password input - second screen, error message at
https://accounts.google.com/signin/rejected?hl=en-GB&rrk=47&rhlk=js

"Couldn't sign you in

"The browser that you're using doesn't support JavaScript, or has
JavaScript turned off."

I tried enabling Netsurf's JavaScript, in case it was just doing a
stupid-level check, but the page is absolutely stiff with JS:

if (AF_initDataInitializeCallback)
{AF_initDataInitializeCallback(AF_initDataKeys, AF_initDataChunkQueue,
AF_dataServiceRequests);}if (!AF_initDataCallback) {AF_initDataCallback
= function(chunk) {AF_initDataChunkQueue.push(chunk);} etc etc

I managed to restore access by copying across the Cookies file from the
other computer again, but that cookie will presumably eventually expire
too. :-(

--
Harriet Bazley == Loyaulte me lie ==

Computers can never replace human stupidity.

Thursday, 7 February 2019

Re: [Rpcemu] PATCH: Implement OS_Reset "0x0ff"

Ping? Forgive me if I've overlooked something, but I think I'm still waiting for feedback on the latest version of this patch.

On Tue, 6 Nov 2018 at 19:32, Reuben Thomas <rrt@sc3d.org> wrote:
On Wed, 31 Oct 2018 at 16:49, Reuben Thomas <rrt@sc3d.org> wrote:
On Wed, 31 Oct 2018 at 16:49, Reuben Thomas <rrt@sc3d.org> wrote:

Thanks (corrected to "&OFF"; a case where the code lagged behind the comment). Indeed, the online documentation at https://www.riscosopen.org/wiki/documentation/show/OS_Reset has the right hex but the wrong ASCII.

I fixed the documentation wiki, BTW, so it's right now!

Is there anything else that needs doing?
 
--


--