CefSharp.MinimalExample open a scond windows by click on a link with target="_blank" .. and the application will hang on close #4488
Replies: 3 comments 6 replies
-
Converted to discussion as this appears to be an Does your If it works in Try testing with both options below:
If either of options has an issue then you need to open an issue at https://github.com/chromiumembedded/cef/issues |
Beta Was this translation helpful? Give feedback.
-
And again me, now I did a test by calling Now I can click on the pdf link to open the secondary window to show the pdf, So it seems to be |
Beta Was this translation helpful? Give feedback.
-
Created issue #4499 for this |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
CefSharp Version
112.3.0
Operating System
Windows 10
Architecture
x64
.Net Version
4.5.2
Implementation
WinForms
Reproduction Steps
Start the
CefSharp.MinimalExample.Wpf
application.Navigate to a website containing a link like:
<a href="https://raw.githubusercontent.com/stephanema1/playground/main/test.pdf" target="_blank"> test.pdf</a>
Now a second window opens showing the pdf.
close the main window (the first one)
the window showing the pdf gets black and never closes, you have to kill the process by the task manager.
PS:
I wanted to prepare such a testpage in my
https://github.com/stephanema1/playground
but github replaces my target="_blank" :-(
Or download https://github.com/stephanema1/playground/blob/main/test.html open it with
CefSharp.MinimalExample.Wpf
and do the steps above.
Expected behavior
The application should close normally without dangling freezed windows.
Actual behavior
See the Reproduction Steps number 5.
Just tried the same test with the cefclient.exe downloaded from
https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2
cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu
this one is different: it crashes when I klick on the link to open the pdf
Regression?
No response
Known Workarounds
No response
Does this problem also occur in the CEF Sample Application
Yes using WPF/OffScreen command line args
Other information
I am looking the whole das on google stackoverflow and did not find a solution
Beta Was this translation helpful? Give feedback.
All reactions