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

Side by Side Diff: LayoutTests/platform/chromium/plugins/resources/script-container.html

Issue 11411245: Merge 135804 - Check for empty perContextData while creating NP V8 Object. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 window['new-script-object-in-frame'] = function() { 5 window['new-script-object-in-frame'] = function() {
6 return FactoryFunction(); 6 return FactoryFunction();
7 }; 7 };
8 // A simple script object with a member function that takes 8 // A simple script object with a member function that takes
9 // an NPObject as an argument 9 // an NPObject as an argument
10 FactoryFunction = function() { 10 FactoryFunction = function() {
11 var TestObject = function() { 11 var TestObject = function() {
12 }; 12 };
13 TestObject.prototype.createObject = function(plugin) { 13 TestObject.prototype.createObject = function(plugin) {
14 var newObject = plugin.testCloneObject(); 14 var newObject = plugin.testCloneObject();
15 return newObject; 15 return newObject;
16 }; 16 };
17 var instance = new TestObject(); 17 var instance = new TestObject();
18 return instance; 18 return instance;
19 }; 19 };
20 </script> 20 </script>
21 </head> 21 </head>
22 <body> 22 <body>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW
« no previous file with comments | « LayoutTests/platform/chromium/plugins/empty-per-context-data-expected.txt ('k') | Source/WebCore/bindings/v8/NPV8Object.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698