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

Unified Diff: content/test/data/page_with_input_field.html

Issue 1370013003: OOPIF: Clear old focused frame when focus moves to a cross-process frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove !frame()->page() check from WebLocalFrameImpl::clearFocus() Created 5 years, 3 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/test/data/page_with_blur.html ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/page_with_input_field.html
diff --git a/content/test/data/page_with_input_field.html b/content/test/data/page_with_input_field.html
new file mode 100644
index 0000000000000000000000000000000000000000..494456a15609344cf5d3da74af23c0c5e764a16d
--- /dev/null
+++ b/content/test/data/page_with_input_field.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+
+function focusInputField() {
+ var inputField = document.getElementById("text-field");
+ inputField.focus();
+}
+
+function onInputFocus() {
+ domAutomationController.setAutomationId(0);
+ domAutomationController.send("input-focus");
+}
+
+function onInputBlur() {
+ domAutomationController.setAutomationId(0);
+ domAutomationController.send("input-blur");
+}
+
+</script>
+</head>
+
+<body>
+This page has a cross-site iframe and a text input field.
+<input type='text' id='text-field'
+ onfocus="onInputFocus()" onblur="onInputBlur()"><br>
+<iframe id='subframe' src="/cross-site/b.com/page_with_blur.html"></iframe>
+</body>
+</html>
+
« no previous file with comments | « content/test/data/page_with_blur.html ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698