Commit Graph
30 Commits
Author SHA1 Message Date
Bob Silverberg a47fa4932e Bug 1344857 - SessionStore does not return titles for tabs which have a url that is identical to the title, r=mikedeboer
MozReview-Commit-ID: H7dHJo6rOuz
2017-04-11 13:50:24 -04:00
Tim Taubert a40eda9c9e Bug 1351835 - Update PrivacyLevel.canSave() calls in SessionCookies.jsm r=mikedeboer
The first change we can make is to simplify the PrivacyLevel.canSave() method
itself as it only takes a single argument, `isHTTPS`. Callers shouldn't be
required to pass an object, they should simply pass a boolean.

The second change here is to cleanup SessionCookies.jsm that still passes the
old `isPinned` argument that's no longer needed. We can remove some house
keeping and simplify the cookie collection code.

SessionCookies.getHostsForWindow() that previously returned a map from hostnames
to a site's pinned status (tab.pinned) can now simply return a Set containing
all hostnames found in a window.
2017-03-30 13:57:42 +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
Andrew McCreight fd845f486e Bug 1350469 - Lazily load XPathGenerator.jsm in FormData.jsm. r=mikedeboer
MozReview-Commit-ID: 7Cm7tPYc9dW
2017-03-22 14:01:58 -07:00
Jan Henning 923557a9c5 Bug 1341417 - Using aFromIdx should skip SHEntry serialisation, not just throw the data away afterwards.r=mikedeboer
When calling SessionHistory.collect(), we can indicate that we're not interested in the first N (where N = aFromIdx + 1) session history entries, with N potentially being a very big number if we don't want any SHEntries at all and are just interested in updating the value of the current history index.

Currently, we always serialise all available SHEntries and then throw away the first N entries, which is wasteful - instead, we should just skip them right away.

We still need to keep track how many entries we actually skipped and how many we could have collected if we wanted to, so
- we can correctly clamp data.index
- if we end up with no entries, figure out whether we simply skipped all of them or else need to create a fallback entry.

MozReview-Commit-ID: DjHnnhK0M9L
2017-02-21 21:42:08 +01:00
Christoph Kerschbaumer 61b52d6d49 Bug 1301666 - Remove triggeringPrincipal_b64 from SessionHistory.jsm. r=mikedeboer 2017-03-13 16:47:11 +01:00
Jan Henning f65d19a68e Bug 1340828 - Part 2 - Make life easier for Fennec. r=mikedeboer
Life would easier if the restore function could return a reference to the session history object retrieved from the DocShell, so that Fennec's main session store code can use that to trigger the needed reload afterwards instead of having to retrieve it again independently.

MozReview-Commit-ID: 1J5k4Evbc8Y
2017-02-18 22:50:58 +01:00
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
Christoph Kerschbaumer ecd9d4ed04 Bug 1338009 - Utils#deserializePrincipal should return NullPrincipal if deserialization fails. r=mikedeboer 2017-02-12 11:50:25 +01:00
Jan Henning 9755aa98b0 Bug 1335008 - Part 1 - Move PrivacyLevel.jsm to toolkit. r=mikedeboer
... so we can use it on Android, too. Also fix ESLint errors that are appearing at the new file location.

MozReview-Commit-ID: 3A3aoHm00RJ
2017-01-31 23:05:31 +01:00
Christoph Kerschbaumer 7ad993429a Bug 1307736 - Store triggeringPrincipal with all history entries. r=mdeboer 2017-01-27 11:19:27 +01:00
Kris Maglione 0fb3aafdd9 Bug 1305162: Follow-up: Fix bustage. r=me
MozReview-Commit-ID: 8FaZ1OKgDtF
2017-01-21 16:58:46 -08:00
Kris Maglione 1d5e218562 Bug 1305162: Part 1b - Properly serialize nsIMIMEInputStream in RemoteWebNavigation. r=dragana
MozReview-Commit-ID: 6PePVAEL1Px
2017-01-21 13:28:08 -08:00
Florian Quèze 13cfe1d3f3 Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01:00
Jared Wein e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher 2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein 34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Dave Townsend e7b1b3284f Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm
2016-11-11 15:22:34 -08:00
Geoff Brown 131dda1304 Bug 1313397 - Move browser/components/sessionstore/Utils.jsm to toolkit/modules; r=mikedeboer 2016-11-02 10:56:20 -06:00
Towkir Ahmed e82c9583ae Bug 1284887 - Replaced references to mxr.mozilla.org in the codebase with dxr.mozilla.org r=dolske
a=release to get around a hook that's catching these comment-only idl changes
2016-08-15 17:28:05 -07:00
Mike de Boer 3e1736b445 Bug 1280294. r=MattN
MozReview-Commit-ID: KdN5kETA9go
2016-07-07 15:10:26 +02:00
Dave Townsend 141eaedde7 Bug 1245649: Enable no-nested-ternary. r=mconley 2016-02-03 21:17:16 -08: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
Jed Davis 616a4c3b65 Bug 1143934 - Work around SessionStore dependency on current brokenness. r=ttaubert
Currently, setting a file input element's value property in a content
process creates a File object that seems valid but causes form
submission to fail -- inexplicably so, from the user's point of view.
The next patch will make that throw, so this patch prepares SessionStore
by making it catch that exception and leave that element unrestored (but
continue with the rest of the form).  The user would already have needed
to manually re-pick the file -- until bug 1122855 is fixed to make
SessionStore properly e10s-enabled -- but this makes that more obvious.
2015-03-31 20:34:00 -04:00
Tim Taubert 4dec059e71 Bug 1143720 - Remove support for old FormData, PageStyle, and ScrollPosition formats r=smacleod 2015-03-16 17:17:43 +01:00
Tim Taubert 2fd342025e Bug 1023565 - Remove setTimeout() when restoring contentEditable values r=smacleod 2015-01-28 15:06:19 +01:00
Bill McCloskey 853c5d27a4 Bug 1046964 - Fix some JS warnings (r=ttaubert) 2014-08-19 17:27:58 -07:00
Tyler Colgan acdfc4f50a Bug 1038215 - Change FormData.collect() to avoid storing credit card data for Session Restore r=ttaubert 2014-07-30 15:25:35 +02:00
Tim Taubert 501d530e1c Bug 1030719 - Properly restore form data for contenteditables r=smacleod 2014-06-26 15:55:16 +02:00
Marina Samuel e4b3ed7340 Bug 950174: Part 1: Move required session store files from browser/ to toolkit/modules. r=gps, ttaubert 2014-02-19 11:28:00 -05:00