mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 20:50:42 +01:00
Mac: Fix assertion when OSR is enabled (issue #1301)
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1750@1738 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
473a8f695b
commit
f5de781c43
@ -431,7 +431,7 @@ void CefBrowserHostImpl::PlatformSetFocus(bool focus) {
|
||||
web_contents_->GetRenderWidgetHostView()) {
|
||||
view->SetActive(focus);
|
||||
|
||||
if (focus) {
|
||||
if (focus && !IsWindowRenderingDisabled()) {
|
||||
// Give keyboard focus to the native view.
|
||||
NSView* view = web_contents_->GetView()->GetContentNativeView();
|
||||
DCHECK([view canBecomeKeyView]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user