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

Unified Diff: LayoutTests/fast/serviceworker/navigator-serviceworker-getter-debug-assert.html

Issue 213223005: Use the Navigator's frame in navigator.serviceWorker and associated container. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/serviceworker/navigator-serviceworker-getter-debug-assert-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/serviceworker/navigator-serviceworker-getter-debug-assert.html
diff --git a/LayoutTests/fast/serviceworker/navigator-serviceworker-getter-debug-assert.html b/LayoutTests/fast/serviceworker/navigator-serviceworker-getter-debug-assert.html
new file mode 100644
index 0000000000000000000000000000000000000000..ec409a6b14999b0055b30b884d260438f8aad24a
--- /dev/null
+++ b/LayoutTests/fast/serviceworker/navigator-serviceworker-getter-debug-assert.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<body>
+<script>
+description('Test accessing navigator.serviceWorker of iframe doesn\'t crash');
+
+navigator.serviceWorker;
+
+var iframe = document.createElement('iframe');
+document.body.appendChild(iframe);
+iframe.contentWindow.navigator.serviceWorker;
+
+var successfullyParsed = true;
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/serviceworker/navigator-serviceworker-getter-debug-assert-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698