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

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

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html Created 6 years, 9 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/fast/events/open-window-from-another-frame.html
diff --git a/LayoutTests/fast/events/open-window-from-another-frame.html b/LayoutTests/fast/events/open-window-from-another-frame.html
index db197948da6a3297d453e5ebac1883b54ba80075..1e67c6e78b7d111516406ac2aa8b70a26be22b02 100644
--- a/LayoutTests/fast/events/open-window-from-another-frame.html
+++ b/LayoutTests/fast/events/open-window-from-another-frame.html
@@ -13,7 +13,7 @@
function test()
{
var myLink = document.getElementById('link');
- var myFrame = document.getElementById('otherFrame').contentWindow;
+ var myFrame = window.frames['otherFrame'];
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" id="otherFrame"></iframe>
+ <iframe src="resources/open-window-from-another-frame-otherFrame.html" name="otherFrame"></iframe>
<div id="res"></div>
</body>
</html>
« no previous file with comments | « LayoutTests/fast/events/onbeforeunload-focused-iframe.html ('k') | LayoutTests/fast/events/popup-blocked-to-post-blank.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698