If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

child window is not able to access forms in the opener window.

VERIFIED INVALID

Status

()

Core
Security: CAPS
--
minor
VERIFIED INVALID
16 years ago
16 years ago

People

(Reporter: Guille (bisho), Assigned: Mitchell Stoltz (not reading bugmail))

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4+) Gecko/20011003
BuildID:    2001100321 (And others)

I don't know if this is a Bug or a security measure.

If you try to access window.opener.NameOfForm.Element.value from a child window
results in a window.opener.NameOfForm has no properties.

Explorer allows accesing the values.

A simple workarround is to have a funtion in the opener window to access the
form elements and call this function from the child window, but I want to know
if this is a bug or only a security feature. :)

Reproducible: Always
Over to security.

This is a security feature, but it may be buggy.... :)
Assignee: rogerl → mstoltz
Component: Javascript Engine → Security: CAPS
QA Contact: pschwartau → bsharma

Comment 2

16 years ago
Shouldn't that be window.opener.document.NameOfForm.Element.value ...? I thought
that form objects are properties of the document, not the window.

Using document works fine for me. Will attach testcase.

Comment 3

16 years ago
Created attachment 52564 [details]
testcase -- popup should alert "the value"
(Assignee)

Comment 4

16 years ago
Jason is correct, forms are properties of the Document object.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → INVALID

Comment 5

16 years ago
Verified on 2001-10-31-Trunk build on WinNT

The above test case loads fine.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.