Skip to content

Commit 2e87b89

Browse files
author
Mike Perry
committed
Add some notes about noscript code merging.
1 parent c25dad5 commit 2e87b89

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

diff-noscript.sh

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,27 @@
33
# Used to import upstream changes to the NoScript code that use for request
44
# rewriting.
55

6-
FROM=../noscript-2.0.5.1
7-
TO=../noscript-2.0.9.8rc1
6+
# The merging process is roughly this:
7+
# 0. Download noscript xpi's or git checkouts corresponding to the last
8+
# merge version and the current merge version.
9+
# 1. Update the FROM and TO versions appropriately below.
10+
# 2 execute:
11+
# ./diff-noscript.sh > noscript-merge.diff
12+
# cd ./src/chrome/content/code/
13+
# patch -p4 < ../../../../noscript-merge.diff
14+
# 3. Clean up the mess.
15+
# 4. Manually extract the IOUtil, Thread, and IO objects from
16+
# $TO/components/noscriptservice.js and drop them into
17+
# the corresponding js files in ./src/chrome/content/code/.
18+
#
19+
# Note: This whole process can be likely simplified a bit. You
20+
# might be able to get away with simply copying ChannelReplacement.js
21+
# from newer NoScript versions, since I believe we've taken a more
22+
# active ownership of the rest of the files and we've diverged quite
23+
# a bit.
24+
25+
FROM=../noscript-2.0.9.8rc1
26+
TO=../noscript-2.3.7
827

928
for i in ./src/chrome/content/code/*.js
1029
do

0 commit comments

Comments
 (0)