Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Problem with window.opener AND window.name IN firefox

Reply
Thread Tools

Problem with window.opener AND window.name IN firefox

 
 
atlas
Guest
Posts: n/a
 
      09-07-2005
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
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      09-07-2005

atlas wrote:

> 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.


--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clicking Email Links in Firefox and Opening Another Firefox Window Elizabeth Firefox 0 08-15-2006 11:44 AM
Firefox/Linux import bookmarks from Firefox/Windows? Marek Williams Firefox 2 06-11-2005 04:22 PM
Yahoo! Toolbar Beta for Firefox - Not Compatible with Firefox 1.0.2? NA Firefox 6 04-02-2005 06:13 PM
Firefox gamed - Drudge getting around Firefox popup blocker Venger Firefox 10 12-22-2004 04:37 AM
so what does IE or any of the IE shells have over firefox ? (any anti firefox ppl bother looking at recent plugins available?) *ProteanThread* Firefox 12 10-20-2004 08:31 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57