public class FakeServer : Object
{
- WebKit.WebView view;
+ //WebKit.WebView view;
+ static WebKit.WebContext cx = null;
public FakeServer(WebKit.WebView wkview)
{
- this.view = wkview;
-
+ //this.view = wkview;
+ if (cx != null) {
+ return;
+ }
- var cx = WebKit.WebContext.get_default();
+ cx = WebKit.WebContext.get_default();
//var cx = this.view.get_context();
cx.register_uri_scheme("xhttp", serve);
cx.register_uri_scheme("resources", serve);