Document loaded in iframe takes over its parent

VERIFIED INVALID

Status

()

Core
Layout
P3
normal
VERIFIED INVALID
19 years ago
19 years ago

People

(Reporter: Steve Lamm, Assigned: karnaze (gone))

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

19 years ago
I have an html page that look like this,

<body><iframe src="http://www.uiuc.edu/"/><body>

The iframe loads the document and when its done, the contents of the iframe
takes over the whole window.
(Reporter)

Comment 1

19 years ago
Created attachment 756 [details]
An HTML page with one iframe that loads www.cnn.com.

Updated

19 years ago
Assignee: troy → karnaze

Comment 2

19 years ago
Yeah, that's pretty whacky. Assigning to Chris, but Cc'ing Eric because I forgot
who handles IFRAME

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID

Comment 3

19 years ago
That's because the web sites you are visiting are greedy:

A la:
<BODY ONLOAD="if (top != self) top.location.href = self.location.href;">
<BODY ONLOAD="if(parent.frames.length!=0)top.location='http://cnn.com';">
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
(Reporter)

Comment 4

19 years ago
That's slick. I need to pick my test sites more carefully.
You need to log in before you can comment on or make changes to this bug.