cloudtrends / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
1 stars 1 forks source link

javascript_open_windows_disallowed set to true, but mousewheel click creates new window. #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
"javascript_open_windows_disallowed" set to true, but mousewheel click creates 
new window.

A new window should not be created, or, if it should, how do we stop this 
behavior on the mousewheel click?

Windows 7, libcef r212.

Original issue reported on code.google.com by adrian.v...@gmail.com on 10 May 2011 at 10:17

GoogleCodeExporter commented 9 years ago
Mouse wheel clicking a link (which results in a call to 
BrowserWebViewDelegate::loadURLExternally and creates a popup window) is a user 
navigation event similar to left clicking a link and does not relate to 
javascript_open_windows_disallowed. You can use your 
CefHandler::HandleBeforeCreated implementation to redirect or cancel the popup 
window creation. See the usage of TEST_REDIRECT_POPUP_URLS and 
ClientPopupHandler in the cefclient sample application for an example of how to 
manage popup windows.

In the future, please ask questions on the CEF forum instead of creating issue 
reports.

Original comment by magreenb...@gmail.com on 11 May 2011 at 1:40