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

Side by Side Diff: chrome_frame/test/data/persistent_cookie_test_page.html

Issue 218019: Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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 <html>
2 <head><title>Persistent host browser chrome frame cookie test</title>
3 <script type="text/javascript"
4 src="chrome_frame_tester_helpers.js"></script>
5
6 <script type="text/javascript">
7 function validatePersistentCookie() {
8 if (readCookie("PersistentCookie1") != "Cookie1" ||
9 readCookie("PersistentCookie2") != "Cookie2") {
10 onFailure("PersistentCookieTest", 1, "Failed");
11 } else {
12 onSuccess("PersistentCookieTest", 1);
13 }
14 eraseCookie("PersistentCookie1");
15 eraseCookie("PersistentCookie2");
16 }
17
18 function setPersistentCookieAndRedirect() {
19 if (isRunningInMSIE()) {
20 eraseCookie("PersistentCookie1");
21 eraseCookie("PersistentCookie2");
22 createCookie("PersistentCookie1", "Cookie1", 365);
23 createCookie("PersistentCookie2", "Cookie2", 365);
24 reloadUsingCFProtocol();
25 } else {
26 validatePersistentCookie();
27 }
28 }
29 </script>
30 </head>
31 <body onLoad="setTimeout(setPersistentCookieAndRedirect, 100);">
32 <h2>Prepare to be redirected!</h2>
33 <p>Sets two persistent cookies in the host and redirects ChromeFrame <br />
34 to the same page </p>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « chrome_frame/test/data/navigateurl_relative_host.html ('k') | chrome_frame/test/data/postmessage_basic_frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698