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

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: 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 var t = async_test('Sandboxed iframe should not be able to register service worker with link rel');
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/23 01:22:33 Since this is serviceworker/ it should use the som
jww 2016/09/23 04:34:47 Yikes! I had no idea. I tried to update to match t
20 </script>
21 <iframe src="resources/iframe-register-link-element.html" sandbox="allow-scr ipts"></iframe>
22 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698