src/Builder4/FakeServer.vala
authorAlan Knowles <alan@roojs.com>
Thu, 5 Mar 2015 14:17:29 +0000 (22:17 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 5 Mar 2015 14:17:29 +0000 (22:17 +0800)
src/Builder4/FakeServer.vala

index 6e907f7..fe95ac2 100644 (file)
@@ -23,10 +23,10 @@ public class FakeServer : Object
         this.wkview.navigation_policy_decision_requested.connect(on_navigation_policy_decision_requested);
         this.wkview.new_window_policy_decision_requested.connect(on_navigation_policy_decision_requested);
           
-        // Load the HTML into WebKit.
-        // Note: load_finished signal MUST be hooked up before this call.
-        string html_text = GearyApplication.instance.read_theme_file("message-viewer.html") ?? "";
-        load_string(html_text, "text/html", "UTF8", "");
+         // 
+         webcontext.register_uri_scheme("xhttp",  ( request) => {
+                        // request is URISchemeRequest
+        
        }
        
        private bool on_navigation_policy_decision_requested(
@@ -40,5 +40,8 @@ public class FakeServer : Object
         // not sure if we should allow navigations...
         return true;
     }
+    
+    
+    
                
 }