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

Unified Diff: chrome/test/ui/npapi_uitest.cc

Issue 7068022: Preserves NPObject identity for objects created in a plugin and passed to JavaScript. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « chrome/test/data/npapi/npobject_identity.html ('k') | content/plugin/npobject_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/npapi_uitest.cc
===================================================================
--- chrome/test/ui/npapi_uitest.cc (revision 86681)
+++ chrome/test/ui/npapi_uitest.cc (working copy)
@@ -117,6 +117,16 @@
kTestCompleteSuccess, TestTimeouts::action_max_timeout_ms());
}
+// Tests that identity is preserved for NPObjects passed from a plugin
+// into JavaScript.
+TEST_F(NPAPITesterBase, NPObjectIdentity) {
+ const FilePath test_case(FILE_PATH_LITERAL("npobject_identity.html"));
+ GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), test_case);
+ ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
+ WaitForFinish("npobject_identity", "1", url, kTestCompleteCookie,
+ kTestCompleteSuccess, TestTimeouts::action_max_timeout_ms());
+}
+
// Tests that if an NPObject is proxies back to its original process, the
// original pointer is returned and not a proxy. If this fails the plugin
// will crash.
« no previous file with comments | « chrome/test/data/npapi/npobject_identity.html ('k') | content/plugin/npobject_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698