iab1 = window.open('http://foobar.com', '_blank', 'location=no');
iab1.addEventListener('loadstop', function(event)
{
iab1.executeScript(
{
code: " var t = window.localStorage.getItem('test');alert(t);window.localStorage.setItem('test', '9999');"
}, function()
{
alert("done");
});
});
ok this test code works as expected.