RequestPolicy/requestpolicy — Issue #228: AMO validation warning: on* attribute being set using setAttribute
Author: jsamuel
Created: 2011-12-22 19:01:26+00:00
State: open
Labels: extension

imported trac ticket
created: 2011-04-29 10:28:58
reporter: justin

New warning from the AMO validator:

{{{
on* attribute being set using setAttribute

Error: To prevent vulnerabilities, event handlers (like 'onclick'
and 'onhover') should always be defined using addEventListener.
chrome/requestpolicy.jar/content/menu.js
334 menuItem.setAttribute("statustext", statustext);
335 menuItem.setAttribute("oncommand", oncommand);
336// menuItem.setAttribute("tooltiptext", node getAttribute("tooltiptext"));
}}}