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
GFYI [Official] EaseUS Christmas 2024 B...
Merry Christmas and ...zevish — 08:07
AirVPN Christmas Sale 2024!
AirVPN CHRISTMAS SAL...jasonX — 07:52
ON1 Software
ON1 Photo RAW 2025.1...jasonX — 06:29
QOwnNotes 19.1.6
24.12.4 The wel...Kool — 12:56
INTEL Arc Graphics 32.0.101.6325/6253 dr...
Highlights Fix...harlan4096 — 11:06

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

[-]
Online Staff
harlan4096's profile harlan4096
Administrator
zevish's profile zevish

>