cef3 multi-window concurrency bug (windows)

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

cef3 multi-window concurrency bug (windows)

Postby andybrown » Wed May 23, 2012 11:37 am

CefJavaScriptDialog installs a windows message hook around its call to a modal ShowWindow() call to show a javascript dialog.

The bug is that javascript running in a second window can cause another entry into CefJavaScriptDialog while the first dialog is on display which will cause DCHECK(msg_hook_ == NULL) to fail in InstallMessageHook().

I was under the impression that v8 was executing once in each window process so this shouldn't happen but it looks like it's talking back to the browser host to display alerts.

Is there any reason why the HHOOK variable is a global and not a member of CefJavaScriptDialog?
andybrown
Techie
 
Posts: 21
Joined: Thu May 03, 2012 10:55 am

Re: cef3 multi-window concurrency bug (windows)

Postby magreenblatt » Thu May 24, 2012 9:27 am

The message hook is global to the current thread (not tied to a particular window). We need to change the implementation so that the hook is unregistered after all CefJavaScriptDialog objects have been destroyed. Please add an issue to the CEF issue tracker.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cef3 multi-window concurrency bug (windows)

Postby andybrown » Fri May 25, 2012 8:06 am

magreenblatt wrote:Please add an issue to the CEF issue tracker.


Done, thanks.
andybrown
Techie
 
Posts: 21
Joined: Thu May 03, 2012 10:55 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 158 guests