Closed Bug 56132 Opened 25 years ago Closed 25 years ago

frame-removing javascript functions do not work

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 56967

People

(Reporter: eradicator101, Assigned: security-bugs)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m17) Gecko/20000807 BuildID: 2000080712 The following code: <SCRIPT LANGUAGE="Javascript"> <!-- if (parent.frames.length) parent.location.href= self.location; // --> </script> should remove a page that is in a frame from the frame it is in. this works in IE 5.x and Netscape 4.7, but does not work in mozilla. For example, in the example page given, the website is put under a frame by namezero, but there is a javascript which will "remove" the frame (code is above). It does NOT remove the frame when viewing the page in mozilla. I have not experimented around with the actual cause of this, but i hope i am of some help. Reproducible: Always Steps to Reproduce: 1.go to diablosecurity.com Actual Results: the diablo security frame is still a frame, and the namezero frame is still there Expected Results: The namezero frame should be removed and only have the frame which called the javascript routine.(aka the diablosecurity page). you should see the diablo security page without any frames.
Browser, not engine. Reassigning to DOM Level 0 -
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
confirmed with 110204 mozilla trunk win32 build. The bottom frame is not removed like it is in 4.x
Status: UNCONFIRMED → NEW
Ever confirmed: true
The security constraints in mozilla are too strict, parent.location.href=self.location is failing, 'parent' is from www.diablosecurity.com and 'self' is from www.crosswind.net so we throw a access_denied exception. Any site should be able to set the location of any window, right? Reassigning to mstoltz.
Assignee: jst → mstoltz
That's correct. Any frame should be able to load any other frame/window. I'll take a look.
Status: NEW → ASSIGNED
*** This bug has been marked as a duplicate of 56967 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
vrfy dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.