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

Unified Diff: chrome/test/data/npapi/npobject_set_exception.html

Issue 375005: When a plugin calls NPN_SetException, pass the exception along to every rende... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/renderer/plugin_channel_host.cc ('k') | chrome/test/ui/npapi_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/npapi/npobject_set_exception.html
===================================================================
--- chrome/test/data/npapi/npobject_set_exception.html (revision 0)
+++ chrome/test/data/npapi/npobject_set_exception.html (revision 0)
@@ -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>
Property changes on: chrome\test\data\npapi\npobject_set_exception.html
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/renderer/plugin_channel_host.cc ('k') | chrome/test/ui/npapi_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698