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

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/resources/script-container.html

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript">
5 window['new-script-object-in-frame'] = function() {
6 return FactoryFunction();
7 };
8 // A simple script object with a member function that takes
9 // an NPObject as an argument
10 FactoryFunction = function() {
11 var TestObject = function() {
12 };
13 TestObject.prototype.createObject = function(plugin) {
14 var newObject = plugin.testCloneObject();
15 return newObject;
16 };
17 var instance = new TestObject();
18 return instance;
19 };
20 </script>
21 </head>
22 <body>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698