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
WinForms - DefaultFocusHandler.OnGotFocus NullReferenceException when JS print from popup #2725
Comments
Thanks for filling out the bug report. Please fork https://github.com/cefsharp/CefSharp.MinimalExample/tree/cefsharp/73 and provide an example that demos your problem. Thanks |
Thanks for the reply, |
Obs: It doesn't need to print, it's just the JS window popup |
For the print dialog we appear to be passed a CefRefPtr<CefBrowser> reference which doesn't appear to trigger an OnAfterCreated call so we have no reference to it. Looking at the `CefBrowser`, there's no real data of value, empty url, no frame information (just an invalid frame id) so for now we'll just ignore it in DefaultFocusHandler, we don't want to handle for popups anyway Resolves #2725
Thanks, fix will be included in the final |
Thanks! |
What version of the product are you using?
What architecture x86 or x64?
On what operating system?
Are you using
WinForms
,WPF
orOffScreen
?What steps will reproduce the problem?
Open a website with one button with a javascript function, eg.:
javascript:CallPrint('name','email');
Function Code:
A new window with the preview and the option to print:
-What do you see instead?
Please provide any additional information below.
[0416/145422.219:INFO:CONSOLE(93)] "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.", source: [0416/145428.938:INFO:CONSOLE(403)] "Tue Apr 16 2019 14:54:28 GMT+0100 (Western European Summer Time) Atmosphere: beforeunload event", source: [0416/145430.356:INFO:CONSOLE(403)] "Tue Apr 16 2019 14:54:30 GMT+0100 (Western European Summer Time) Atmosphere: unload event", source: [0416/145430.630:INFO:CONSOLE(93)] "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.", source:
The text was updated successfully, but these errors were encountered: