BrowserWorks / Waterfox-Classic

The Waterfox Classic repository, for legacy systems and customisation.
https://classic.waterfox.net
Mozilla Public License 2.0
177 stars 33 forks source link

Fix MFSA 2022-19 #122

Closed buttercookie42 closed 2 years ago

buttercookie42 commented 2 years ago

As I've been poking around Spidermonkey anyway, this one addresses #119.

Discounting some minor formatting differences and the fact in Firefox the corresponding files have moved to the old subdirectory, the patches for 1770137 apply cleanly. Although if that issue really only applies in conjunction with Top-level await (maybe because nowadays this might possibly be used for *.jsm loading in Firefox?), then we currently don't support that feature anyway.

For bug 1770048 I've started with the ESR patch and adapted it to the best of my knowledge based on the corresponding changes that happened between our code and the current ESR code base in the similar NewArray() function. Because of the changes to utilities.js, I've also had to pull in part 1 of bug hg 1705837.

(Also a small reminder to keep the original commits intact on merging if possible, and not squash them together.)