Index: chrome/content/ui/firstRun.js |
=================================================================== |
--- a/chrome/content/ui/firstRun.js |
+++ b/chrome/content/ui/firstRun.js |
@@ -207,17 +207,18 @@ |
{ |
var link = E("share-" + network); |
link.addEventListener("click", onSocialLinkClick, false); |
}); |
} |
function onSocialLinkClick(event) |
{ |
- var filter = defaultMatcher.matchesAny("https://platform.twitter.com/widgets.js", "SCRIPT", "adblockplus.org", true); |
+ // Don't open the share page if the sharing script would be blocked |
+ var filter = defaultMatcher.matchesAny(event.target.getAttribute("_script"), "SCRIPT", "adblockplus.org", true); |
Thomas Greiner
2013/07/08 13:46:47
_script is not a standard attribute for anchor tag
|
if (!(filter instanceof BlockingFilter)) |
{ |
event.preventDefault(); |
openSharePopup(Utils.getDocLink(event.target.id)); |
} |
} |
function setLinks(id) |