[Pkg-mozext-commits] [greasemonkey] 04/25: Correctly handle missing origin URL.

David Prévot taffit at moszumanska.debian.org
Wed Sep 17 21:14:00 UTC 2014


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 7b1918dbe7c3bffca8496c6e204ea27dbe733b3a
Author: Ventero <ventero at ventero.de>
Date:   Sat Aug 2 09:36:26 2014 +0200

    Correctly handle missing origin URL.
---
 components/greasemonkey.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/greasemonkey.js b/components/greasemonkey.js
index 45ffe0a..57012f9 100644
--- a/components/greasemonkey.js
+++ b/components/greasemonkey.js
@@ -361,7 +361,7 @@ service.prototype.shouldLoad = function(ct, cl, org, ctx, mt, ext) {
   }
 
   // Do not install scripts when the origin URL "is a script".  See #1875
-  if (org.spec.match(gScriptEndingRegexp)) {
+  if (org && org.spec.match(gScriptEndingRegexp)) {
     return ret;
   }
 

-- 
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