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

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

Issue 2358993003: Service worker creation from <link> leads to nullptr dereference (Closed)
Patch Set: Created 4 years, 2 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 <script>
2 var link = document.createElement('link');
3 link.setAttribute('rel', 'serviceworker');
4 link.setAttribute('href', 'fetch-event-network-error-worker.js');
falken 2016/09/23 01:22:33 similarly, I'd use empty-worker.js here.
jww 2016/09/23 04:34:47 Done.
5 link.onload = function() {
6 top.postMessage('loaded', '*');
7 }
8 link.onerror = function(e) {
9 top.postMessage('error', '*');
10 }
11 document.getElementsByTagName('head')[0].appendChild(link);
12 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698