X
Tap here to go to the mobile version of the site.

Support Forum

Have change in tab focus trigger session store

Posted

My browser settings have the sessionstore.interval set to the default of 15000 (15 seconds) but only seems to write to the sessionsstore file only when I add or destroy a tab. This behaviour is fine with me except it does not write to the file if I change focus to another tab.

Is there a preference variable which allows this action?

My browser settings have the sessionstore.interval set to the default of 15000 (15 seconds) but only seems to write to the sessionsstore file only when I add or destroy a tab. This behaviour is fine with me except it does not write to the file if I change focus to another tab. Is there a preference variable which allows this action?
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

More Information

jscher2000
  • Top 10 Contributor
8635 solutions 70623 answers

Helpful Reply

It sounds as though the active tab number isn't updated until something else happens. I am not aware of a preference for that.

The file normally would be updated when you navigate a tab to a different page. What if you just reload the page in the tab you want recorded as the active tab (Ctrl+r) -- does that trigger an update?

It sounds as though the active tab number isn't updated until something else happens. I am not aware of a preference for that. The file normally would be updated when you navigate a tab to a different page. What if you just reload the page in the tab you want recorded as the active tab (Ctrl+r) -- does that trigger an update?
Was this helpful to you? 1
Quote

Question owner

Thanks. Refreshing the tab does trigger the sessionstore to be written to disk but this does not solve my needs. I need this to happen without manual intervention.

I guess I could live with the automatic updating inherit to FireFox but it is not working. I on't know why. The interval is set to 15 seconds (15000).

Thanks. Refreshing the tab does trigger the sessionstore to be written to disk but this does not solve my needs. I need this to happen without manual intervention. I guess I could live with the automatic updating inherit to FireFox but it is not working. I on't know why. The interval is set to 15 seconds (15000).
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8635 solutions 70623 answers

There must be a list somewhere of what events are tracked and which are ignored. Users often complaint that when a session containing multiple windows is restored, the order changes (only the first window is reliably in the same position). It might be a related issue if the windows are not restored in "last used" order but "last loaded a new page" order or something like that.

Do you want to file a bug? I wouldn't expect immediate action, but someone might take an interest in at least tracking down what the triggers are.

https://bugzilla.mozilla.org/

There must be a list somewhere of what events are tracked and which are ignored. Users often complaint that when a session containing multiple windows is restored, the order changes (only the first window is reliably in the same position). It might be a related issue if the windows are not restored in "last used" order but "last loaded a new page" order or something like that. Do you want to file a bug? I wouldn't expect immediate action, but someone might take an interest in at least tracking down what the triggers are. https://bugzilla.mozilla.org/
Was this helpful to you?
Quote

Question owner

IF I were to file a bug it would more likely be that the interval doesn't seem to work. With the default settings I would expect the sessionstore to be updated every 15 seconds (that would be my second option over triggering on tab focus change).

IF I were to file a bug it would more likely be that the interval doesn't seem to work. With the default settings I would expect the sessionstore to be updated every 15 seconds (that would be my second option over triggering on tab focus change).
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17414 solutions 157304 answers

How many tabs and windows do you have open ? The file size may not mean that much because sessionstore files are compressed.

How many tabs and windows do you have open ? The file size may not mean that much because sessionstore files are compressed.
Was this helpful to you?
Quote

Question owner

I can tell where a sessionstore file is udated by looking at the timestamp on the file. By the way, I'm looking at the recovery file. That is the one that is updated while Firefox is running.

I can tell where a sessionstore file is udated by looking at the timestamp on the file. By the way, I'm looking at the recovery file. That is the one that is updated while Firefox is running.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17414 solutions 157304 answers
See also: *https://dxr.mozilla.org/mozilla-release/source/browser/components/sessionstore/SessionSaver.jsm
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8635 solutions 70623 answers

langston said

IF I were to file a bug it would more likely be that the interval doesn't seem to work. With the default settings I would expect the sessionstore to be updated every 15 seconds (that would be my second option over triggering on tab focus change).

A new file is written every 15 seconds if there is something to update. If nothing changes, it would be wasteful to rewrite the identical file.

''langston [[#answer-1216112|said]]'' <blockquote> IF I were to file a bug it would more likely be that the interval doesn't seem to work. With the default settings I would expect the sessionstore to be updated every 15 seconds (that would be my second option over triggering on tab focus change). </blockquote> A new file is written every 15 seconds if there is something to update. If nothing changes, it would be wasteful to rewrite the identical file.
Was this helpful to you?
Quote

Question owner

OK. I can accept that as the reason it does not work like I thought it would. Thanks.

OK. I can accept that as the reason it does not work like I thought it would. Thanks.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.