| Index: chrome/content/ui/firstRun.js |
| =================================================================== |
| --- a/chrome/content/ui/firstRun.js |
| +++ b/chrome/content/ui/firstRun.js |
| @@ -106,7 +106,7 @@ |
| onWindowResize(); |
| - initSocialLinks(null); |
| + initSocialLinks(); |
| } |
| function onScroll() |
| @@ -222,20 +222,26 @@ |
| glassPane.className = "visible"; |
| } |
| - function initSocialLinks(variant) |
| + function initSocialLinks() |
| { |
| var networks = ["twitter", "facebook", "gplus"]; |
| networks.forEach(function(network) |
| { |
| var link = E("share-" + network); |
| - link.addEventListener("click", function(e) |
| - { |
| - e.preventDefault(); |
| - openSharePopup(Utils.getDocLink("share-" + network) + "&variant=" + variant); |
| - }, false); |
| + link.addEventListener("click", onSocialLinkClick, false); |
| }); |
| } |
| + function onSocialLinkClick(event) |
| + { |
| + var filter = defaultMatcher.matchesAny("https://platform.twitter.com/widgets.js", "SCRIPT", "adblockplus.org", true); |
| + if (!(filter instanceof BlockingFilter)) |
| + { |
| + event.preventDefault(); |
| + openSharePopup(Utils.getDocLink(event.target.id)); |
| + } |
| + } |
| + |
| function setLinks(id) |
| { |
| var element = E(id); |