On 7/19/12 5:10 AM, Johannes Bauer wrote:
> - Even if I allow the main site to open popups, this will only work up
> until 20 tabs. After that, Firefox refuses to open new tabs. I'd need
> 30, sometimes 40, depending on the parsed site's content.
Yes, there's a global cap on the number of popups untrusted code can
open. You can change the "dom.popup_maximum" preference to affect this.
> - Opening the different tabs from the bookmarklet is easy, modifying the
> approproate window.document.title is not. I've tried to do it directly, like
>
> newwin = open("foo.bar");
> newwin.document.title = "foobar";
Loads are async. You're changing the title of the about:blank document
that's initially in the window; then foo.bar loads and a new document is
created....
> I've also tried placing the setting of the title in a timer callback (which
> won't work for security reasons, it disallows accessing the remote
> "document" property).
Indeed.
> Is there a easy was to get this done? It seems like such a trivial task!
It is, for an extension. But you're trying to do it with script from a
web page, and there are some security restrictions on scripts in
webpages. ;)
You want to use an extension.
-Boris