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

Unified Diff: LayoutTests/http/tests/cachestorage/resources/iframe.html

Issue 1032623008: Expose Cache Storage API in global window/worker scope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update webexposed expectations Created 5 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
Index: LayoutTests/http/tests/cachestorage/resources/iframe.html
diff --git a/LayoutTests/http/tests/cachestorage/resources/iframe.html b/LayoutTests/http/tests/cachestorage/resources/iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..f4f418b8ddb44e1a95afe126a9023b31b79592bd
--- /dev/null
+++ b/LayoutTests/http/tests/cachestorage/resources/iframe.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<title>ok</title>
+<script>
+window.onmessage = function(e) {
+ var id = e.data.id;
+ try {
+ self.caches;
+ window.parent.postMessage({id: id, result: 'allowed'}, '*');
+ } catch (e) {
+ window.parent.postMessage({id: id, result: 'denied', name: e.name, message: e.message}, '*');
+ }
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698