Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings in AMO #2

Open
ofaurax opened this issue Jan 21, 2016 · 1 comment
Open

Warnings in AMO #2

ofaurax opened this issue Jan 21, 2016 · 1 comment

Comments

@ofaurax
Copy link
Owner

ofaurax commented Jan 21, 2016

on* attribute being set using setAttribute

Avertissement: To prevent vulnerabilities, event handlers (like 'onclick' and 'onhover') should always be defined using addEventListener.
chrome/content/eotoolbar.js
var info = document.getElementById('eotoolbar-inforss');
info.setAttribute("oncommand",
    "gBrowser.selectedBrowser.loadURI('"+link.textContent+"');");
@ofaurax
Copy link
Owner Author

ofaurax commented Nov 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant