Welcome Guest Search | Active Topics | Sign In | Register

`LoadImages` option is ignored on a new tab Options
Dragos
Posted: Monday, February 27, 2017 5:12:13 PM
Rank: Advanced Member
Groups: Member

Joined: 6/3/2016
Posts: 32
In App.xaml `Application_Startup` I have the following code:

EO.WebEngine.BrowserOptions options = new EO.WebEngine.BrowserOptions();
options.EnableWebSecurity = false;
options.EnableXSSAuditor = false;
options.AllowJavaScript = true;
options.AllowJavaScriptAccessClipboard = false;
options.AllowPlugins = true;
options.AllowZooming = true;
options.DefaultEncoding = Encoding.UTF8;
options.LoadImages = false;


EO.WebBrowser.Runtime.SetDefaultBrowserOptions(options);
EO.WebBrowser.Runtime.CachePath = someCachePath;
EO.WebBrowser.Runtime.Proxy = new EO.Base.ProxyInfo(EO.Base.ProxyType.HTTP, host, port);

The first page I am opening it is ok: no image is loaded. However, if I open a new tab, images are back. It worked fine before. Do I need to set this option for each tab? Same question for the rest of the runtime calls ...

Thanks.
Dragos
Posted: Monday, February 27, 2017 6:04:05 PM
Rank: Advanced Member
Groups: Member

Joined: 6/3/2016
Posts: 32
The same thing with 'EnableWebSecurity' - I think. I am trying to make an XmlHttpRequest call to another website (REST) from my app, call which used to work before, now I am getting this: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Dragos
Posted: Monday, February 27, 2017 7:17:59 PM
Rank: Advanced Member
Groups: Member

Joined: 6/3/2016
Posts: 32
Another thing I have tried and it didn't worked:

private WebViewItem NewWebViewItem(EO.WebBrowser.WebView webView)
{
WebViewItem item = new WebViewItem(webView);
item.Page.WebView.NewWindow += new NewWindowHandler(WebView_NewWindow);
}


void WebView_NewWindow(object sender, NewWindowEventArgs e)
{
EO.WebEngine.BrowserOptions options = new EO.WebEngine.BrowserOptions();
options.EnableWebSecurity = false;
options.EnableXSSAuditor = false;
options.AllowJavaScript = true;
options.AllowJavaScriptAccessClipboard = false;
options.AllowPlugins = true;
options.AllowZooming = true;
options.DefaultEncoding = Encoding.UTF8;
options.LoadImages = false;

e.WebView.SetOptions(options);

}

eo_support
Posted: Tuesday, February 28, 2017 4:56:34 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

This is just to let you know that we are still working on this issue. We are able to reproduce the issue here and we expect to post an update build with the fix soon. We will reply here again when the issue is fixed.

Thanks!
eo_support
Posted: Friday, March 3, 2017 9:39:56 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

Please download build 17.0.81.0 from our download page. This build fixed this issue.

Thanks!
Dragos
Posted: Friday, March 3, 2017 5:02:07 PM
Rank: Advanced Member
Groups: Member

Joined: 6/3/2016
Posts: 32
Got the fix. It works. Thank you.
eo_support
Posted: Friday, March 3, 2017 6:21:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Great. Thanks for confirming the fix!
Eurice
Posted: Monday, March 6, 2017 4:30:47 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 133
Hello,

I'm facing the exact same issue (on .81) but with EnableWebSecurity option.

I need it for loading local files, but it only works on first webview.

Btw, I tested loadImage=false; it worked as expected on all webviews.

EDIT :

Found out its more complicated than I though.
It seems that, I cannot load local files after detaching a webview from a Window / re-attaching it to a new one.
Instead of opening my file it load "about:blank", but without the normal error message "cannot access local files"


Best regards
eo_support
Posted: Tuesday, March 7, 2017 2:29:15 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Eurice wrote:
Hello,

I'm facing the exact same issue (on .81) but with EnableWebSecurity option.

I need it for loading local files, but it only works on first webview.

Btw, I tested loadImage=false; it worked as expected on all webviews.

EDIT :

Found out its more complicated than I though.
It seems that, I cannot load local files after detaching a webview from a Window / re-attaching it to a new one.
Instead of opening my file it load "about:blank", but without the normal error message "cannot access local files"


Best regards


This is just to let you know that we have found the root cause of the problem. The issue will be fixed in our next build.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.