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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/sandbox-iframe-register-link-element.html

Issue 2358993003: Service worker creation from <link> leads to nullptr dereference (Closed)
Patch Set: Nits from falken@ Created 4 years, 3 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script src="resources/test-helpers.js"></script>
5 <script src="resources/registration-tests.js"></script>
6 <body>
7 <script>
8 async_test(function(t) {
9 window.addEventListener('message', function(e) {
10 if (e.data == 'error') {
11 t.step(function() {
12 t.done();
13 });
14 } else {
15 t.step(function() {
16 assert_unreached('iframe successfully loaded service worker');
17 });
18 }
19 });
falken 2016/09/24 15:04:29 almost! lines 9-19 should be indented an additiona
jww 2016/09/24 16:25:07 Dang! Thanks :-)
20 }, 'Sandboxed iframe should not be able to register service worker with link r el');
21 </script>
22 <iframe src="resources/iframe-register-link-element.html" sandbox="allow-scripts "></iframe>
23 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698