aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [PoC] Log LibreJS reportsnative-messaging-appYuchen Pei2023-10-275-1/+71
| | | | | | | | | | - run ./build.sh - install the built librejs.xpi as a temporary extension[1] - check the librejs version is 7.21.2 - load some sites e.g. <https://fsf.org>, <https://archive.org>, and the reports should be logged into /tmp/librejs.log [1] https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/
* New version releaseYuchen Pei2023-09-173-4/+9
|
* Fixing bypassing Function("...").Yuchen Pei2023-09-171-1/+1
| | | | | | | | | | | | | It is similar to eval(). See, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/Function As a prior art, another extension did the blank ban of Function(): https://addons.mozilla.org/en-US/firefox/addon/noeval-disable-eval/ So let's ban it as well. Bug reported at https://lists.gnu.org/archive/html/bug-librejs/2023-09/msg00000.html
* changing license definition to jsonYuchen Pei2022-10-135-699/+456
| | | | and reuse it in the manual
* fixing a few problems with @license / @license-end regexesYuchen Pei2022-10-132-11/+36
| | | | | | | - trailing whitespace, including newlines are consumed by the opneing regex (added a test case) - added a test case for /* @license ... */ ... /* @license-end */
* let -> const in testsYuchen Pei2022-10-131-61/+61
|
* `// @license` should be at the beginning of a line (mod whitespace)Yuchen Pei2022-10-132-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the following will be processed for @license / @license-end method: // foo.js // // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0 // document.getElementById('bar'); // // @license-end function foo(x, y) { console.log(x + y); } $ node ./utitlities/check-script foo.js [ true, '// // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0\n' + "// document.getElementById('bar');\n" + '// // @license-end\n' + 'function foo(x, y) {\n' + ' console.log(x + y);\n' + '}\n', '\n' + 'Recognized license: "GNU General Public License (GPL) version 3".\n' + 'Script appears to be trivial.' ]
* minor comment fixYuchen Pei2022-10-121-6/+3
|
* refactoring: clean up main_backgroundYuchen Pei2022-09-271-89/+81
|
* refactoring ResponseHandlerYuchen Pei2022-09-271-16/+16
|
* Refactoring response handler to improve readabilityYuchen Pei2022-09-273-23/+43
|
* A better fix for bugs #58131Yuchen Pei2022-09-272-14/+19
|
* simplify process(handler)Yuchen Pei2022-09-271-21/+22
| | | | the only filter has a pre and a post function
* minor renamingYuchen Pei2022-09-272-2/+2
|
* disable contactfinder tests by defaultYuchen Pei2022-09-272-39/+41
| | | | It tends to time out. Also moved injectContactFinder
* minor camelcase renamingYuchen Pei2022-09-261-5/+5
|
* refactoring editHtml.Yuchen Pei2022-09-261-83/+100
| | | | Separating out functions.
* refactor: remove redundant result() in checkScriptAndUpdateReportYuchen Pei2022-09-261-19/+14
|
* typo about returns string or pair in checkScriptAndUpdateReportYuchen Pei2022-09-261-9/+7
|
* adding a node script to check a js fileYuchen Pei2022-09-261-0/+40
|
* acorn update breaks librejsYuchen Pei2022-09-231-1/+1
| | | | also, acorn-loose is not used
* fixing a typoYuchen Pei2022-09-231-1/+1
|
* shellcheck build.shYuchen Pei2022-09-231-3/+4
|
* typosYuchen Pei2022-09-232-2/+2
|
* fixing a bug introduced in 136cb7354a7.Yuchen Pei2022-09-231-4/+10
| | | | | | - the base url of the weblabel page should be the its own url unless set. otherwise the content script may use the url of the current page that references the weblabels page.
* refactor editHtmlYuchen Pei2022-09-222-38/+33
|
* update copyright in license_definitionsYuchen Pei2022-09-221-0/+1
|
* move fname_data.json to commonYuchen Pei2022-09-222-1/+1
|
* Separating out script and license checking routines to common/checksYuchen Pei2022-09-223-374/+404
|
* moving some modules to common/Yuchen Pei2022-09-225-7/+7
|
* clean up external license checking a bitYuchen Pei2022-09-223-8/+17
|
* refactor getScript with better namesYuchen Pei2022-09-221-17/+16
| | | | also moved list manager check out of licenseRead
* refactor: clean up addReportEntry.Yuchen Pei2022-09-221-52/+50
| | | | also some smaller functions.
* refactor: const instead of letYuchen Pei2022-09-221-19/+12
|
* refactor: use setYuchen Pei2022-09-221-4/+4
|
* refactoring getScriptYuchen Pei2022-09-211-6/+6
|
* update copyright in pattern_utilsYuchen Pei2022-09-211-0/+1
|
* refactoring get_scriptYuchen Pei2022-09-211-20/+20
| | | | - index was a confusing arg
* refactor license_readYuchen Pei2022-09-211-53/+53
|
* clean up legacy_license_checkYuchen Pei2022-09-212-16/+12
|
* added some comments for various checksYuchen Pei2022-09-201-0/+3
|
* clean up fullEvaluateYuchen Pei2022-09-201-48/+61
|
* clean up checks for reserved objectsYuchen Pei2022-09-201-23/+26
|
* adding tests of calls to reserved objects.Yuchen Pei2022-09-201-5/+12
|
* Updating copyright to files touched in the previous commits.Yuchen Pei2022-09-207-0/+7
|
* adding a test for prefs defaultYuchen Pei2022-07-291-1/+14
|
* fixing a bug introduced in commit b98cb70b1bcYuchen Pei2022-07-291-1/+2
| | | | bug effect: no default subject and body shown for prefs
* clean up bg/ListManager.jsYuchen Pei2022-07-291-21/+15
|
* cleainig externallicenses doneYuchen Pei2022-07-291-13/+12
|
* clean up bg/externalicenses.js sans optimizedocumentYuchen Pei2022-07-291-33/+15
| | | | fixing a bug introduced in the previous commit too