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

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

Issue 29322658: Issue 701 - Don`t handle middle- and right-clicks on report link (Closed)
Patch Set: Created July 20, 2015, 12:34 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/sendReport.js
===================================================================
--- a/chrome/content/ui/sendReport.js
+++ b/chrome/content/ui/sendReport.js
@@ -728,17 +728,17 @@ let extensionsDataSource =
};
let subscriptionUpdateDataSource =
{
contentWnd: null,
type: null,
outdated: null,
needUpdate: null,
-
+
subscriptionFilter: function(s)
{
if (s instanceof DownloadableSubscription)
return subscriptionsDataSource.subscriptionFilter(s);
else
return false;
},
@@ -1552,16 +1552,19 @@ function reportSent(event)
document.documentElement.getButton("finish").disabled = false;
document.documentElement.getButton("cancel").disabled = true;
E("progressBar").activeItemComplete = true;
}
}
function processLinkClick(event)
{
+ if (event.button != 0)
+ return;
+
event.preventDefault();
let link = event.target;
while (link && !(link instanceof HTMLAnchorElement))
link = link.parentNode;
if (link && (link.protocol == "http:" || link.protocol == "https:"))
UI.loadInBrowser(link.href);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld