]> git.donarmstrong.com Git - dactyl.git/blob - debian/patches/iceweasel_6_support.patch
Rename iceweasel_6_support to iceweasel_6_support.patch
[dactyl.git] / debian / patches / iceweasel_6_support.patch
1 Origin: upstream
2 Subject: Support Iceweasel up to version 6
3 Forwarded: not-needed
4
5 Minor tweaks to make Pentadactyl work with newer versions of Iceweasel.
6 This patch is equivalent to the difference between 1.0b6 and 1.0b6.1
7 (which is not in the upstream hg repository).
8
9 This patch originated upstream.
10 Index: devel/common/content/events.js
11 ===================================================================
12 --- devel.orig/common/content/events.js 2011-07-23 17:09:11.000000000 +0200
13 +++ devel/common/content/events.js      2011-07-23 17:14:10.000000000 +0200
14 @@ -1611,7 +1611,7 @@
15                          filter.keys = events.fromString(vals[0]).map(events.closure.toString);
16  
17                          filter.commandKeys = vals.slice(1).map(events.closure.canonicalKeys);
18 -                        filter.inputKeys = filter.commandKeys.filter(/^<[ACM]-/);
19 +                        filter.inputKeys = filter.commandKeys.filter(function (s) /^<[ACM]-/.test(s));
20                      });
21                      this.flush();
22                      return values;
23 Index: devel/common/modules/options.jsm
24 ===================================================================
25 --- devel.orig/common/modules/options.jsm       2011-07-23 17:09:17.000000000 +0200
26 +++ devel/common/modules/options.jsm    2011-07-23 17:10:38.000000000 +0200
27 @@ -466,7 +466,7 @@
28  
29          regexplist: function regexplist(k, default_) {
30              for (let re in values(this.value))
31 -                if (re(k))
32 +                if ((re.test || re).call(re, k))
33                      return re.result;
34              return arguments.length > 1 ? default_ : null;
35          },
36 Index: devel/pentadactyl/install.rdf
37 ===================================================================
38 --- devel.orig/pentadactyl/install.rdf  2011-07-23 17:09:28.000000000 +0200
39 +++ devel/pentadactyl/install.rdf       2011-07-23 17:09:47.000000000 +0200
40 @@ -31,8 +31,8 @@
41          <em:targetApplication>
42              <Description
43                  em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
44 -                em:minVersion="3.5"
45 -                em:maxVersion="4.0.*"/>
46 +                em:minVersion="3.6"
47 +                em:maxVersion="6.*"/>
48          </em:targetApplication>
49      </Description>
50  </RDF>