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

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

Issue 7037027: Fixes Issues #5751 & #22631: NPObject identity (Closed)
Patch Set: hopefully added base url 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
diff --git a/chrome/test/ui/npapi_uitest.cc b/chrome/test/ui/npapi_uitest.cc
index ec9db7688405098ca63d5f5efa0a1960702c057d..abbcbc70e677a19bdd8b5769e930e5b8ba7be7ac 100644
--- a/chrome/test/ui/npapi_uitest.cc
+++ b/chrome/test/ui/npapi_uitest.cc
@@ -117,6 +117,16 @@ TEST_F(NPAPITesterBase, MAYBE_GetURLRedirectNotification) {
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