Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/javascript-link-safe.html

Issue 2524013002: XSS Auditor: Block by default. (Closed)
Patch Set: Rebase+Test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <a id="anchorLink" href="javascript:alert('This is a safe script.')">test</a>
7 <script>
8 var event = document.createEvent('MouseEvent');
9 event.initEvent('click', true, true);
10 document.getElementById('anchorLink').dispatchEvent(event);
11
12 if (window.testRunner)
13 testRunner.notifyDone();
14 </script>
15 </body>
16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698