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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html

Issue 2690933003: Don't sanitize errors if the protocol is "data:" (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
Mike West 2017/02/14 07:19:07 It looks like there's an existing test in https://
andypaicu2 2017/02/14 09:09:22 Done
2 <title>Data URLs error messages are not sanitized</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <script>
7 async_test(function(t) {
8 window.onerror = t.step_func_done(function(msg, url, line, col, error) {
9 assert_not_equals(msg, 'Script error.');
10 assert_equals(url, "data:application/javascript,throw 'This%20is%20an%20erro r%20message'");
11 assert_not_equals(line, 0);
12 assert_not_equals(col, 0);
13 assert_not_equals(error, null);
14 });
15 }, "Data URLs error messages are not sanitized");
16 </script>
17 <script src="data:application/javascript,throw 'This%20is%20an%20error%20message '"></script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698