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

Unified Diff: trunk/LayoutTests/fast/events/open-window-from-another-frame.html

Issue 184633004: Revert 168553 "id of iframe incorrectly sets window name" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 10 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: trunk/LayoutTests/fast/events/open-window-from-another-frame.html
===================================================================
--- trunk/LayoutTests/fast/events/open-window-from-another-frame.html (revision 168578)
+++ trunk/LayoutTests/fast/events/open-window-from-another-frame.html (working copy)
@@ -13,7 +13,7 @@
function test()
{
var myLink = document.getElementById('link');
- var myFrame = window.frames['otherFrame'];
+ var myFrame = document.getElementById('otherFrame').contentWindow;
myLink.onclick = myFrame.handleClick;
if (window.testRunner) {
var x = myLink.offsetLeft + 2;
@@ -35,7 +35,7 @@
This tests that window.open works across frames.<br>
To run manually click the link below.<br>
<a href="resources/greenbox.png" id="link">GreenBox or Success page.</a><br>
- <iframe src="resources/open-window-from-another-frame-otherFrame.html" name="otherFrame"></iframe>
+ <iframe src="resources/open-window-from-another-frame-otherFrame.html" id="otherFrame"></iframe>
<div id="res"></div>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698