forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export the new sessionid property of Chrome Frame form the NPAPI inte…
…rface. BUG=0 TEST=see included unit test Review URL: http://codereview.chromium.org/5331003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67311 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
rogerta@chromium.org
committed
Nov 24, 2010
1 parent
f57075e
commit 69e4b61
Showing
8 changed files
with
100 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<html> | ||
<!-- This page is meant to load inside the host browser like IE/FF --> | ||
<head> | ||
<script type="text/javascript" src="chrome_frame_tester_helpers.js"> | ||
</script> | ||
<script type="text/javascript"> | ||
function onLoad() { | ||
document.ChromeFrame.addEventListener('readystatechanged', | ||
function() { | ||
if (document.ChromeFrame.readystate == 4) { // READY_STATE_COMPLETED | ||
var sessionId = document.ChromeFrame.sessionid; | ||
appendStatus('Chrome frame sessionId: ' + sessionId); | ||
if (sessionId == 1) { | ||
onSuccess('sessionid', 1); | ||
} else { | ||
onFailure('sessionid', 1, 'no sessionId'); | ||
} | ||
} | ||
}, false); | ||
} | ||
</script> | ||
</head> | ||
|
||
<body onload="onLoad();"> | ||
<object id="ChromeFrame" | ||
codebase="http://www.google.com" | ||
classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> | ||
<embed id="ChromeFramePlugin" name="ChromeFrame" | ||
type="application/chromeframe" privileged_mode="1" | ||
</embed> | ||
</object> | ||
<br> | ||
<br> | ||
<p>Test for Chrome frame sessionid</p> | ||
<div id="statusPanel" style="border: 1px solid red; width: 100%"> | ||
Test running.... | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters