[Pkg-mozext-commits] [wot] 104/226: Fixed #44 Don't show Warnings in sub-frames

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:40 UTC 2015


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

taffit pushed a commit to branch master
in repository wot.

commit 97f05f902ead357a935f970e7f0e72300ec5ec37
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Wed Aug 7 11:55:04 2013 +0300

    Fixed #44 Don't show Warnings in sub-frames
---
 content/warning.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/content/warning.js b/content/warning.js
index b56f954..3a380a9 100644
--- a/content/warning.js
+++ b/content/warning.js
@@ -358,8 +358,12 @@ var wot_warning =
 
 			var content = event.originalTarget;
 
-			if (!content || !content.location || !content.location.href ||
-					wot_url.isprivate(content.location.href)) {
+            // Don't show warnings in frames
+            if (!content || !content.defaultView || content.defaultView != content.defaultView.top ) {
+                return;
+            }
+
+			if (!content.location || !content.location.href || wot_url.isprivate(content.location.href)) {
 				return;
 			}
 

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



More information about the Pkg-mozext-commits mailing list