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

Side by Side Diff: content/test/data/npapi/npobject_lifetime_test.html

Issue 1182303010: Delete the NPAPI plugin browsertests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2
3 <head>
4 <script src="npapi.js"></script>
5 </head>
6
7
8 <body>
9 <div id="statusPanel" style="border: 1px solid red; width: 100%">
10 Test running....
11 </div>
12
13
14 NPObject Lifetime test<p>
15
16 Tests the case where a plugin holds on to an NPObject reference
17 to another plugin in a different frame in the page and whether
18 the npobject is callable when the frame is destroyed.
19
20 <div ID=npobject_lifetime_test_instance2>
21 <iframe src="npobject_lifetime_test_second_instance.html" name="plugin_frame">
22 </iframe>
23 </div>
24
25 <embed type="application/vnd.npapi-test"
26 src="foo"
27 name="npobject_lifetime_test"
28 id="1"
29 mode="np_embed">
30
31 <script>
32
33 function GetSecondPluginInstance() {
34 var plugin_frame = window.frames["plugin_frame"];
35 if (!plugin_frame) {
36 alert("failed to find frame in frames list");
37 return;
38 }
39
40 var plugin = plugin_frame.document.getElementById(2);
41 if (!plugin) {
42 alert("Failed to locate second plugin");
43 return;
44 }
45 return plugin;
46 }
47
48 function DeleteSecondPluginInstance() {
49 var frame_div = document.getElementById("npobject_lifetime_test_instance2");
50 if (frame_div.parentNode && frame_div.parentNode.removeChild) {
51 frame_div.parentNode.removeChild(frame_div);
52 }
53 }
54 </script>
55
56 </body>
57 </html>
58
OLDNEW
« no previous file with comments | « content/test/data/npapi/npobject_identity.html ('k') | content/test/data/npapi/npobject_lifetime_test_second_instance.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698