Commit Graph

164 Commits

Author SHA1 Message Date
Tim Taubert
5c1a30b131 Bug 1373672 - Part 1: Filter events from dynamic docShells in Gecko before they reach SessionStore event handlers r=smaug,mystor 2017-08-02 19:08:04 +02:00
Bevis Tseng
d46d0e9e86 Bug 1384041 - Label the use of setTimeout of Timer.jsm in content-sessionStore.js. r=billm
MozReview-Commit-ID: i8Rn1eke4s
2017-07-28 16:03:51 +08:00
Sebastian Hengst
3073215161 Backed out changeset e62c93a8c93b (bug 1373672) for bustage at nsSessionStoreUtils.cpp:21: bad implicit conversion constructor for 'DynamicFrameEventFilter, and e.g. eslint failures. r=backout on a CLOSED TREE 2017-08-01 12:39:21 +02:00
Tim Taubert
12284f3ab0 Bug 1373672 - Part 1: Filter events from dynamic docShells in Gecko before they reach SessionStore event handlers r=smaug,mystor 2017-07-21 14:57:30 +02:00
Marco Castelluccio
91823bf6b0 Bug 1357517 - Remove or delay Preferences.jsm usage from some browser/components/* files. r=Gijs 2017-07-31 13:25:41 +02:00
Tim Taubert
006da10109 Bug 1382635 - FormDataListener shouldn't listen for change events r=mikedeboer 2017-07-21 10:35:25 +02:00
Tim Taubert
ebe9275441 Bug 1348816 - Remove PageStyle collection/restoration from SessionStore r=mikedeboer 2017-07-21 10:35:20 +02:00
Ehsan Akhgari
7636b9231e Bug 1374892 - Implement nsISHistoryListener::OnLengthChanged/OnIndexChanged on the JS implementations to avoid generating silent exceptions when Gecko calls these functions; r=freesamael 2017-06-22 00:30:37 -04:00
Tim Taubert
9a647dd9b7 Bug 1362058 - Further limit the amount of sessionStorage data we store and serialize r=mikedeboer 2017-05-05 12:17:09 +02:00
Tim Taubert
d4d952e6ac Bug 1360916 - Update telemetry code in sessionstore content script r=mikedeboer data-r=bsmedberg
This patch replaces FX_SESSION_RESTORE_CONTENT_COLLECT_DATA_LONGEST_OP_MS with
a more fine-grained data collection via a keyed histogram so that we can
determine which type of data collection we spend a lot of time on.

Additionally, it abandons sending telemetry data from the content to the parent
via custom messages and instead uses the Telemetry service directly. Thus it
also gets rid of a bug that currently overrides measurements for the same
histogram done quickly in succession
2017-05-03 12:06:34 +02:00
Sebastian Hengst
9dbd5e934b Backed out changeset ec64ea9b1249 (bug 1360916) for failing browser_sessionStorage_size.js. r=backout 2017-05-03 00:25:07 +02:00
Tim Taubert
f76a7326b9 Bug 1360916 - Update telemetry code in sessionstore content script r=mikedeboer data-r=bsmedberg
This patch replaces FX_SESSION_RESTORE_CONTENT_COLLECT_DATA_LONGEST_OP_MS with
a more fine-grained data collection via a keyed histogram so that we can
determine which type of data collection we spend a lot of time on.

Additionally, it abandons sending telemetry data from the content to the parent
via custom messages and instead uses the Telemetry service directly. Thus it
also gets rid of a bug that currently overrides measurements for the same
histogram done quickly in succession.
2017-05-02 23:22:45 +02:00
Gabor Krizsanits
57873c6622 Bug 1352961 - P2: Measure for the delay before a new tab starts processing the first URL. r=mconley, data-r=bsmedberg
Opening pages in a new tab might suffer an extra delay from e10s-multi because
the new process has to start up and then run all the process / frame scripts
before it can react on the request from the parent to load the first page.

There are two code paths. Either we start the tab with a remote browser and
then the RemoteWebNavigation will send the request. Or we start with a non-remote
browser and have to change the remoteness flag on it, and then the SessionStore
will send the request.

In each cases we start the timer on the parent side, send it with the message,
and when the child receives it it stops the timer and reports the measured delay.
2017-04-25 17:11:12 +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
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +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
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Jan Henning
e0c811e6eb Bug 1265818 - Part 3 - Store and restore the LayoutHistoryState through SessionHistoy.jsm. r=mikedeboer
Since a LayoutHistoryState is basically just a collection of PresStates, we just save each PresState we can find and then later restore it.

MozReview-Commit-ID: A6WpdelseHn
2017-03-25 15:32:36 +01:00
Mike Conley
df36b04a74 Bug 1348613 - Only use sync message for SessionStore:restoreHistoryComplete for non-remote tabs. r=mikedeboer
MozReview-Commit-ID: IuOtKpudDTU
2017-03-27 12:56:38 -04:00
Mike Conley
19b4f612f8 Bug 1348613 - Make SessionStore:restoreTabContentStarted message always async. r=mikedeboer
MozReview-Commit-ID: 8TwPFUbXluW
2017-03-27 12:15:50 -04:00
Mike Conley
2dd6f7c5c8 Bug 1256472 - Add a reason to the restoreTabContent function and message. r=Gijs,mikedeboer
This helps differentiate restorations that were caused by navigateAndRestore, as opposed
to SessionStore having set state via setBrowserState, setWindowState, or setTabState.

MozReview-Commit-ID: DEEbKLh7f7p
2017-03-14 09:55:54 -04:00
Sebastian Hengst
6ba0872c78 Backed out changeset ba60dcd190ad (bug 1256472) for leaks in browser_windowStateContainer.js. r=backout 2017-03-16 17:24:01 +01:00
Mike Conley
a2a38bd947 Bug 1256472 - Add a reason to the restoreTabContent function and message. r=Gijs,mikedeboer
This helps differentiate restorations that were caused by navigateAndRestore, as opposed
to SessionStore having set state via setBrowserState, setWindowState, or setTabState.

MozReview-Commit-ID: DEEbKLh7f7p
2017-03-14 09:55:54 -04:00
Mark Banner
e20b9ee0f3 Bug 1311347 - Enable eslint of browser/components/sessionstore/. Manual fixes. r=jaws
MozReview-Commit-ID: AupJNLZJ2Ye
2017-03-13 10:32:03 +00: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
jordan9769
8212e38214 Bug 1311347 - Enable eslint of browser/components/sessionstore/. Initial changes by Sourav, updated by Standard8. r=jaws
MozReview-Commit-ID: 4RFxoV8SkIa
2016-10-28 02:48:50 +05:30
Jan Henning
8352e0a6df 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
2017-02-18 20:54:09 +01:00
Masatoshi Kimura
4f2e64ad3d Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg
2017-02-23 06:10:07 +09:00
Florian Quèze
45647c4570 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
Michael Layzell
05a0daefad 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
Gijs Kruitbosch
70a8e9c0a1 Bug 1312406 - part 1: remove tab groups migration code, r=Dolske
MozReview-Commit-ID: BDuX607J51w
2016-11-01 15:59:11 +00:00
Joseph Yeh
905944896a Bug 1184989 - Prevent flipping preference will scroll the page as well. r=jaws
MozReview-Commit-ID: 5j5FN8aFDlX
2016-08-25 10:51:43 +08:00
Dão Gottwald
32b886c770 Bug 1287732 - Remove some event.target null checks. r=gijs 2016-07-19 18:20:13 +02:00
Pushpankar
77a14e357c Bug 1286854 - Replace ownerDocument.defaultView with ownerGlobal in browser/. r=dao 2016-07-16 10:20:04 +02:00
Gijs Kruitbosch
4c76c34e27 Bug 1276117 - part 1: fix URL bar state when loading about:home after about:preferences, r=mikedeboer
MozReview-Commit-ID: D5ecLsiJF3R
2016-05-27 14:06:02 +01:00
Gabor Krizsanits
cf6cc37a4b Bug 1262661 - part2: optimization on session storage and history messages. r=mconley 2016-05-23 12:15:15 +02:00
Gijs Kruitbosch
28b580ac4e Bug 1272317 - fix URL bar state when switching to a non-remote browser, r=mconley
MozReview-Commit-ID: 4dmgz6iHfdK
2016-05-16 22:36:35 +01:00
Timothy Guan-tin Chien
648c7f27c3 Bug 1153393 - Make session restore restores the scroll position of an about:reader page, r=gijs
MozReview-Commit-ID: 6smuca3vx5O
2016-05-07 12:31:21 +08:00
Gabor Krizsanits
2cbd618b60 Bug 1262661 - clear the MessageQueue after send. r=mconley 2016-05-03 22:38:36 +02:00
Gijs Kruitbosch
1f48f5aa92 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
2016-04-25 17:27:35 +01:00
Gijs Kruitbosch
7930f7544b Bug 1266475 - don't re-load about:blank when we're remoteness-switching anyway, r=mconley
MozReview-Commit-ID: HwPrmjzCxHq
2016-04-21 17:55:42 +01:00
Mike Conley
2b0d366f57 Bug 1261657 - Don't record SSTabRestored events in StartupPerformance that are the result of a remoteness flip. r=Yoric
MozReview-Commit-ID: 2pnT2DdKPHV
2016-04-03 00:30:14 -04:00
Mike Conley
78f75eb1ea Bug 1195295 - Remove SessionStore's SyncHandler since all tab and window flushing is now async. r=ttaubert
MozReview-Commit-ID: 5UrQj1UUKDE
2015-12-01 14:34:25 -05:00
Mike Conley
734a8b7805 Bug 1245212 - Properly cancel SessionStore:update message timers if timeoutDisabled is set to true. r=billm
MozReview-Commit-ID: BjiumfIOrdT
2016-02-01 16:00:29 -05:00
Mike Conley
ea58f63c4a Bug 1231422 - Fix busted pref observer for browser.sessionstore.debug.no_auto_updates. r=billm 2016-01-22 11:43:49 -05:00
David Rajchenbach-Teller
3a85c6bc9f Bug 1214158 - New module StartupPerformance to monitor the duration of restoration of initial tabs;r=mconley 2015-11-26 18:01:56 +01:00
Andrew McCreight
720e278561 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
Luis Miguel [:quicksaver]
300052720b Bug 1228980 - Display favicons of tab entries in aboutSessionRestore-based pages. r=ttaubert 2015-12-08 12:35:28 +00:00