[Pkg-mozext-commits] [itsalltext] 250/459: minor check for weird pages

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:27 UTC 2015


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

taffit pushed a commit to branch master
in repository itsalltext.

commit 5d31ea2c5e7c6a87ce279db49aae88a65b935d18
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Wed Jun 20 15:45:11 2007 -0400

    minor check for weird pages
---
 src/chrome/content/cacheobj.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 3671a7e..c4cfdee 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -555,8 +555,8 @@ CacheObj.prototype.adjust = function() {
     if (!gumdrop || !el) { return; }
     var display  = '';
     var cstyle = doc.defaultView.getComputedStyle(el, '');
-    if (cstyle.display == 'none' ||
-        cstyle.visibility == 'hidden' ||
+    if ((cstyle && (cstyle.display == 'none' ||
+                    cstyle.visibility == 'hidden')) ||
         el.getAttribute('readonly') ||
         el.getAttribute('disabled')
         ) {

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



More information about the Pkg-mozext-commits mailing list