mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
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:
parent
6f41ea6951
commit
78b10dec06
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user