| Index: LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover-expected.txt
|
| diff --git a/LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover-expected.txt b/LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8a5caa275946d0ac35e09dd3d7260e3e8300762e
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover-expected.txt
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html><html><head></head><body><iframe id="x" name="x" src="/security/xssAuditor/resources/echo-intertag.pl?q=%3cdiv%20onmouseover=%22alert(/xss/)%22%%3e%3c/div%3e"></iframe>
|
| +<script>
|
| +var frame = document.getElementById('x');
|
| +if (window.testRunner) {
|
| + testRunner.waitUntilDone();
|
| + testRunner.setXSSAuditorEnabled(true);
|
| + testRunner.dumpAsMarkup();
|
| + testRunner.dumpChildFramesAsMarkup();
|
| + testRunner.setViewSourceForFrame('x', true);
|
| + frame.onload = testRunner.notifyDone.bind(testRunner);
|
| +}
|
| +frame.src = '/security/xssAuditor/resources/echo-intertag.pl?q=%3cdiv%20onmouseover=%22alert(/xss/)%22%%3e%3c/div%3e';
|
| +</script>
|
| +<p>This test passes if the iframe is rendered in view-source mode and the div with the
|
| +onmouseover handler is in a highlighted span.</p>
|
| +
|
| +</body></html>
|
| +
|
| +--------
|
| +Frame: 'x'
|
| +--------
|
| +<html><head></head><body><div class="webkit-line-gutter-backdrop"></div><table><tbody><tr><td class="webkit-line-number" value="1"></td><td class="webkit-line-content"><span class="webkit-html-doctype"><!DOCTYPE html></span></td></tr><tr><td class="webkit-line-number" value="2"></td><td class="webkit-line-content"><span class="webkit-html-tag"><html></span></td></tr><tr><td class="webkit-line-number" value="3"></td><td class="webkit-line-content"><span class="webkit-html-tag"><body></span></td></tr><tr><td class="webkit-line-number" value="4"></td><td class="webkit-line-content"><span class="webkit-highlight" title="Token contains a reflected XSS vector"><span class="webkit-html-tag"><div <span class="webkit-html-attribute-name">onmouseover</span>="<span class="webkit-html-attribute-value">alert(/xss/)</span>"<span class="webkit-html-attribute-name">%</span>></span></span><span class="webkit-html-tag"></div></span><span class="webkit-html-tag"></body></span></td></tr><tr><td class="webkit-line-number" value="5"></td><td class="webkit-line-content"><span class="webkit-html-tag"></html></span></td></tr><tr><td class="webkit-line-number" value="6"></td><td class="webkit-line-content"><span class="webkit-html-end-of-file"></span></td></tr></tbody></table></body></html>
|
|
|