Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a 2nd PhotinoWindow after closing all others fails #59

Open
9ParsonsB opened this issue Aug 31, 2021 · 5 comments
Open

Creating a 2nd PhotinoWindow after closing all others fails #59

9ParsonsB opened this issue Aug 31, 2021 · 5 comments
Labels
bug Something isn't working question Further information is requested

Comments

@9ParsonsB
Copy link

Hi, Congratulations on V2! Unfortunately, I am still hitting issues with my use scenario:

I am creating a window, showing some information for a short time, and then closing the window so that I can open another.

The reason I cannot navigate between pages is because I need the documents to be a "top-level browsing context[s], whose session history contains only one Document." So that I can close them from JavaScript with window.close().

var window = new PhotinoWindow()

// example only
window.WindowCreated += (sender, eventArgs) =>
{
    Thread.Sleep(TimeSpan.FromSeconds(5));
    window.Close();
};

window.Load(new Uri("https://localhost:5001/"));
window.WaitForClose();
window = null;

// let the message loop run for a bit to make sure everything is cleaned up
Thread.Sleep(100);

var window2 = new PhotinoWindow()
window2.Load(new Uri("https://localhost:5001/"));
window2.WaitForClose()

The second window shows and then instantly closes

@MikeYeager MikeYeager added bug Something isn't working question Further information is requested labels Sep 2, 2021
@MikeYeager
Copy link
Collaborator

We will take a look. This is odd behavior. Which OS are you running?

@9ParsonsB
Copy link
Author

I'm running the Windows 11 preview, with latest Edge Dev installed

@MikeYeager
Copy link
Collaborator

I was able to re-produce this. I'm also running Windows 11 with latest Dev Edge. We will look into it as soon as we find some time.

@lulzsun
Copy link

lulzsun commented Mar 22, 2023

I am also running into this exact problem for my use-case. For reference, I am running on Windows 10 21H2. Has there been any progress towards figuring out this issue?

@ottodobretsberger
Copy link
Contributor

Not yet. We have had other issues with higher priority to deal with thus far, but it is still on our radar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants