RequestPolicy/tractest — Issue #224: AMO validation warning: on* attribute being set using setAttribute
Author: jsamuel
Created: 2011-12-22 02:47:54+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"));
}}}