public static FakeHttpContext CreateContext(ICoreBrowser ie) { if (Context == null) { Context = new FakeHttpContext(ie); Context.Initialize(); } return(Context); }
protected override void AttachBrowser(ICoreBrowser browser) { fakeHttpContext = new FakeHttpContext(webBrowser); fakeHttpContext.Initialize(); MyBrowser mybrower = (MyBrowser)webBrowser; mybrower.ObjectForScripting = fakeHttpContext; mybrower.DownloadComplete += new csExWB.DownloadCompleteEventHandler(mybrower_DownloadComplete); base.AttachBrowser(browser); }