Example #1
0
 public static FakeHttpContext CreateContext(ICoreBrowser ie)
 {
     if (Context == null)
     {
         Context = new FakeHttpContext(ie);
         Context.Initialize();
     }
     return(Context);
 }
Example #2
0
        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);
        }