It looks like the bug is to do with how LibreJS handles the intrinsic event (onclick) Javascript that the main script relies on.
Thank you for pointing this out. On Mon, Feb 5, 2018 at 10:41 AM, John C. Vernaleo <[email protected]> wrote: > Thanks for looking in to it. > > I changed the form of declaring the license and Librejs now correctly > detects the script as GPL3. It shows a green 'OK' but the script still > fails to work if LibreJS is enabled. If I disable LibreJS the script works > fine. This seems a bit odd to me since I didn't think LibreJS was supposed > to modify a page at all if there was no non-free JS to block. This is a > very simple script (just changing some colors when it gets an onClick). > > ------------------------------------------------------- > John C. Vernaleo, Ph.D. > www.netpurgatory.com > [email protected] > ------------------------------------------------------- > > On Sun, 4 Feb 2018, Nathan Nichols wrote: > > It seems like Stallman.org is using an unsupported method of declaring the >> license. >> >> The machine readable format for license declarations that LibreJS uses >> has changedin the most recent version. This was necessary in order to not >> break the asynchronous >> >> JS loading model that browsers use. >> >> Here is a description I wrote of the new machine readable license >> declaration format. >> >> >> Script licenses are specified as follows: >> >> "// @license [magnet link] [identifier]" >> [Script here] >> "// @license-end" >> >> "Identifier" is a name of a license from the following list, and "magnet >> link" is that >> license's exact corresponding magnet link. >> >> { >> 'Apache-2.0':{ >> 'URL': 'http://www.apache.org/licenses/LICENSE-2.0', >> 'Magnet link': 'magnet:?xt=urn:btih:8e4f440f4 >> c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt' >> }, >> 'Artistic-2.0':{ >> 'URL': 'http://www.perlfoundation.org/artistic_license_2_0', >> 'Magnet link': 'magnet:?xt=urn:btih:54fd2283f >> 9dbdf29466d2df1a98bf8f65cafe314&dn=artistic-2.0.txt' >> }, >> 'Boost':{ >> 'URL': 'http://www.boost.org/LICENSE_1_0.txt', >> 'Magnet link': 'magnet:?xt=urn:btih:89a97c535 >> 628232f2f3888c2b7b8ffd4c078cec0&dn=Boost-1.0.txt' >> }, >> 'BSD-3-Clause':{ >> 'URL': 'http://opensource.org/licenses/BSD-3-Clause', >> 'Magnet link': 'magnet:?xt=urn:btih:c80d50af7 >> d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt', >> }, >> 'CPAL-1.0':{ >> 'URL': 'http://opensource.org/licenses/cpal_1.0', >> 'Magnet link': 'magnet:?xt=urn:btih:84143bc45 >> 939fc8fa42921d619a95462c2031c5c&dn=cpal-1.0.txt' >> }, >> 'CC0-1.0':{ >> 'URL': 'http://creativecommons.org/publicdomain/zero/1.0/legalcode', >> 'Magnet link': 'magnet:?xt=urn:btih:90dc5c0be >> 029de84e523b9b3922520e79e0e6f08&dn=cc0.txt' >> }, >> 'EPL-1.0':{ >> 'URL': 'http://www.eclipse.org/legal/epl-v10.html', >> 'Magnet link': 'magnet:?xt=urn:btih:4c6a2ad00 >> 18cd461e9b0fc44e1b340d2c1828b22&dn=epl-1.0.txt' >> }, >> 'Expat':{ >> 'URL': 'http://www.jclark.com/xml/copying.txt', >> 'Magnet link': 'magnet:?xt=urn:btih:d3d9a9a65 >> 95521f9666a5e94cc830dab83b65699&dn=expat.txt' >> }, >> 'FreeBSD':{ >> 'URL': 'http://www.freebsd.org/copyright/freebsd-license.html', >> 'Magnet link': 'magnet:?xt=urn:btih:87f119ba0 >> b429ba17a44b4bffcab33165ebdacc0&dn=freebsd.txt' >> }, >> 'GPL-2.0':{ >> 'URL': 'http://www.gnu.org/licenses/gpl-2.0.html', >> 'Magnet link': 'magnet:?xt=urn:btih:cf05388f2 >> 679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt' >> }, >> 'GPL-3.0':{ >> 'URL': 'http://www.gnu.org/licenses/gpl-3.0.html', >> 'Magnet link': 'magnet:?xt=urn:btih:1f739d935 >> 676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt' >> }, >> 'LGPL-2.1':{ >> 'URL': 'http://www.gnu.org/licenses/lgpl-2.1.html', >> 'Magnet link': 'magnet:?xt=urn:btih:5de60da91 >> 7303dbfad4f93fb1b985ced5a89eac2&dn=lgpl-2.1.txt' >> }, >> 'LGPL-3.0':{ >> 'URL': 'http://www.gnu.org/licenses/lgpl-3.0.html', >> 'Magnet link': 'magnet:?xt=urn:btih:0ef1b8170 >> b3b615170ff270def6427c317705f85&dn=lgpl-3.0.txt' >> }, >> 'AGPL-3.0':{ >> 'URL': 'http://www.gnu.org/licenses/agpl-3.0.html', >> 'Magnet link': 'magnet:?xt=urn:btih:0b31508ae >> b0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt' >> }, >> 'ISC':{ >> 'URL': 'https://www.isc.org/downloads/software-support-policy/isc- >> license/', >> 'Magnet link': 'magnet:?xt=urn:btih:b8999bbaf >> 509c08d127678643c515b9ab0836bae&dn=ISC.txt' >> }, >> 'MPL-2.0':{ >> 'URL': 'http://www.mozilla.org/MPL/2.0', >> 'Magnet link': 'magnet:?xt=urn:btih:3877d6d54 >> b3accd4bc32f8a48bf32ebc0901502a&dn=mpl-2.0.txt' >> }, >> 'UPL-1.0': { >> 'URL': 'https://oss.oracle.com/licenses/upl/', >> 'Magnet link': 'magnet:?xt=urn:btih:478974f4d >> 41c3fa84c4befba25f283527fad107d&dn=upl-1.0.txt' >> }, >> 'WTFPL': { >> 'URL': 'http://www.wtfpl.net/txt/copying/', >> 'Magnet link': 'magnet:?xt=urn:btih:723febf9f >> 6185544f57f0660a41489c7d6b4931b&dn=wtfpl.txt' >> }, >> 'Unlicense':{ >> 'URL': 'http://unlicense.org/UNLICENSE', >> 'Magnet link': 'magnet:?xt=urn:btih:5ac446d35 >> 272cc2e4e85e4325b146d0b7ca8f50c&dn=unlicense.txt' >> }, >> 'X11':{ >> 'URL': 'http://www.xfree86.org/3.3.6/COPYRIGHT2.html#3', >> 'Magnet link': 'magnet:?xt=urn:btih:5305d9188 >> 6084f776adcf57509a648432709a7c7&dn=x11.txt' >> }, >> 'Modified-BSD':{ >> 'URL': 'http://www.xfree86.org/current/LICENSE4.html', >> 'Magnet link': 'magnet:?xt=urn:btih:12f2ec9e8 >> de2a3b0002a33d518d6010cc8ab2ae9&dn=xfree86.txt' >> } >> } >> >> (This data was taken directly from the old LibreJS's manual.) >> >> On Fri, Feb 2, 2018 at 11:00 AM, <[email protected]> wrote: >> Send Bug-librejs mailing list submissions to >> [email protected] >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.gnu.org/mailman/listinfo/bug-librejs >> or, via email, send a message with subject or body 'help' to >> [email protected] >> >> You can reach the person managing the list at >> [email protected] >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Bug-librejs digest..." >> >> >> Today's Topics: >> >> 1. odd librejs behavior on stallman.org (John C. Vernaleo) >> >> >> ------------------------------------------------------------ >> ---------- >> >> Message: 1 >> Date: Fri, 2 Feb 2018 11:06:31 -0500 (EST) >> From: "John C. Vernaleo" <[email protected]> >> To: [email protected] >> Subject: [Bug-librejs] odd librejs behavior on stallman.org >> Message-ID: <alpine.DEB.2.20.1802021101180.31533@triforce> >> Content-Type: text/plain; format=flowed; charset=US-ASCII >> >> Hi. I run stallman.org for rms. We have a small amount of js on >> most of >> the pages that contains a license and worked with LibreJS until >> recently. >> On LibreJS 7.11 (firefox 58.0.1) librejs is now blocking the js code >> despite having @licstart and @licend with GPL3 in between (so >> basically >> the exact thing in the example on the librejs page. >> >> Even stranger, the js still doesn't work if I try to whitelist it in >> LibreJS. With LibreJS disabled it works fine. >> >> An example page with this is: >> https://stallman.org/amazon.html >> >> Any thoughts as to what is going on or why the librejs behavior >> changed >> would be appriciated. >> >> Thanks! >> John >> >> ------------------------------------------------------- >> John C. Vernaleo, Ph.D. >> www.netpurgatory.com >> [email protected] >> ------------------------------------------------------- >> >> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> Bug-librejs mailing list >> [email protected] >> https://lists.gnu.org/mailman/listinfo/bug-librejs >> >> >> ------------------------------ >> >> End of Bug-librejs Digest, Vol 57, Issue 1 >> ****************************************** >> >> >> >>
