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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5
6 function focusInputField() {
7 var inputField = document.getElementById("text-field");
8 inputField.focus();
9 }
10
11 function onInputFocus() {
12 domAutomationController.setAutomationId(0);
13 domAutomationController.send("input-focus");
14 }
15
16 function onInputBlur() {
17 domAutomationController.setAutomationId(0);
18 domAutomationController.send("input-blur");
19 }
20
21 </script>
22 </head>
23
24 <body>
25 This page has a cross-site iframe and a text input field.
26 <input type='text' id='text-field'
27 onfocus="onInputFocus()" onblur="onInputBlur()"><br>
28 <iframe id='subframe' src="/cross-site/b.com/page_with_blur.html"></iframe>
29 </body>
30 </html>
31
OLDNEW
« 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