[Pkg-mozext-commits] [greasemonkey] 08/30: Script preferences - script terminated by timeout (very many matches)

David Prévot taffit at moszumanska.debian.org
Thu Nov 26 00:56:27 UTC 2015


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit cd7eaf36d1c6bf9d41a50cc3bf9de3366a401126
Author: janekptacijarabaci <janekptacijarabaci at seznam.cz>
Date:   Sat Oct 31 21:17:35 2015 +0100

    Script preferences - script terminated by timeout (very many matches)
---
 content/scriptprefs.js | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/content/scriptprefs.js b/content/scriptprefs.js
index c507582..11d49c4 100644
--- a/content/scriptprefs.js
+++ b/content/scriptprefs.js
@@ -35,12 +35,16 @@ window.addEventListener('load', function() {
   };
   gUserIncludesEl.pages = gScript.userIncludes;
 
-  for (var i = 0; i < gScript.matches.length; i++) {
-    gScriptMatchesEl.addPage(gScript.matches[i].pattern);
+  var matchesPattern = [];
+  for (var i = 0, count = gScript.matches.length; i < count; i++) {
+    matchesPattern.push(gScript.matches[i].pattern);
   }
-  for (var i = 0; i < gScript.userMatches.length; i++) {
-    gUserMatchesEl.addPage(gScript.userMatches[i].pattern);
+  gScriptMatchesEl.pages = matchesPattern;
+  var userMatchesPattern = [];
+  for (var i = 0, count = gScript.userMatches.length; i < count; i++) {
+    userMatchesPattern.push(gScript.userMatches[i].pattern);
   }
+  gUserMatchesEl.pages = userMatchesPattern;
 
   gScriptExcludesEl.pages = gScript.excludes;
   gScriptExcludesEl.onAddUserInclude = function(url) {

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



More information about the Pkg-mozext-commits mailing list