Commit graph

132 commits

Author SHA1 Message Date
jordan9769
5761e9b0d1 Bug 1311347 - Enable eslint of browser/components/sessionstore/. Initial changes by Sourav, updated by Standard8. r=jaws
MozReview-Commit-ID: 4RFxoV8SkIa

--HG--
extra : rebase_source : 96b24b172cfa957489df37943171ddae07145e84
2016-10-28 02:48:50 +05:30
Jan Henning
5e22220b1b Bug 1340828 - Part 1 - Move SessionHistory.jsm to toolkit. r=mikedeboer
We want to use this for Android, too. Once again, moving the file necessitates fixing a few ESLint errors that weren't yet checked for under the old directory.

MozReview-Commit-ID: IPxcizKwzAX

--HG--
rename : browser/components/sessionstore/SessionHistory.jsm => toolkit/modules/sessionstore/SessionHistory.jsm
extra : rebase_source : 77a85942443026620c77508d6ccb405e0a9864ff
2017-02-18 20:54:09 +01:00
Florian Quèze
028a82f682 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
Michael Layzell
054becaed7 Bug 1310771 - Part 3: Add support to SessionStore for recording history for GroupedSHistories, r=mikedeboer
MozReview-Commit-ID: Ffq7h3zRUm3
2016-11-18 16:00:43 -05:00
Dão Gottwald
a1816a5043 Bug 1287732 - Remove some event.target null checks. r=gijs 2016-07-19 18:20:13 +02:00
Pushpankar
c6670d980f Bug 1286854 - Replace ownerDocument.defaultView with ownerGlobal in browser/. r=dao
--HG--
extra : rebase_source : 72d50e73baf595840a2aade57ae782e4c40d4c27
2016-07-16 10:20:04 +02:00
Gijs Kruitbosch
939d620e96 Bug 1276117 - part 1: fix URL bar state when loading about:home after about:preferences, r=mikedeboer
MozReview-Commit-ID: D5ecLsiJF3R

--HG--
extra : rebase_source : e2182ab760cb052fb9e6996a3c9e948c6d67fd66
2016-05-27 14:06:02 +01:00
Gabor Krizsanits
e1127b3ff0 Bug 1262661 - part2: optimization on session storage and history messages. r=mconley 2016-05-23 12:15:15 +02:00
Gijs Kruitbosch
307e6f9842 Bug 1272317 - fix URL bar state when switching to a non-remote browser, r=mconley
MozReview-Commit-ID: 4dmgz6iHfdK

--HG--
extra : rebase_source : aa2df82eaa5e15aa75a5a4e4bbfdd04879c37d94
2016-05-16 22:36:35 +01:00
Timothy Guan-tin Chien
90df11d2e4 Bug 1153393 - Make session restore restores the scroll position of an about:reader page, r=gijs
MozReview-Commit-ID: 6smuca3vx5O

--HG--
extra : rebase_source : 2853cce414d538076cdc5b066cb05989ba996299
2016-05-07 12:31:21 +08:00
Gabor Krizsanits
fcb1f9c2d0 Bug 1262661 - clear the MessageQueue after send. r=mconley 2016-05-03 22:38:36 +02:00
Gijs Kruitbosch
1d863b1c09 Bug 1267289 - add more URL bar tests and fix issue with error pages, r=mikedeboer,mconley
This adds tests for issues brought up in bug 231393, bug 264610, bug 302575 and bug 1129564,
all of which fed into the current implementation of userTypedClear/userTypedValue. I intend
to move us away from userTypedClear, but I'm keen not to regress any of these issues, so
I'm adding automated tests to ensure that doesn't happen.

MozReview-Commit-ID: 1up2MIXzkzG

--HG--
extra : rebase_source : 4d37f13895b8c7e7aba5331664718582c6b2136c
2016-04-25 17:27:35 +01:00
Gijs Kruitbosch
b6a127aa5c Bug 1266475 - don't re-load about:blank when we're remoteness-switching anyway, r=mconley
MozReview-Commit-ID: HwPrmjzCxHq

--HG--
extra : rebase_source : 0526ffa60cc63cad9aaaa16b0f0bf2faa69234f2
extra : amend_source : 5a0135c6daf192d12dd1b24570a33ea6afb29310
2016-04-21 17:55:42 +01:00
Mike Conley
9b79809916 Bug 1261657 - Don't record SSTabRestored events in StartupPerformance that are the result of a remoteness flip. r=Yoric
MozReview-Commit-ID: 2pnT2DdKPHV

--HG--
extra : rebase_source : f64f2007b7738c259996402a722b3a9bfcab5e0d
2016-04-03 00:30:14 -04:00
Mike Conley
044d8bca6b Bug 1195295 - Remove SessionStore's SyncHandler since all tab and window flushing is now async. r=ttaubert
MozReview-Commit-ID: 5UrQj1UUKDE

--HG--
extra : rebase_source : 0b2f5ebb954603bfe6a800ff0d6100be5a2dfbb2
2015-12-01 14:34:25 -05:00
Mike Conley
31dbaf7d90 Bug 1245212 - Properly cancel SessionStore:update message timers if timeoutDisabled is set to true. r=billm
MozReview-Commit-ID: BjiumfIOrdT

--HG--
extra : rebase_source : 08492d1bdbd132ffe25f14c62fbe6b8510e55d73
2016-02-01 16:00:29 -05:00
Mike Conley
88150e630a Bug 1231422 - Fix busted pref observer for browser.sessionstore.debug.no_auto_updates. r=billm
--HG--
extra : rebase_source : 79ebfe3ff54d62a3f24f1eedfdd24f3682c29291
2016-01-22 11:43:49 -05:00
Andrew McCreight
0f12a580d4 Backed out changeset 18eec0849a1f (Bug 1195295) for leaking.
This changeset is causing shutdown leaks (bug 1234697 and bug 1220517).
2015-12-23 15:59:15 -05:00
Mike Conley
f2127e9ebb Bug 1195295 - Remove SessionStore's SyncHandler since all tab and window flushing is now async. r=ttaubert
--HG--
extra : commitid : 20kUFlNpMz6
extra : rebase_source : 89f89eea235b8a68f6c76e3324909be7d7da0ede
2015-12-01 14:34:25 -05:00
Mike Conley
51e9466a0f Bug 1226333 - Add tests for async window flushing. r=billm.
--HG--
extra : commitid : 9ji0WXf0vH0
extra : rebase_source : 31ffb2e4df2cf6f4e3902fb4504fae2984dee55a
2015-12-02 09:46:06 -05:00
David Rajchenbach-Teller
d9df20222c Bug 1216250 - Limit amount of DOM Storage data stored by Session Restore. r=ttaubert
DOM Storage is a pretty inefficient and memory-hungry storage mechanism. Session Store attempts to record DOM Storage for each tab, which leads to (possibly very large) objects being serialized once to be sent from frame/content to parent and once to be sent from the main thread to the I/O thread. This is a suspect behind a number of crashes (see bug 1106264 for a discussion on the topic).

This patch limits the amount of DOM Storage that Session Restore attempts to store. We perform a quick estimate on the amount of memory needed to serialize DOM Storage and prevent storage larger than ~10M chars being sent from frame/content to the parent. Once this patch has landed, we will need to watch FX_SESSION_RESTORE_DOM_STORAGE_SIZE_ESTIMATE_CHARS to find out whether our threshold is meaningful.

--HG--
extra : transplant_source : %26%07%ADzjT%A9%E3%B9%B9%EC%9D%97n%23%B5%F2%DAZ%CD
2015-10-20 14:15:17 +02:00
David Rajchenbach-Teller
8292b78498 Bug 1214408 - Telemetry on SessionStore:update OOM;r=ttaubert
--HG--
extra : transplant_source : %3A%DB%3Cp%8Fj%24%CF%94%E9%5C%AA%17%0E%2C%03E%23%A2%98
2015-10-16 21:44:54 +02:00
Boris Zbarsky
a63708d836 Bug 1212360. Split up the MozStorageChanged event into separate events for sessionstorage and localstorage. r=khuey 2015-10-09 16:48:10 -04:00
Shu-yu Guo
64db2267cf 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
cfc376cc2c Bug 1169892 - Avoid extra round-trip when a pending tab is reloaded r=billm 2015-05-30 10:13:52 +02:00
Tim Taubert
9c05c58af3 Bug 1162871 - Introduce the TabStateFlusher for async flushing r=billm 2015-05-08 10:59:38 +02:00
Tim Taubert
0fadc88345 Bug 1161928 - Require an epoch (managed in the parent) included in every message sent by the frame script to get rid of TabState.flush() calls in restoreTab() r=billm 2015-05-06 15:06:29 +02:00
Tim Taubert
e974683386 Bug 1161928 - Move epoch handling from ContentRestore.jsm to content-sessionStore.js r=billm 2015-05-06 11:55:20 +02:00
Tim Taubert
83df001bfd Bug 1160556 - Recollect session history data when the page title changes r=Gijs 2015-05-05 16:00:12 +02:00
Tim Taubert
cf32aa59d3 Bug 1109875 - When unloading a frameLoader flush all pending state changes by sending a final update message r=billm 2015-04-29 07:13:29 +02:00
Bill McCloskey
3856bd0f73 Bug 1056443 - Use correct URL in location bar when switching processes (r=ttaubert) 2015-04-15 10:09:49 -07:00
Tim Taubert
ba18194432 Bug 1145942 - Use the frame message manager to revive crashed tabs upon navigation r=billm 2015-03-21 08:20:28 +01:00
Bill McCloskey
1185a0673f Bug 1126089 - Use async messages for crash revival (r=ttaubert) 2015-03-19 06:47:30 -07:00
Phil Ringnalda
24910d5fbd Backed out 3 changesets (bug 1126089) for ASan e10s bc1 failures and green-crashes
CLOSED TREE

Backed out changeset 9af9111e9c27 (bug 1126089)
Backed out changeset 288efd5e2ca0 (bug 1126089)
Backed out changeset 3bcebfd13538 (bug 1126089)
2015-03-18 21:51:34 -07:00
Bill McCloskey
42505bae58 Bug 1126089 - Use async messages for crash revival (r=ttaubert) 2015-03-18 16:09:27 -07:00
Tim Taubert
b9ad4f0a67 Bug 1100223 - Make calling loadURI() on pending tabs work as expected by marking the tab as no longer pending and simply waiting for the restoration to finish r=billm 2015-02-24 11:29:36 -08:00
Tim Taubert
e5523401ac Bug 1114040 - Handle redirects and errors correctly in session store (r=ttaubert) 2015-01-23 10:49:10 +01:00
Dave Townsend
33002c3689 Bug 1075658: Make browser.loadURI synchronously update the browser remoteness. r=ttaubert 2014-10-29 13:26:14 -07:00
Mike Conley
eefe7bf38d Bug 1070096 - Collect no SessionStore information for about:tabcrashed pages. r=ttaubert.
--HG--
extra : rebase_source : 46798a97625dcbdcc2d4ad4d697420fde4074903
2014-10-21 08:39:29 -04:00
Wes Kocher
79b0a57f21 Backed out changeset 74dc73d33c56 (bug 1070096) for bustage on a CLOSED TREE 2014-10-20 16:58:12 -07:00
Mike Conley
892eaa056e Bug 1070096 - Collect no SessionStore information for about:tabcrashed pages. r=ttaubert.
--HG--
extra : rebase_source : 589c6e50cbf17d8e84d9885d00683c62684118b7
2014-10-20 16:48:13 -04:00
Bill McCloskey
22dcee9a12 Bug 1059007 - Don't skip MozStorageChanged event for frames in session store (r=ttaubert) 2014-09-23 15:48:53 -07:00
Bill McCloskey
419be6ec53 Bug 1059007 - Use useCapture for MozStorageChanged events (r=ttaubert) 2014-08-28 13:37:16 -07:00
Tim Taubert
01d93a3314 Bug 1027087 - Fix ContentRestore errors when a tab is closed while restoring into it r=smacleod 2014-06-18 14:48:12 +02:00
Steven MacLeod
6b97d7dfd1 Bug 1001120 - Introduce a test for slow subframe loads invalidating Session History. r=ttaubert 2014-04-28 19:21:09 -04:00
Steven MacLeod
20e09455ae Backed out changeset a2d961fb4789 due to intermittent mochitest-bc oranges. 2014-04-28 19:21:08 -04:00
Steven MacLeod
7d701edf2a Bug 1001120 - Remove the frame tree observer from the content-sessionStore.js SessionHistoryListener. r=ttaubert 2014-04-28 12:04:00 -04:00
Steven MacLeod
68cd3b0f84 Bug 981900 - Add OnHistoryReplaceEntry to nsISHistoryListener to handle history.replaceState. r=smaug 2014-04-24 15:12:15 -04:00
Steven MacLeod
3ce5b1e118 Bug 967028 - Use a SHistoryListener to collect entries from history.pushState(). r=Yoric 2014-03-20 22:52:31 -04:00
Marina Samuel
c6138fecf7 Bug 950174: Part 1: Move required session store files from browser/ to toolkit/modules. r=gps, ttaubert
--HG--
rename : browser/components/sessionstore/src/FormData.jsm => toolkit/modules/sessionstore/FormData.jsm
rename : browser/components/sessionstore/src/ScrollPosition.jsm => toolkit/modules/sessionstore/ScrollPosition.jsm
rename : browser/components/sessionstore/src/XPathGenerator.jsm => toolkit/modules/sessionstore/XPathGenerator.jsm
2014-02-19 11:28:00 -05:00
Tim Taubert
c3c0d37a99 Bug 936271 - Remove load event handling from SessionStore.jsm r=yoric 2014-01-27 08:56:00 -08:00
Wes Kocher
076272c22f Backed out changeset 392c8cf7a623 (bug 936271) 2014-01-30 17:34:50 -08:00
Tim Taubert
be768e4e7c Bug 936271 - Remove load event handling from SessionStore.jsm r=yoric 2014-01-27 08:56:00 -08:00
Tim Taubert
79e0addb9c Bug 965218 - Check whether shistory is empty when frame script is loaded r=yoric 2014-01-29 05:54:33 -08:00
Tim Taubert
eb267d030f Bug 960903 - Listen for subframe loads and clear observers r=yoric 2014-01-22 13:10:58 +01:00
Tim Taubert
a5afd2d4bf Bug 960903 - Broadcast session history data r=yoric 2014-01-20 17:37:41 +01:00
Tim Taubert
5890f7d952 Bug 961106 - Remove observers on frame script unload r=billm
From 173bf18bbcfc0e2a2f2637471b1e61d2115c7e67 Mon Sep 17 00:00:00 2001
2014-01-18 00:47:58 +01:00
Tim Taubert
73ccb12062 Bug 947212 - Broadcast form data and move it out of tabData.entries[] r=yoric
From 3111a6c4272a1e058db6a88e02f8688f8c49cc5f Mon Sep 17 00:00:00 2001
2013-12-03 18:56:33 +01:00
Bill McCloskey
6392fe229f Bug 942374 - Restore sessions by message passing (r=ttaubert) 2014-01-16 11:43:40 -08:00
Tim Taubert
44248265ff Bug 956826 - Check docShell's private browsing state when the frame script is loaded r=yoric
From ee65809c2e3e3eec807b8b2c4cbc0599da1d8377 Mon Sep 17 00:00:00 2001
2014-01-15 11:24:25 +01:00
Tim Taubert
1dcc57284c Bug 952998 - Use FrameTree to collect DOMSessionStorage data r=yoric
From 594cc2bdabe535ef356276bce49c4b36c73ab3a2 Mon Sep 17 00:00:00 2001
2013-12-20 14:23:32 +01:00
Tim Taubert
b2502c0e27 Bug 952934 - Use onFrameTreeReset() to re-collect docShell capability data r=smacleod
From b3a6d0ab445df9e336b969f230c1394f457dd91c Mon Sep 17 00:00:00 2001
2013-12-22 18:26:27 +01:00
Tim Taubert
055be4025e Bug 952401 - Collect scroll and pageStyle data as soon as the frame tree is available r=smacleod
From 84ca4ca357b94a5dc9449627e88bb4e3cde69557 Mon Sep 17 00:00:00 2001
2013-12-20 11:13:49 +01:00
Tim Taubert
40c3104034 Bug 950132 - Fix pageStyle data collection r=yoric
From af5873fe7e4f55dd72f0e62d5c22285c2c94e40d Mon Sep 17 00:00:00 2001
2013-12-19 12:21:51 +01:00
Steven MacLeod
8073f9fe4d Bug 945809 - Add Telemetry for Session Store data collection in the frame script. r=ttaubert
X-Git-Commit-ID: 0ef7d331d06ef7e28a25932914128a7d7ff63d84
2013-12-18 21:29:54 +01:00
Tim Taubert
c9b3ca4e13 Bug 921942 - Broadcast scroll positions r=yoric
From 5f535195e10d6cccbedbdf607ff194450a40c4ed Mon Sep 17 00:00:00 2001
2013-12-02 06:18:44 +01:00
David Rajchenbach-Teller
1d719236e6 Bug 899276 - Don't collect/save private tabs. r=ttaubert 2013-12-18 12:39:53 -05:00
Bill McCloskey
f2123068c3 Bug 947632 - Use sendRpcMessage during session store flush (r=ttaubert) 2013-12-14 15:51:11 -08:00
Tim Taubert
2a2907183b Bug 930967 - Add broadcasting for sessionstore data r=yoric,billm,smacleod
From 2f772870c7cfb39a4a30c30f1ea75b026385b06c Mon Sep 17 00:00:00 2001
2013-10-27 15:30:56 +01:00
Bill McCloskey
ea2f9b773e Bug 930269 - Rename SessionHistory.read (r=smacleod) 2013-11-12 15:02:46 -08:00
Bill McCloskey
58b37dc5e5 Bug 933587 - Fix undefined Ci reference in session store (r=markh) 2013-11-03 16:02:53 -08:00
Bill McCloskey
181e0ba7be Bug 919835 - Make session data collection work with multiple processes (r=ttaubert,Yoric) 2013-10-29 08:44:25 -07:00
Bill McCloskey
05226c41c2 Bug 909048 - Collect text and scroll data from content script (r=ttaubert) 2013-10-18 10:09:25 -07:00
Bill McCloskey
fe45826f3c Bug 910668 - Collect pagestyle from a content script (r=ttaubert) 2013-10-18 10:09:13 -07:00
Bill McCloskey
685acc3b5a Bug 924929 - Add missing Cu import in session restore content code (r=Yoric) 2013-10-10 10:52:19 -07:00
Bill McCloskey
945f83d0c7 Bug 910646 - Collect docShell capabilities from content script (r=ttaubert) 2013-09-27 17:58:53 -07:00
Tim Taubert
f54a6b1d55 Bug 894595 - part 2 - Implement asynchronous data collection for session storage and history; f=smacleod r=yoric 2013-08-28 13:11:14 +02:00
Ryan VanderMeulen
506eb102e1 Backed out 5 changesets (bug 894595) for causing new mochitest-bc intermittent failures.
Backed out changeset 778adbf10481 (bug 894595)
Backed out changeset 5b621d8eb5e9 (bug 894595)
Backed out changeset 91303ff403ac (bug 894595)
Backed out changeset 3caa785122bf (bug 894595)
Backed out changeset 108e2b8e177c (bug 894595)
2013-09-17 13:35:58 -04:00
Tim Taubert
8a7788105c Bug 894595 - part 2 - Implement asynchronous data collection for session storage and history; f=smacleod r=yoric 2013-09-17 12:37:22 +02:00
David Rajchenbach-Teller
1657c444c3 Bug 867143 - Cache Session Restore state aggressively. r=ttaubert 2013-07-26 12:15:00 -04:00
Tim Taubert
bbdfe233e5 Bug 862442 - Use a content script to listen for input and change events; r=yoric 2013-04-20 10:05:20 +02:00
Tim Taubert
ff8a254006 Bug 861409 - Use a content script to listen for pageshow events; r=yoric,jaws 2013-04-20 10:05:20 +02:00