Fix Intl.DateTimeFormat cross-compartment crash and Connection API robustness

OrigDateTimeFormat constructor called inside exportFunction callback failed
in Firefox compartment boundary. Moved construction to content-script-scope
helper. Also added addEventListener/removeEventListener to Connection override
to prevent crashes in real-time apps like Discord.
This commit is contained in:
sal
2026-03-04 22:03:12 -06:00
parent ac76f93fcb
commit 464a570201
3 changed files with 21 additions and 8 deletions

View File

@@ -1,5 +1,10 @@
# Changelog
## 0.5.2
- Fixed Discord crash caused by Intl.DateTimeFormat cross-compartment constructor failure
- Fixed Connection API override missing addEventListener (could crash real-time apps)
## 0.5.1
- Fixed Discord and other complex web apps crashing due to DOM dimension noise