Hi all,

Firefox 4.0.1
Mac OS X Snow Leopard
Greasemonkey 0.9.4

I'm trying to write a greasemonkey script that will open other browser 
windows, control them, collect information from them, and close them when 
done. For example, the sample script ( https://gist.github.com/992362 ) 
opens a tab, then after 5 seconds tries to access the location href from 
that tab, and then close the window. The opening works fine, but accessing 
info and closing don't seem to work. 

This line: console.log('location: ' + win.location.href);
generates this error in the firebug log:
Permission denied to access property 'href'
greasemonkey.js (line 180)

win.close() seems to do nothing. The tab stays open, and no error in the 
log.
Looking at the recent greasemonkey changes, it seems there have been some 
recent fixes around the GM_openInTab() functionality.
Should I be able to do this? Any ideas?
Thanks,
Joe




-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to