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

windows: Popup not focused correctly with multi-threaded-message-loop #3481

Open
SB97 opened this issue Apr 11, 2023 · 1 comment
Open

windows: Popup not focused correctly with multi-threaded-message-loop #3481

SB97 opened this issue Apr 11, 2023 · 1 comment
Labels
bug Bug report native Related to a native (non-Views) framework windows Windows platform

Comments

@SB97
Copy link

SB97 commented Apr 11, 2023

Describe the bug
When opening a PopUp with an Input element that gets focus it is not working.

Triage for this problem started at: cefsharp/CefSharp#4457 (reply in thread)

To Reproduce
The Call:

<button class="button" onClick="window.open('test.php','fenster','popup');">
     <span class="icon">Open PopUp</span>
</button>

The Popup:

<body>
<form action="/action_page.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname" value="John"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname" value="Doe"><br><br>
  <input type="submit" value="Submit">
</form> 

</body>

<script>
       document.getElementById("fname").focus();
</script>

cefclient.exe --multi-threaded-message-loop --no-sandbox

Open the main File and click the Button. Start typing.

Expected behavior
Popup opens and the fname input field has focus.

cefclient.exe --multi-threaded-message-loop --no-sandbox --use-default-popup does this.

Versions (please complete the following information):

Additional context
Does the problem reproduce with the cefclient or cefsimple sample application at the same version?

Does the problem reproduce with Google Chrome at the same version?

Add any other context about the problem here.

@SB97 SB97 added the bug Bug report label Apr 11, 2023
@magreenblatt
Copy link
Collaborator

Possibly related to #3436

@magreenblatt magreenblatt changed the title Focusing in PopUp not working windows: Popup not focused correctly with multi-threaded-message-loop Apr 11, 2023
@magreenblatt magreenblatt added the windows Windows platform label Apr 11, 2023
@magreenblatt magreenblatt added the native Related to a native (non-Views) framework label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report native Related to a native (non-Views) framework windows Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants