[nscl] Several content-side performance improvements.

This commit is contained in:
hackademix 2023-12-05 23:43:19 +01:00
parent b56ffaccc8
commit 4e6a8ca777
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
3 changed files with 2 additions and 10 deletions

View File

@ -70,14 +70,6 @@ LIB="$SRC/lib"
NSCL="$SRC/nscl"
# install html5_events.pl dependencies if needed
cpan Regexp::List List::MoreUtils
if ./html5_events/html5_events.pl; then
# update full event list as an array in src/lib/DocumentFreezer.js
EVENTS=$(grep '^on[a-z]\+$' html5_events/html5_events_archive.txt | sed "s/^on//;s/.*/'&'/;H;1h;"'$!d;x;s/\n/, /g');
perl -pi -e 's/(\bconst eventTypes\s*=\s*)\[.*?\]/$1\['"$EVENTS"'\]/' src/lib/DocumentFreezer.js
fi
rm -rf "$BUILD" "$XPI"
cp -pR "$SRC" "$BUILD"

View File

@ -115,7 +115,7 @@
"js": [
"/nscl/common/UA.js",
"content/ftp.js",
"lib/DocumentFreezer.js",
"/nscl/content/DocumentFreezer.js",
"content/syncFetchPolicy.js"
]
}

@ -1 +1 @@
Subproject commit 98657585638147734b0e6f741f11187d9fccbcb8
Subproject commit 7b44e0c36145b4731a1443691131e9b40f05318a