Firefox gets a User Scripts API
#1
Information 
Quote:
[Image: firefox-user-scripts-api.png]

Mozilla is working on implementing a UserScripts WebExtensions API in the organization's Firefox web browser.

Firefox, just like Google Chrome and many other web browsers, supports so-called user scripts. These scripts are executed on page load to add, remove, or change functionality on the page that gets loaded.

User scripts exist for numerous purposes: from adding download options on video sites to changing how web page looks.

Mozilla addresses several issues related to user scripts with the upcoming User Scripts API:

* Performance issues -- better isolation of scripts thanks to efficient methods.
* Reliability issues -- issues during page load and race conditions between the page loading and script injection.
* Security issues -- the use of sandboxes for individual user scripts reduces the impact that scripts have may have on each other.

The new API runs each user script in its own sandbox to isolate them from one another; this is a different approach to how content scripts are handled from extensions like Greasemonkey or Tampermonkey, as they are executed in the same process.

Support for providing user scripts with a set of functions, e.g. Greasemonkey GM_ functions, is supported as well

Mozilla's initial plan was to introduce support in Firefox 63 but the introduction has been postponed. The new target is Firefox 68 Stable.
Continue Reading
[-] The following 2 users say Thank You to harlan4096 for this post:
  • Deep900, silversurfer
Reply
#2
In my opinion the most interesting aspect is sandbox for user scripts, that should increase Firefox security very much. It seems Firefox is improving security features very well in development.
[-] The following 2 users say Thank You to Deep900 for this post:
  • harlan4096, silversurfer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
uBOLite_2024.12.23.23
uBOLite_2024.12.23...harlan4096 — 10:29
You found a seed phrase from someone els...
Scammers have inve...harlan4096 — 09:58
Google files remedies proposal in DOJ's ...
The U.S. Departmen...harlan4096 — 09:48
PowerToys 0.87.1
PowerToys 0.87.1 ...harlan4096 — 09:46
GFYI [Official] EaseUS Christmas 2024 B...
Merry Christmas and ...zevish — 08:07

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
No upcoming birthdays.

[-]
Online Staff
There are no staff members currently online.

>