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

Unified Diff: third_party/WebKit/LayoutTests/hittesting/subframe_active_crash.html

Issue 2747463003: Ensure clean layout for a call site of FrameSelection::contains() (Closed)
Patch Set: 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 | « no previous file | third_party/WebKit/Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/hittesting/subframe_active_crash.html
diff --git a/third_party/WebKit/LayoutTests/hittesting/subframe_active_crash.html b/third_party/WebKit/LayoutTests/hittesting/subframe_active_crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..6cf5cce07f21cf2af4e142d694405d5a2ff76f7b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/hittesting/subframe_active_crash.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<style>
+#frame:active {
+ border-width: 5px;
+}
+</style>
+<iframe id="frame"></iframe>
+<script>
+test(() => {
+ assert_not_equals(window.eventSender, undefined, 'This test requires eventSender');
+
+ const frame = document.getElementById('frame');
+ const mouseX = frame.offsetLeft + frame.offsetWidth / 2;
+ const mouseY = frame.offsetTop + frame.offsetHeight / 2;
+ eventSender.mouseMoveTo(mouseX, mouseY);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+}, 'Clicking in a subframe with :active style should not crash.');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698