It seems like the solution to this would be for the first opened
window to trigger the session restore, and the session restore process
goes like this:

1. Open additional win32 windows in the correct order
2. Load the basic browser XUL into each window
3. Bring the 'priority load'/active window to the foreground (*not*
reorder it, just focus it) - iirc on Win32 this will work if Firefox
is currently focused, and if it's not focused it will not work but the
user won't notice.
4. Load tabs into the priority load window until you're done.
5. Load tabs into the non-priority load windows.

That seems like it would ensure that the active window (the one the
user is most likely to want to browse with, and the one that will be
focused) loads and becomes responsive first while the other windows
load in the background.

On Sun, Jul 6, 2014 at 2:08 AM, Neil <n...@parkwaycc.co.uk> wrote:
> David Rajchenbach-Teller wrote:
>
>> We are considering redesigning slightly how windows are reopened by
>> Session Restore, to ensure that most recently used windows are loaded first.
>>
>
> I can't quite tell from your phrasing whether the bottleneck here is the
> time it takes to open windows. I'm assuming it is, and that Session Restore
> has to wait for all the windows to open so that it can prioritise loading
> the most recent window first.
>
> Since Session Restore already knows things such as the size and position of
> the window it wants to restore, I'm wondering whether it might it be
> possible to open the windows to about:blank and then start loading
> browser.xul in the most recent window first. (Obviously this only helps if
> there are three or more windows to restore, since you have to have loaded
> browser.xul in the first window to know you want to restore the previous
> session.)
>
> --
> Warning: May contain traces of nuts.
>
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to