Add a flag to Disable mouse frame capture
This Cl adds a chrome flag "disable-mouse-subframe-capture" to remove
mouse down implicit capture for iframes.
With the flag enable, when mouse down in iframe and move to outer frame
will route following mouse events in the outer frame (hit-test position)
instead of capturing to iframe.
The approach with Set/ReleasePointerCapture is a temporary approach to
let us experiment removing frame capture with flags. The logic needs to
be re-write once we have the capturing functionality per page.
Bug: 919908
Change-Id: I367dd49ee09c3e7f2cf355ee21adac10ac6cbb40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1652201
Reviewed-by: Jeremy Roman <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: David Bokan <[email protected]>
Reviewed-by: Navid Zolghadr <[email protected]>
Commit-Queue: Ella Ge <[email protected]>
Cr-Commit-Position: refs/heads/master@{#671766}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 05aca60..bd6b441 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -1204,6 +1204,11 @@
const char kMobileIdentityConsistencyDescription[] =
"Enables stronger identity consistency on mobile";
+const char kMouseSubframeNoImplicitCaptureName[] =
+ "Disable mouse implicit capture for iframe";
+const char kMouseSubframeNoImplicitCaptureDescription[] =
+ "When enable, mouse down does not implicit capture for iframe.";
+
const char kNativeFileSystemAPIName[] = "Native File System API";
const char kNativeFileSystemAPIDescription[] =
"Enables the experimental Native File System API, giving websites access "