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

Unified Diff: LayoutTests/accessibility/image-map-with-indirect-area-crash.html

Issue 16647009: Fix crash when assuming that an AREA's parent must be a MAP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
Index: LayoutTests/accessibility/image-map-with-indirect-area-crash.html
diff --git a/LayoutTests/accessibility/image-map-with-indirect-area-crash.html b/LayoutTests/accessibility/image-map-with-indirect-area-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..1083cc51e710d0768295e9982ee6ba5e9ccf04be
--- /dev/null
+++ b/LayoutTests/accessibility/image-map-with-indirect-area-crash.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+Test passes if it does not crash.
+<body id=body>
+<img usemap=#img height=500 width=613>
+<map name=img>
+<time>
+<area shape=default>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+if (window.accessibilityController) {
+ body.focus();
+ accessibilityController.focusedElement.elementAtPoint(100, 100);
+}
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698