help-librejs
[Top][All Lists]
Advanced

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

Re: [Help-librejs] How to make external JS accepted?


From: Nik Nyby
Subject: Re: [Help-librejs] How to make external JS accepted?
Date: Mon, 01 Dec 2014 23:41:02 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

> I've added some popular JS libraries and improved the shell script to
> directly generate the JSON object.

Excellent.. thanks. I'll apply your patch now.

> Perhaps I can think about a way to make this process easier. Some
> libraries like jQuery and Bootstrap have frequent updates. It would be
> helpful if LibreJS includes such libraries with only minimal manual work.

Yeah, any suggestions on how to make this easier would be good. Mozilla
also has a scheme for whitelisting scripts, which they do when
inspecting add-ons going into their repository. They have this script:

https://github.com/mozilla/amo-validator/blob/master/extras/jslibfetcher.py

that downloads the scripts, then the build_whitelist.py script in that
directory makes a whitelist file.

As I was looking into this I found out that an older version of that
code is actually included in the LibreJS repository here:

http://bzr.savannah.gnu.org/lh/librejs/dev/files/head:/tools/library-fetch-tools/

So going forward, we could go the jslibfetcher route, or use gethash.sh,
or something different altogether.



reply via email to

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