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

Unified Diff: chrome/test/data/extensions/api_test/isolated_apps/app1/main.html

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor to use ContentBrowserClient. Created 9 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: chrome/test/data/extensions/api_test/isolated_apps/app1/main.html
diff --git a/chrome/test/data/extensions/api_test/isolated_apps/app1/main.html b/chrome/test/data/extensions/api_test/isolated_apps/app1/main.html
new file mode 100644
index 0000000000000000000000000000000000000000..427902ceac6c59e7fa2e87ded157bb1b05d5d483
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/isolated_apps/app1/main.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+Isolated App 1
+
+<script>
+ // Set a cookie within the app.
+ var expire = new Date();
+ expire.setDate(expire.getDate() + 1); // tomorrow
+ document.cookie = "app1=3; path=/; expires=" + expire + ";"
+</script>
+
+<!-- Include an iframe to a non-app URL. -->
+<iframe src="../non_app/subframe.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698