Problem with window.opener AND window.name IN firefox

A

atlas

Hello eveybody

Here's my problem:

I have 2 files:

File A.html:
---------------->
<script>
window.name='test';
alert("cette fenetre s'apelle:"+window.name);
</script>


File B.html:
---------------->
<script>
alert("normalement yahoo devrait s'ouvrir dans la page ou a été loadé
A.html")
window.open('http://www.yahoo.com','test')
</script>


I open A.html in a window (or tab), and after, i open B.html in another
new window (or tab).
Yahoo should be open in the same window that A.html but firefox open me
a new window.
Why?

If you have any comments... thx a lot!
Have a good day.


Atlas
 
M

Martin Honnen

atlas said:
Yahoo should be open in the same window that A.html but firefox open me
a new window.
Why?

Security, there were potential exploits reported where people tried to
look at the window or frame names one web site (e.g. a bank web site)
and then to use e.g.
window.open('http://example.com/spoofBankInput.html',
'bankLoginFrameName')
to get their own pages opened in a frame belonging to another website
and then use script to capture keys entered.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top