[Pkg-mozext-commits] [adblock-plus] 12/24: Issue 1375 - removed timeline.js support.

David Prévot taffit at moszumanska.debian.org
Mon Oct 20 02:15:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 2bdc6ce262571888bafa91cf867e239a80839429
Author: Jarek 'jarekps' Smiejczak <jot at smiejczak.net>
Date:   Tue Sep 16 23:23:15 2014 +0200

    Issue 1375 - removed timeline.js support.
---
 autotest/abprewrite_source.js |  3 +--
 scripts/abprewrite.js         | 10 ----------
 2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/autotest/abprewrite_source.js b/autotest/abprewrite_source.js
index 7f59f7b..a82ea4e 100644
--- a/autotest/abprewrite_source.js
+++ b/autotest/abprewrite_source.js
@@ -6,7 +6,6 @@ const Cl = Components.unknown;
 
 Cu.import("foo/bar.jsm");
 
-let {Timeline} = require("timeline");
 let {Utils} = require("utils");
 let {Filter, BlockingFilter} = require("filterClasses");
 
@@ -84,4 +83,4 @@ var a = function()
 let x = (y) => y + 1;
 x = y => y + 1;
 x = (a, b) => this[a] + b;
-x = (a, b) => { return () => 1; }
\ No newline at end of file
+x = (a, b) => { return () => 1; }
diff --git a/scripts/abprewrite.js b/scripts/abprewrite.js
index 5b84720..80b3f3f 100644
--- a/scripts/abprewrite.js
+++ b/scripts/abprewrite.js
@@ -180,11 +180,6 @@ function modifyExpressionStatement(ast)
     // Cu.import(...);
     if (funcName == "Cu.import")
       return null;
-
-    // Remove timeline calls:
-    // TimeLine.foobar(...);
-    if (/^TimeLine\./.test(funcName))
-      return null;
   }
 
   if (ast.expression.type == "AssignmentExpression" && ast.expression.operator == "=" && ast.expression.left.type == "ArrayPattern")
@@ -224,11 +219,6 @@ function modifyVariableDeclaration(ast)
   {
     let declarator = ast.declarations[0];
 
-    // Remove timeline requires:
-    // let {Timeline} = require("timeline");
-    if (declarator.init && decompileAST(declarator.init) == 'require("timeline")')
-      return null;
-
     // Remove declarations of XPCOM shortcuts:
     // const Cc = Components.classes;
     // const Ci = Components.interfaces;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list