diff options
author | japhet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 22:29:33 +0000 |
---|---|---|
committer | japhet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 22:29:33 +0000 |
commit | 8275d865da70a68992560db2a5d65bf1b9fa8f56 (patch) | |
tree | 7326a9c416ba2f0a0e3a50ce6ad58693e7ba7c46 /chrome/test/data | |
parent | 91fce0c025e0ff1516d1a8ea762bc4eab326b8de (diff) | |
download | chromium_src-8275d865da70a68992560db2a5d65bf1b9fa8f56.zip chromium_src-8275d865da70a68992560db2a5d65bf1b9fa8f56.tar.gz chromium_src-8275d865da70a68992560db2a5d65bf1b9fa8f56.tar.bz2 |
If an NP_* function is called on an out of process plugin, save enough info to send an NPN_SetException back to the correct renderer if necessary. BUG=26764 TEST=none
Review URL: http://codereview.chromium.org/375005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data')
-rw-r--r-- | chrome/test/data/npapi/npobject_set_exception.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/test/data/npapi/npobject_set_exception.html b/chrome/test/data/npapi/npobject_set_exception.html new file mode 100644 index 0000000..4e78e69e --- /dev/null +++ b/chrome/test/data/npapi/npobject_set_exception.html @@ -0,0 +1,24 @@ +<html> +<head> +<title>Set Exception Test</title> +<script src="npapi.js"></script> +</head> + +<body> + +<h2>Test that if NPN_SetException is called by an out of process plugin, the + exception is sent to the proper renderer.</h2> + +<div id="PluginDiv"> +<embed name="plg" type="application/x-webkit-test-netscape"></embed> +</div> +<script> + var plg = window.document["plg"]; + try { + plg.testThrowException(); + } catch (e) { + onSuccess("npobject_set_exception", 1); + } +</script> +</body> +</html>
\ No newline at end of file |