Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser stops working while opening new window Options
CarlosG
Posted: Friday, February 27, 2015 7:49:52 AM
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
eo_support
Posted: Friday, February 27, 2015 11:31:31 AM
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.aspx

Once we have that we will look into it as soon as possible.

Thanks!
CarlosG
Posted: Friday, February 27, 2015 12:51:02 PM
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
eo_support
Posted: Friday, February 27, 2015 3:03:57 PM
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!
CarlosG
Posted: Tuesday, March 3, 2015 3:52:57 AM
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.html
and 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
CarlosG
Posted: Friday, March 6, 2015 10:10:02 AM
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
eo_support
Posted: Friday, March 6, 2015 3:19:23 PM
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!
CarlosG
Posted: Friday, March 27, 2015 11:48:12 AM
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
eo_support
Posted: Friday, March 27, 2015 2:21:52 PM
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!
CarlosG
Posted: Thursday, April 9, 2015 4:24:23 AM
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
eo_support
Posted: Thursday, April 9, 2015 9:42:52 AM
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!


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.