Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1805)

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2764703004: Reland of Only release the pointer lock when the RenderWidgetHost being destroyed (Closed)
Patch Set: disable test on mac Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/pointer_lock_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 12a9dda0a25888c8d3dc2ebabab6b1899070d596..ab9cc28ee3f60207c13a591ef9aad2c76709b7a0 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1731,7 +1731,7 @@ void WebContentsImpl::RenderWidgetDeleted(
view_->RestoreFocus();
}
- if (mouse_lock_widget_)
+ if (render_widget_host == mouse_lock_widget_)
LostMouseLock(mouse_lock_widget_);
}
« no previous file with comments | « content/browser/pointer_lock_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698