If I load the following HTML in cefclient and resize the window, I get an alert as expected. However, I cannot dismiss or interact with the alert in any way. The application is effectively hung. If I give focus to another application, I cannot get focus back to cefclient.
- Code: Select all
<html>
<head>
<script type="text/javascript">
function resizeit(){
alert("resized!");
}
window.onresize = resizeit;
</script>
</head>
<body>
<p>resize the window</p>
</body>
</html>
I am trying to understand why this is happening. From what I can tell in VS 2008, both threads are blocked:
The main thread is in EndDeferWindowPos (handling WM_SIZE in the WndProc of cefclient.cpp)
The UI thread is in BrowserWebViewDelegate::ShowJavaScriptAlert
This only happens if I use a separate thread for UI. Does anybody have an idea what is wrong? What state should the threads be in when the message box is up?