Form elements in popup can not be accessed from opener
Posted: Sat Sep 11, 2010 7:17 pm
Form elements in popup window, I mean js-opened child window, can not
be accessed from script in opener window.
I'm seeing this on Minefield trunk builds and Firefox 4.0betas with
NoScript 2.0.2.x or 2.0.3, on Win XP SP3. Also on Ubuntu 10.04 on VM Guest.
Uh, same on SeaMonkey trunk.
steps to reproduce:
1. open the test page:
http://homepage3.nifty.com/chado/moz_wo ... ini_2.html
2. click "open" button to open child window named "new_win"
3. click "get child textbox" button to get new_win.document.forms['form0'].text.value
expected:
alert pops with "1234567890"
actual:
alert do not pop,
Error Console says "Error: new_win.document.forms.form0 is undefined"
Firefox 3.6.9 or NoScript 2.0.1 looks working good.
I tried Firefox trunk little earlier build:
rv:1.9.3a6pre) Gecko/20100626 Minefield/3.7a6pre ID:20100626035857.
with NoScript 2.0.1: works fine.
with NoScript 2.0.2.5: Error.
I'm usualy testing on localhost, addressed like http://localhost/xxxx/xxxx,
while "localhost" added in whitelist, ABE disabled.
Any workaround ? Thank you.
be accessed from script in opener window.
I'm seeing this on Minefield trunk builds and Firefox 4.0betas with
NoScript 2.0.2.x or 2.0.3, on Win XP SP3. Also on Ubuntu 10.04 on VM Guest.
Uh, same on SeaMonkey trunk.
steps to reproduce:
1. open the test page:
http://homepage3.nifty.com/chado/moz_wo ... ini_2.html
2. click "open" button to open child window named "new_win"
3. click "get child textbox" button to get new_win.document.forms['form0'].text.value
expected:
alert pops with "1234567890"
actual:
alert do not pop,
Error Console says "Error: new_win.document.forms.form0 is undefined"
Firefox 3.6.9 or NoScript 2.0.1 looks working good.
I tried Firefox trunk little earlier build:
rv:1.9.3a6pre) Gecko/20100626 Minefield/3.7a6pre ID:20100626035857.
with NoScript 2.0.1: works fine.
with NoScript 2.0.2.5: Error.
I'm usualy testing on localhost, addressed like http://localhost/xxxx/xxxx,
while "localhost" added in whitelist, ABE disabled.
Any workaround ? Thank you.