[Pkg-mozext-commits] [requestpolicy] 112/257: [rem] drop support for Gecko < 22
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit cec98e9df0dda803e6279ad8f4b931f30ea5e1e7
Author: Martin Kimmerle <dev at 256k.de>
Date: Mon Oct 19 02:21:55 2015 +0200
[rem] drop support for Gecko < 22
Arrow functions, introduced in Gecko 22, are already used in
`content-policy.jsm`.
---
src/content/ui/request-log.tree-view.js | 29 +++++++----------------------
src/install.rdf | 6 +++---
2 files changed, 10 insertions(+), 25 deletions(-)
diff --git a/src/content/ui/request-log.tree-view.js b/src/content/ui/request-log.tree-view.js
index bcc3195..c11bc58 100644
--- a/src/content/ui/request-log.tree-view.js
+++ b/src/content/ui/request-log.tree-view.js
@@ -148,36 +148,21 @@ window.rpcontinued.requestLog = (function (self) {
performAction: function(action) {},
performActionOnCell: function(action, aIndex, aColumn) {},
- getRowProperties: function(aIndex, aProps) {
- var returnValue = (getVisibleRowAtIndex(aIndex)[2]) ? "blocked" : "allowed";
-
- if (aProps) {
- // Gecko version < 22
- aProps.AppendElement(aserv.getAtom(returnValue));
- } else {
- // Gecko version >= 22
- return returnValue;
- }
+ getRowProperties: function(aIndex) {
+ return (getVisibleRowAtIndex(aIndex)[2]) ? "blocked" : "allowed";
},
- getCellProperties: function(aIndex, aColumn, aProps) {
+ getCellProperties: function(aIndex, aColumn) {
if (self.columnNameToIndexMap[aColumn.id] == 2) {
if (getVisibleRowAtIndex(aIndex)[2]) {
- if (aProps) {
- // Gecko version < 22
- aProps.AppendElement(aserv.getAtom("blocked"));
- } else {
- // Gecko version >= 22
- return "blocked";
- }
+ return "blocked";
}
}
+ return "";
},
- getColumnProperties: function(aColumn, aProps) {
- if (!aProps) {
- return "";
- }
+ getColumnProperties: function(aColumn) {
+ return "";
}
};
diff --git a/src/install.rdf b/src/install.rdf
index 7d60ae1..2d24e01 100644
--- a/src/install.rdf
+++ b/src/install.rdf
@@ -197,11 +197,11 @@
<em:translator>Володимир Савчук / Volodymyr Savchuk (Ukrainian)</em:translator>
<em:translator>Brad Horrocks</em:translator>
- <!-- Firefox (Flock will recognize this, too) -->
+ <!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
- <em:minVersion>16.0</em:minVersion>
+ <em:minVersion>22.0</em:minVersion>
<em:maxVersion>44.0a1</em:maxVersion>
</Description>
</em:targetApplication>
@@ -210,7 +210,7 @@
<em:targetApplication>
<Description>
<em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
- <em:minVersion>2.13</em:minVersion>
+ <em:minVersion>2.19</em:minVersion>
<em:maxVersion>2.38.*</em:maxVersion>
</Description>
</em:targetApplication>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list