gecko-dev/mobile/android/app
Jan Henning 3ff6d827ad Bug 1363321 - Part 2 - Reset crash loop counter after a presumably succesful startup. r=jchen
At the moment, our crash loop counter that turns off session restoring when multiple crashes happen in a row is reset only after a successful background-foreground cycle.

Since its purpose is to break out of startup crash loops caused by the currently loaded tab that is automatically loaded after starting the app, it makes sense to also reset it if we didn't crash soon after starting up. Otherwise, if the user remains within Firefox, another crash long after starting would still count towards the crash loop counter.

Desktop already employs a similar logic for deciding whether to automatically enable safe mode or not after a crash. Therefore, we use the same amount of time (30 s) after starting Gecko for resetting the counter.

We also take the opportunity to make our logic a bit more conservative and only turn off session restoring after two successive crashes in a row (desktop uses 3 by default).

MozReview-Commit-ID: CQDutkDgmfc

--HG--
extra : rebase_source : e3100394772bcebb64610dcadfd77676119e1de1
2017-05-09 23:12:54 +02:00
..
assets Bug 1311398 - Load public suffix list from disk and extract activity stream labels asynchronously. r=Grisha 2016-11-02 13:56:43 +01:00
omnijar Bug 1231749 - Use |mach build faster| to see changes in toolkit/ in Gradle configuration. r=me f=vivek 2015-12-09 23:48:07 -05:00
src Backed out changeset d8c85b0ed424 (bug 1311555) 2017-01-19 19:46:40 +01:00
build.gradle Bug 1361545 - Add "skin" flavorDimension for Photon mobile work. r=sebastian,bustage-fix 2017-05-03 19:20:58 +02:00
checkstyle.xml Bug 1258789 - Remove allowEmptyLoops I added previously to simplify things. r=grisha 2016-04-13 11:22:41 -07:00
findbugs-exclude.xml Bug 1358338 - findbugs: Ignore generated R.*/Manifest* r=sebastian 2017-04-20 19:46:15 -07:00
lint.xml Bug 1284544 - lint: don't error on "OldTargetSdk", we don't want to upgrade the sdk yet r=mcomella 2016-07-05 09:04:43 -07:00
mobile.ico
mobile.js Bug 1363321 - Part 2 - Reset crash loop counter after a presumably succesful startup. r=jchen 2017-05-09 23:12:54 +02:00
moz.build Bug 1357874 - Disable RegExp JIT for AArch64; r=snorp 2017-05-01 14:46:00 -04:00
ua-update.json.in Bug 1338260. Add Fennec-only UA override for directv.com. r=mconnor 2017-02-09 13:55:11 -06:00