Index: LayoutTests/fast/frames/detach-frame-during-focus.html |
diff --git a/LayoutTests/fast/frames/detach-frame-during-focus.html b/LayoutTests/fast/frames/detach-frame-during-focus.html |
index 880ae7dd2daffbdc841fb7317009bb60395576fd..f1c614cf925dd8bc41a09ffc5323a479914128a4 100644 |
--- a/LayoutTests/fast/frames/detach-frame-during-focus.html |
+++ b/LayoutTests/fast/frames/detach-frame-during-focus.html |
@@ -12,11 +12,12 @@ var didStartTest = false; |
function startTest() { |
if (didStartTest) |
return; |
- didStartTest = true;; |
- frame1.innerInput.focus(); |
+ didStartTest = true; |
+ var frameWindow = document.getElementById('frame1').contentWindow; |
+ frameWindow.innerInput.focus(); |
outerInput.focus(); |
document.execCommand('inserttext', false, 'abc'); |
- frame1.innerInput.focus(); |
+ frameWindow.innerInput.focus(); |
document.body.appendChild(document.createTextNode('PASS')); |
testRunner.notifyDone(); |
} |