Commit Graph

25 Commits

Author SHA1 Message Date
Beekill95
819a958ee9 Bug 1388664: Execute _saveStateAsync in idle callback. r=mikedeboer
MozReview-Commit-ID: EmqpUkoUeUi
2017-08-11 08:49:52 +07:00
Kris Maglione
0fb6b2e73c Bug 1388215: Part 3 - Use JIT-friendly defineLazy*Getters methods when defining many lazy imports. r=florian
MozReview-Commit-ID: APoFwUhDFdj
2017-08-09 13:03:36 -07:00
Tim Taubert
747ba454cd Bug 1359429 - Remove superfluous telemetry probes r=mikedeboer f=bsmedberg
FX_SESSION_RESTORE_COLLECT_DATA_LONGEST_OP_MS can go because that's exactly the same as FX_SESSION_RESTORE_COLLECT_DATA_MS now.

We can remove FX_SESSION_RESTORE_COLLECT_COOKIES_MS because that's just a flat line since bug 912717 landed.
2017-04-25 21:48:22 +02:00
Tim Taubert
55be5ff70c Bug 1359344 - Properly clear cookies on clean shutdown if requested by the user r=mikedeboer
Since bug 912717 the cookies moved from state.windows[x].cookies (i.e. stored
per-window) to state.cookies (i.e. one global list of cookies). We forgot to
update the code in SessionSaver._saveState() that purges cookies upon clean
shutdown if requested by the user's preferences.
2017-04-25 12:59:16 +02:00
Florian Queze
451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Sebastian Hengst
f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze
61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Will Wang
47ba1b0c55 Bug 1305950 - Don't collect/save the session when the user is idle. r=mdeboer
This patch includes:
- (By Yoric) Don't collect/save the session when the user is idle;r=mdeboer
- Add a test for the behavior of state writing in idle/active mode

When the user is not actively using the computer, webpages may still
perform changes that require (re)writing to sessionstore, e.g.  updating
Session Cookies or DOM Session Storage, or refreshing, etc. Before
this patch, a single active page can require us to
recollect/serialize/write the entire Session Restore file every 15
seconds even when the user is not in front of the computer.

We expect that, when the user is not in front of the computer, changes
are not critical and don't need to be saved as often. We now adopt the
following strategy:

- when the user has been away for (by default) 15 seconds, finish any
  pending collect/write, then increase the collect/write buffering
  delay to (by default) 1h

- when the user returns, reschedule any pending 1h collect/write as a
  (by default) 15 seconds collect/write, then proceed with (by
  default) 15 seconds collect/write delays.
2017-03-31 11:38:01 +08:00
Mark Banner
03b4896b94 Bug 1311347 - Enable eslint of browser/components/sessionstore/. Autofix changes. r=jaws
MozReview-Commit-ID: 5LKHbcmjSy
2017-03-10 19:51:20 +00:00
Kestrel
02c13d1e3e Bug 1315524 - Clear sessionStorage when expiring or sanitizing cookies on clean shutdown. r=mikedeboer 2016-11-06 02:24:00 -05:00
Matheus Longaray
55f42e68bd Bug 1306294 - Filters out not worth-saving tabs from session state. r=mikedeboer 2016-12-06 03:30:00 -05:00
Tim Taubert
497e8c7fa1 Bug 1275415 - Use Ci.nsICookieService.ACCEPT_SESSION instead of Services.cookies.ACCEPT_SESSION in SessionSaver.jsm r=mikedeboer 2016-05-30 07:49:29 +02:00
Kestrel
940cbf487d Bug 1260360 - Purge cookies on clean shutdown according to sanitize preference. r=mconley 2016-04-05 01:46:00 +02:00
Tim Taubert
cdcb787c17 Bug 529899 - Purge cookies on clean shutdown with "Keep cookies until I close Firefox" r=Yoric 2016-02-11 17:14:29 +01:00
Alexandre Poirot
f1439bdbe8 Bug 1204812 - Keep Console.jsm in toolkit/modules/ r=jryans,Mossop 2015-10-15 03:45:22 -07:00
J. Ryan Stinnett
2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Tim Taubert
a36cfd69f6 Bug 1174666 - Remove unneeded SessionSaver.clearLastSaveTime() r=Yoric 2015-06-15 11:54:47 +02:00
Tim Taubert
cdc02a8a22 Bug 1150529 - Remove code for expired telemetry histograms r=Yoric 2015-05-02 09:56:39 +02:00
Tim Taubert
a7a6c9f713 Bug 1157235 - Remove unused sessionstore-state-write notification r=Yoric 2015-04-22 16:05:40 +02:00
Tim Taubert
43b8455c3b Bug 1134518 - Send a state object instead of a string to SessionWorker.write() r=Yoric 2015-04-22 16:18:26 +02:00
Bill McCloskey
907528bb57 Bug 1147236 - Use AppConstants in session store code (r=ttaubert) 2015-03-30 20:13:02 -07:00
Tim Taubert
12d0d39a20 Backed out changeset c98a31227412 (bug 1073992) 2014-10-13 14:58:19 +02:00
Tim Taubert
a688bcaef6 Bug 1073992 - Keep track of revivable windows separately to allow reviving more windows than the max_undo_windows pref allows r=yoric 2014-09-27 09:34:08 +02:00
Birunthan Mohanathas
5a68dfde5b Bug 1038458 - Part 6: Flatten browser/components/sessionstore/src/ directory. r=mak 2014-07-26 09:32:08 -07:00