Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/firstRun.js

Issue 11089006: Be more selective for the sharing fallback (Closed)
Patch Set: Created July 9, 2013, 12:20 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/content/ui/firstRun.js
===================================================================
--- a/chrome/content/ui/firstRun.js
+++ b/chrome/content/ui/firstRun.js
@@ -208,17 +208,17 @@
var link = E("share-" + network);
link.addEventListener("click", onSocialLinkClick, false);
});
}
function onSocialLinkClick(event)
{
// 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);
+ var filter = defaultMatcher.matchesAny(event.target.getAttribute("data-script"), "SCRIPT", "adblockplus.org", true);
if (!(filter instanceof BlockingFilter))
{
event.preventDefault();
openSharePopup(Utils.getDocLink(event.target.id));
}
}
function setLinks(id)

Powered by Google App Engine
This is Rietveld