BrowserView.js
authorChris <chris@roojs.com>
Fri, 13 Sep 2013 10:14:48 +0000 (18:14 +0800)
committerChris <chris@roojs.com>
Fri, 13 Sep 2013 10:14:48 +0000 (18:14 +0800)
BrowserView.js

index 807b6d5..54a1c9a 100644 (file)
@@ -326,6 +326,20 @@ BrowserView = new GType({
         this.signal.load_finished.connect(load_finished);
         this.signal.load_progress_changed.connect(update_progress);
 
+       this.signal.create_plugin_widget.connect(function(wv, mt, uri, parm) { 
+               print("got plugin requrest");
+});
+var mv = WebKit.webkit_web_view_get_main_frame();
+//var db = WebKit.get_web_plugin_database ();
+//var pg = db.get_plugins();
+print("plugins");
+//for(var i = 0 ; i < pg.length; i++) {
+
+//print(pg[i].get_name());
+//print(pg[i].get_enabled() *1);
+//print(pg[i].get_description() *1);
+
+//}
         // For some reason, this segfaults seed in the instance init closure handler
         // Once that's fixed, uncommenting the next line will give middle-click-open-in-new tab
         //this.signal.navigation_policy_decision_requested.connect(clicked_link);