bug-librejs
[Top][All Lists]
Advanced

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

[Bug-librejs] Introduction (Ethan Dorta)


From: Ethan Dorta
Subject: [Bug-librejs] Introduction (Ethan Dorta)
Date: Wed, 26 Jul 2017 10:55:57 -0400
User-agent: Mutt/1.8.3 (2017-05-23)

Hello! My name is Ethan Dorta, and I am an intern at the Free Software
Foundation, tasked to work on LibreJS. My job is to help start moving it
from a XUL Extension to a WebExtension, as Firefox no longer supports
anything but it. Also, Chrome is beginning to support it, so we can
extend our reach to more than just Firefox based browsers.

One problem that LibreJS has had both in XUL and WebExtensions is that
response bodies cannot be inspected. This means if we want to inspect
remote JavaScript, we have to make another request to the URL, which is
redundant and wastes bandwidth. However, this seems to be the only way
to do it as of now.
(https://bugzilla.mozilla.org/show_bug.cgi?id=1255894 is the request we are
tracking. Hopefully it will be added soon.)

As of now, I have made a demo using Acorn and WebPack, that inspects
files and blocks requests if the comments meet a certain condition. For
demonstration purposes, that condition is the comment containing "hu".
Also, I forgot to add parsing for embedded scripts, so I apologize for
that, it will block it if the script itself contains "hu". Demo
attached, can't wait to work with you guys!

Attachment: Addon.zip
Description: Zip archive


reply via email to

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