bug-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-librejs] Parser failure results in blocked script


From: Dave Thompson
Subject: [Bug-librejs] Parser failure results in blocked script
Date: Thu, 12 Mar 2015 11:50:11 -0400
User-agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu)

When LibreJS fails to parse a JavaScript file, it rejects the script as
non-free.  This results in the blocking of valid scripts, otherwise
marked appropriately as free software.  It seems there is no workaround
outside of each user having to whitelist the script.  There is surely a
better way to handle this that doesn't make a web application unusable.

An example of a parser failure is in KiwiIRC, an application that Janith
Perera and myself are trying to make LibreJS compatible for the upcoming
LibrePlanet conference.  This file fails to parse in 6.0.8:
https://kiwiirc.com/client/assets/libs/engine.io.bundle.js

Note that the above script is from kiwiirc.com, which has had no work
done to make it LibreJS compatible, but a patch set Janith and I are
working on does add @licstart/@licend metadata.

This issue would be much easier to workaround if LibreJS would tell me
where the parser error occurred, so I could just adjust the script
accordingly.

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate



reply via email to

[Prev in Thread] Current Thread [Next in Thread]