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

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"));
}}}