Comment 71 for bug 481541

Revision history for this message
In , Kakadu+bugzilla (kakadu+bugzilla) wrote :

(In reply to comment #19)
> browser.tabs.loadDivertedInBackground can be set to true in about:config to
> achieve this. This is a pref that doesn't need UI, either, so I'm not sure
> what the point is, exactly.

The point is that it is there and it is useful - I like being able to load external URIs into the browser without stealing focus from my current tab. What I don't like is that the window itself is raised every time; Firefox never used to do this, and many people attributed the loss of this behaviour to changes to TBP.

> Short of adding even more complexity to tabbrowser, I don't
> see a way to open in foreground while delaying focus without a core-level fix
> that would allow us to call focusIfAndWhenWindowIsFocused() or something
> instead.

That's basically what the point of this bug is. How hard would it be to add the necessary core APIs to allow focus to be suppressed when tabbrowser creates new tabs?