gecko-dev/mobile/android
Jan Henning dd79a6bb8c Bug 1284017 - Add telemetry for damaged session store files. r=sebastian
Just watching for a SessionRestoreException during startup can introduce some false positives, because that exception is triggered in any case where we can't restore tabs, not just when the session file has been damaged, e.g.:
- on first startup
- on builds affected by bug 1228593, users who are (theoretically) restoring their tabs, but clearing their history on exist end up with a deleted sessionstore.js
- should we implement bug 1275662, we'd hit that exception in that case, too.

Therefore we only send the telemetry event if we hit that exception even though a sessionstore.js file is present. We also exclude the case where the file size of sessionstore.js is 14 bytes, because that is most likely corresponding to a file containing only {"windows":[]}, which means that the session store intentionally wanted to write a file containing no tabs.

Currently this is only the case for users who are clearing their history on exit and are also *not* restoring tabs, however if bug 1275662 should get implemented, we'd probably encounter those empty files for users who have their restore setting set to "Always restore", too.

Because of bug 1261008, we can also end up with no restored tabs (and a SessionRestoreException) if the session file contains only about:home tabs with no history, because we're skipping those and not restoring them. To detect that case and exclude it from telemetry, we have to include additional logic within the SessionParser instance used during startup and pass those results back to the calling site in GeckoApp.

MozReview-Commit-ID: 6pAhDU3d8QA

--HG--
extra : rebase_source : ebf4d902a616c17ba10c645ad8ef469ceafe8cce
2016-07-05 22:40:01 +02:00
..
app Bug 1272197 - Part 3, backward compatibility for connecting TV 2.5 devices. r=junior 2016-07-04 18:27:09 +08:00
base Bug 1284017 - Add telemetry for damaged session store files. r=sebastian 2016-07-05 22:40:01 +02:00
bouncer Bug 1274955 - Extract Android dependency versions. r=glandium 2016-05-23 13:20:43 +02:00
branding Bug 1279306 - Use the production push server URL on Android. r=margaret 2016-06-09 17:13:39 -07:00
build/classycle
chrome Bug 1285211. Enable "Report Site Issue" menu item in Aurora + Nightly. r=sebastian 2016-07-13 12:32:54 -04:00
components Bug 1282902 - Part 3 - Let the MobileViewportManager recalculate the saved resolution if the display width changed before restoring. r=kats 2016-07-01 21:23:25 +02:00
config Bug 1283438 - Set AUTOCLOBBER to empty for l10n r=glandium. 2016-06-30 15:25:55 -04:00
docs Bug 1277407 - Add docs about using adjust sandbox & updating outdated info. r=sebastian 2016-06-03 17:00:38 -07:00
extensions Bug 1272102 - FlyWeb Android UI delta patch - last push was not final version of patch. r=sebastian 2016-06-09 12:06:20 -04:00
fonts
geckoview_library
gradle/m2repo/com/jakewharton/sdkmanager
installer Bug 1272197 - Part 3, backward compatibility for connecting TV 2.5 devices. r=junior 2016-07-04 18:27:09 +08:00
javaaddons
locales Bug 1285211. Enable "Report Site Issue" menu item in Aurora + Nightly. r=sebastian 2016-07-13 12:32:54 -04:00
modules Bug 1245795 - Pre: Purge OrderedBroadcast r=nalexander 2016-07-04 17:51:15 -07:00
search
services Bug 1245791 - Part 2: Use LocalBroadcastManager for account change broadcasts r=nalexander 2016-07-07 18:15:08 -07:00
stumbler Bug 1245795 - Split Stumbler BroadcastReceivers into Local, System and Safe r=nalexander 2016-07-07 19:40:11 -07:00
tests Bug 1238128 - Ensure that the details passed to WebChannelMessageToChrome is a string, with a whitelist for messages from existing users r=Margaret,markh,MattN 2016-07-12 19:34:41 -04:00
themes/core Bug 1276686 - Prevent selection when tapping on reader mode toolbar. r=margaret 2016-06-03 22:38:39 +08:00
thirdparty Bug 1271860 - Move switchboard logic to client to consume JSON config directly - r=sebastian 2016-07-05 15:55:54 +02:00
.eslintrc
app.mozbuild
build.mk Bug 1274497 - Avoid running adb every time we run make on Android builds. r=gps 2016-05-25 08:43:49 +09:00
confvars.sh Bug 1278959 - Move MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER to Python configure and make it settable by mozconfig. r=glandium 2016-06-09 11:37:40 -07:00
debug_sign_tool.py
gradle.configure
LICENSE
mach_commands.py
Makefile.in
moz.build Bug 1272102 - FlyWeb Android UI. r=sebastian 2016-06-08 21:37:06 -04:00
moz.configure Bug 1278959 - Move MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER to Python configure and make it settable by mozconfig. r=glandium 2016-06-09 11:37:40 -07:00