Order of session manager events in basilisk and palemoon

Board for discussions around the Basilisk web browser.

Moderator: Basilisk-Dev

thosrtanner
Lunatic
Lunatic
Posts: 395
Joined: 2014-05-10, 18:19
Location: UK

Order of session manager events in basilisk and palemoon

Unread post by thosrtanner » 2020-07-03, 19:48

Trying to get the tabgroups manager to work cleanly in palemoon and basilisk, and I've noticed a difference in the way the session store module behaves.

On palemoon, you get an SSWindowStateBusy event when starting the restore, followed by an SSTabRestoring event for each tab, followed by an SSWindowStateReady event. In basilisk, you get the WindowStateReady event before any of the SSTabRestoring events.

I'm not sure why that difference, and while it's possible to code round it, the order of events in palemoon seems a little easier to deal with (and obviously I'd like not to have to code round it in the first place!)

The code to register for the events is:

Code: Select all

gBrowser.tabContainer.addEventListener("SSTabRestoring", this, false);
window.addEventListener("SSWindowStateBusy", this, false);
window.addEventListener("SSWindowStateReady", this, false);

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35479
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Order of session manager events in basilisk and palemoon

Unread post by Moonchild » 2020-07-03, 21:50

If it's about extensions, put it in the extensions board.
If it's about application development, then put it there.

THIS board is for help with using Basilisk. not either of the others... I'd have thunk that you got that by now.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked