mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-09 22:35:46 +01:00
Security magic.
This commit is contained in:
@@ -859,8 +859,10 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
|
||||
events: {
|
||||
click: function onClick(event) {
|
||||
if (event.originalTarget instanceof Element) {
|
||||
let command = event.originalTarget.getAttributeNS(NS, "command");
|
||||
let elem = event.originalTarget;
|
||||
|
||||
if (elem instanceof Element && services.security.isSystemPrincipal(elem.nodePrincipal)) {
|
||||
let command = elem.getAttributeNS(NS, "command");
|
||||
if (command && event.button == 0) {
|
||||
event.preventDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user