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

Side by Side Diff: LayoutTests/http/tests/serviceworker/chromium/frame-removed.html

Issue 1308723003: DOMWindow::navigator should return navigator w/o frame when detached. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>navigator.serviceWorker should return null when frame is removed</title>
5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <iframe id="subframe" src="about:blank"></iframe>
10 <script>
11 test(function(t) {
12 var iframe = document.querySelector("#subframe");
13 var f = iframe.contentWindow.Function;
14 function get_navigator() {
15 return f("return navigator")();
16 }
17 iframe.remove();
18 assert_equals(get_navigator().serviceWorker, null);
19 });
20 done();
21 </script>
22
23 </body>
24 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/serviceworker/chromium/frame-detached-by-navigation.html ('k') | Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698