Restrict handling of various things to events coming from the user (not Web content). b=265176 r+sr=jst a=asa

This commit is contained in:
dbaron%dbaron.org 2006-07-29 05:43:19 +00:00
parent 6f41ea6951
commit 78b10dec06

View File

@ -175,6 +175,10 @@
// should always return true for click to go through
function contentAreaClick(event)
{
if (!event.isTrusted) {
return true;
}
var isKeyPress = (event.type == "keypress");
var href = hrefForClickEvent(event);
if (href) {