mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Bug 787619 - Prevent clicks on the click-to-play placeholder triggering other handlers. r=jaws
This commit is contained in:
parent
3af429c4b8
commit
92d8ff57a2
@ -326,8 +326,11 @@ var gPluginHandler = {
|
||||
overlay.addEventListener("click", function(aEvent) {
|
||||
// Have to check that the target is not the link to update the plugin
|
||||
if (!(aEvent.originalTarget instanceof HTMLAnchorElement) &&
|
||||
aEvent.button == 0 && aEvent.isTrusted)
|
||||
aEvent.button == 0 && aEvent.isTrusted) {
|
||||
gPluginHandler.activateSinglePlugin(aEvent.target.ownerDocument.defaultView.top, aPlugin);
|
||||
aEvent.stopPropagation();
|
||||
aEvent.preventDefault();
|
||||
}
|
||||
}, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user