RenderWidgetHostInputEventRouter should be made aware of mouse lock and directly route mouse events from the browser to the subframe, instead of using the forwarding code path from parent to subframe.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9b5618b8aa52feeccbb3203046b56b8e75d9423a commit 9b5618b8aa52feeccbb3203046b56b8e75d9423a Author: lfg <lfg@chromium.org> Date: Wed Feb 15 20:43:37 2017 Unify the code paths for handling mouse events when pointer is locked on WebViewImpl and WebFrameWidgetImpl. BUG= 618460 Review-Url: https://codereview.chromium.org/2696523003 Cr-Commit-Position: refs/heads/master@{#450791} [modify] https://crrev.com/9b5618b8aa52feeccbb3203046b56b8e75d9423a/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp [modify] https://crrev.com/9b5618b8aa52feeccbb3203046b56b8e75d9423a/third_party/WebKit/Source/web/WebFrameWidgetBase.h [modify] https://crrev.com/9b5618b8aa52feeccbb3203046b56b8e75d9423a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp [modify] https://crrev.com/9b5618b8aa52feeccbb3203046b56b8e75d9423a/third_party/WebKit/Source/web/WebFrameWidgetImpl.h [modify] https://crrev.com/9b5618b8aa52feeccbb3203046b56b8e75d9423a/third_party/WebKit/Source/web/WebViewFrameWidget.cpp [modify] https://crrev.com/9b5618b8aa52feeccbb3203046b56b8e75d9423a/third_party/WebKit/Source/web/WebViewFrameWidget.h [modify] https://crrev.com/9b5618b8aa52feeccbb3203046b56b8e75d9423a/third_party/WebKit/Source/web/WebViewImpl.cpp [modify] https://crrev.com/9b5618b8aa52feeccbb3203046b56b8e75d9423a/third_party/WebKit/Source/web/WebViewImpl.h
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/84763c90521d17f4b30d3abaa8af472b579a63ff commit 84763c90521d17f4b30d3abaa8af472b579a63ff Author: lfg <lfg@chromium.org> Date: Thu Feb 16 18:55:15 2017 Perform direct routing of mouse events when the pointer is locked. BUG= 618460 Review-Url: https://codereview.chromium.org/2592243002 Cr-Commit-Position: refs/heads/master@{#451031} [add] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/pointer_lock_browsertest.cc [add] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/pointer_lock_browsertest.h [add] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/pointer_lock_browsertest_mac.mm [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/renderer_host/render_widget_host_delegate.cc [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/renderer_host/render_widget_host_delegate.h [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/renderer_host/render_widget_host_input_event_router.cc [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/renderer_host/render_widget_host_view_event_handler.cc [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/web_contents/web_contents_impl.cc [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/web_contents/web_contents_impl.h [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/web_contents/web_contents_view_aura.cc [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/web_contents/web_contents_view_aura.h [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/web_contents/web_contents_view_mac.h [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/browser/web_contents/web_contents_view_mac.mm [modify] https://crrev.com/84763c90521d17f4b30d3abaa8af472b579a63ff/content/test/BUILD.gn
Comment 1 by lfg@chromium.org
, Oct 13 2016