|
Rank: Member Groups: Member
Joined: 2/27/2015 Posts: 13
|
Hello, I'm working with the latest release of EO.WebBrowser (licensed version). I'm am experiencing an issue while opening a PDF link in a new window: the application stops working while opening the new window. Here you can find the simple code (WinForms) I'm using to show the popup window:
Code: C#
void WebView_NewWindow(object sender, EO.WebBrowser.NewWindowEventArgs e) {
Form f = new Form();
WebControl w = new WebControl();
f.Controls.Add(w);
w.Dock = DockStyle.Fill;
w.WebView = e.WebView;
f.Show(this);
e.Accepted = true;
}
Please note that the same link works well if opened in a WPF application (like the TabbedBrowser in the samples folder). Thanks in advance Best Regards Carlos
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, We tested this with the latest build and it seems to work fine. Can you check if you are running the latest version first? If you are already on the latest version and still have problem, please try to isolate the problem into a test app and then send the test app to us: http://www.essentialobjects.com/forum/test_project.aspxOnce we have that we will look into it as soon as possible. Thanks!
|
|
Rank: Member Groups: Member
Joined: 2/27/2015 Posts: 13
|
Hello,
I made a lot of investigation on this problem, and I found that it crops up when a Flex application opens a link calling Javascript function window.open inside the page. If an alert is shown before calling the window.open function everything goes well.
I sent you a test project, with all you need to simulate this particular problem.
Regards Carlos
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
We have received the test project however we can not load TestLink.swf. We tried to open TestLink.html in IE, Chrome and our TabbedBrowser sample and we get a blank page in all of them. Is there anything special steps we must follow in order to get TestLink.swf loaded?
If we change the embed element to a regular HTML element and then calls openPopup when that element is clicked, everything works fine.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 2/27/2015 Posts: 13
|
Hi, In order to run an SWF from the local storage, you need to trust the location in which it is saved. To do this, navigate to this URL: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htmland add the folder in which you saved the SWF file to the trusted locations list. Now reload the page and everything should work fine... Regards Carlos
|
|
Rank: Member Groups: Member
Joined: 2/27/2015 Posts: 13
|
Hello,
did you try the example project? Were you able to reproduce the error? Please let me know something as soon as possible , we are blocked from using the library in a productive environment.
Thanks in advance Best regards
CarlosG
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
This is just to let you know that we are still working on this issue. We are able to reproduce the issue but we have not found out the root cause yet. We will reply again as soon as we have an update.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 2/27/2015 Posts: 13
|
Hello,
can you please give me an update regarding this issue? One month has passed since my first message, and my company is waiting for the solution of this error to adopt the component in production.
Many thanks Best regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Sorry about the delay. We have researched this issue and we do have a workaround. However we are still trying to find a solution without workaround. In the mean time, please use the following workaround:
Code: C#
private class FormWithoutActivation: Form
{
protected override bool ShowWithoutActivation
{
get
{
return true;
}
}
}
void WebView_NewWindow(object sender, EO.WebBrowser.NewWindowEventArgs e)
{
Form f = new FormWithoutActivation();
WebControl w = new WebControl();
f.Controls.Add(w);
w.Dock = DockStyle.Fill;
w.WebView = e.WebView;
f.Show(this);
e.Accepted = true;
}
Note that here instead of creating a regular Form, it creates a FormWithoutActivation which overrides ShowWithoutActivation and returns true. The direct result of this is f.Show(this) will no longer tries to set focus to the new form, this is what caused the deadlock issue you see (presumably because Adobe Flash refuses to give up focus before the click event returns). Please let us know if this resolves the problem for you. Thanks!
|
|
Rank: Member Groups: Member
Joined: 2/27/2015 Posts: 13
|
Hi,
unfortunately this solution only works in the test project. The real project on which I'm working is a little bit more complex and this method doesn't work at all.
For this reason I would appreciate if you can keep me informed if you can find a solution.
Many thanks and best regards
Carlos
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
In that case you must find out what's the difference between your real project and the test project, then update the test project and submit a new one to us. We can not shoot in the dark and hope we can somehow magically resolve an issue that we can not see. So for such issues a test project to reproduce the problem is always necessary.
Thanks!
|
|