[nscl] Several content-side performance improvements.
This commit is contained in:
parent
b56ffaccc8
commit
4e6a8ca777
8
build.sh
8
build.sh
|
@ -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"
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
"js": [
|
||||
"/nscl/common/UA.js",
|
||||
"content/ftp.js",
|
||||
"lib/DocumentFreezer.js",
|
||||
"/nscl/content/DocumentFreezer.js",
|
||||
"content/syncFetchPolicy.js"
|
||||
]
|
||||
}
|
||||
|
|
2
src/nscl
2
src/nscl
|
@ -1 +1 @@
|
|||
Subproject commit 98657585638147734b0e6f741f11187d9fccbcb8
|
||||
Subproject commit 7b44e0c36145b4731a1443691131e9b40f05318a
|
Loading…
Reference in New Issue