Commit Graph

472947 Commits

Author SHA1 Message Date
Jan Henning
32bb7eee86 Bug 1263110 - Part 2 - Implement crash loop detection in Java. r=mfinkle r=sebastian
Bug 701092 originally implemented some functionality to detect successive crashes and then turn off session restore for the next start, however that functionality got lost when parts of the startup session restore code were moved to Java.

This patch re-implements this functionality within the Java UI. Unlike the previous implementation, we don't reset the crash counter in onPause(), because often enough onPause() will execute even after a crash. Instead, we check in onResume() whether our last foreground activity cycle crashed or not.

To avoid cross-process writes and reads to shared preferences, the crash reporter no longer sets the relevant flags in GeckoApp's shared prefs directly, but instead writes an empty CRASHED file to the Mozilla directory as a flag, which is then checked for by the main process during startup.

Alternative solutions considered were:
- Using Context.MODE_MULTI_PROCESS for accessing the shared prefs. Works, but forces the shared preferences to always be re-read from storage and is also deprecated from API 23 onwards.
- Using a ContentProvider for managing the cross-process shared prefs as suggested in Google's documentation. Seems somewhat over-engineered for this use case.
- Sending a broadcast from the crash reporter to signal the main process, so it can update the relevant shared prefs from the correct process. Doesn't work reliably immediately after crashing - sometimes the broadcast never arrives.
- Setting the crash flags directly in the crash handling functions in GeckoAppShell. Could work even when not building the crash reporter, however doesn't work easily for native crashes, because those are handled internally by Gecko without going through the Java crash handling code.

MozReview-Commit-ID: 6g7AmnJhoQk

--HG--
extra : transplant_source : %C2%F28%D9%8A8%08%C6%9F%A4%03%D7%EC%81F%B9%21%3A%E2x
2016-04-19 13:51:06 +02:00
Jan Henning
679706fdd3 Bug 1263110 - Part 1 - Move crash reporter settings into their own shared pref. r=mfinkle r=sebastian
The crash reporter runs in its own process but uses GeckoApp's shared prefs both to store its own settings and to signal to the main process that it has crashed, which can be somewhat problematic because each process might fail to notice settings changes made by the other process. As the simple solution of enabling Context.MODE_MULTI_PROCESS for accessing the shared prefs is now deprecated, we'll devise an alternative solution instead.

In Part 1 we move the settings that are used exclusively by the crash reporter into a separate shared prefs instance.


MozReview-Commit-ID: 1QWBAL2Xcn2

--HG--
extra : transplant_source : %C4%D2%C0%82%F3%19%E1%19%D9%82%11w%D3%D9%B3%DC%9Be%95%91
2016-04-18 18:56:28 +02:00
Shatur
99d95f6235 Bug 1252823 - Find-in-page doesn't give enough visual feedback when no matches are found. r=margaret 2016-04-22 23:26:13 +05:30
Jan Henning
1c26124a19 Bug 1266223 - Add logging for session store closed tab data messaging. r=margaret
MozReview-Commit-ID: AWyq0q7HiB0

--HG--
extra : transplant_source : %FB%BF%DE%00%0F%06%06%86%D3Y%98w%AC%8B%DA%F0%F61%1FA
2016-04-27 16:14:28 +02:00
Jork K
376fdaf3e6 Bug 1267612 - Skipping certain web extension related tests for Thunderbird. r=kmag 2016-04-26 14:31:00 +02:00
Bob Silverberg
f2fe40405a Bug 1266824 - Intermittent test_ext_alarms.html | alarm fired within expected time, r=aswan
test_alarm_fires_with_when is failing intermittently and it looks like the function inside the setTimeout (which is designed to detect that the alarm did not fire as expected) is firing, even though the test is passing and the alarm did fire. I added a condition around it so it will only mark the test as failed if the alarm did not in fact fire.

I also did some clean up of the existing tests, including adding this type of logic to all tests that expect an alarm or alarms to have fired.

MozReview-Commit-ID: JlJQVMNn6wV

--HG--
extra : amend_source : f0a37030b717390a7ae8b87ef3aef68cc747c14d
2016-04-25 17:28:42 -04:00
Matthew Noorenberghe
8c8f2a8308 Bug 1267378 - Follow-up to fix devtools space-before-function-paren errors
MozReview-Commit-ID: DCCsgYbGxcr

--HG--
extra : rebase_source : 1aff679a2ae3759b695585cc6a2e69b830f76e54
2016-04-28 01:19:08 -07:00
Matthew Noorenberghe
19aae527d1 Bug 1258055 - Follow-up to delete now unused mlogosm.gif
MozReview-Commit-ID: 5USInxAi1Pl

--HG--
extra : rebase_source : 6d2419b5495c16621c60dac5501598de72502273
2016-04-28 01:09:36 -07:00
Iaroslav Sheptykin
c1c4ebbd1d Bug 1145188: Shifting TelemetrySession init control to TelemetryController (test). r=Dexter 2016-04-26 06:28:00 +02:00
Iaroslav Sheptykin
af97a1b2ef Bug 1145188: Shifting TelemetrySession init control to TelemetryController (core). r=Dexter 2016-04-17 11:57:00 +02:00
dimi
3c20fd8553 Bug 1033450 - consolidate safebrowsing prefs in all.js. r=francois
MozReview-Commit-ID: CYMihDGtG79

--HG--
extra : rebase_source : 949b59abc5ad0c2c4597dd38ac1644525296ad7e
2016-04-28 00:44:55 -07:00
Matthew Noorenberghe
62f0a012c2 No bug - Move test_privbrowsing_perwindowpb.html's support files to the test's directory
MozReview-Commit-ID: c9vBMpO9fZ

--HG--
rename : toolkit/components/passwordmgr/test/privbrowsing_perwindowpb_iframe.html => toolkit/components/passwordmgr/test/chrome/privbrowsing_perwindowpb_iframe.html
rename : toolkit/components/passwordmgr/test/subtst_privbrowsing_1.html => toolkit/components/passwordmgr/test/chrome/subtst_privbrowsing_1.html
rename : toolkit/components/passwordmgr/test/subtst_privbrowsing_2.html => toolkit/components/passwordmgr/test/chrome/subtst_privbrowsing_2.html
rename : toolkit/components/passwordmgr/test/subtst_privbrowsing_3.html => toolkit/components/passwordmgr/test/chrome/subtst_privbrowsing_3.html
rename : toolkit/components/passwordmgr/test/subtst_privbrowsing_4.html => toolkit/components/passwordmgr/test/chrome/subtst_privbrowsing_4.html
extra : rebase_source : fa2e485c7edc7fd7cc336c46ca86e36446b184c4
2016-04-28 00:42:09 -07:00
Carsten "Tomcat" Book
bba206d411 Backed out changeset 797e8190073f (bug 1265876) for memory leaks in browser_markup_mutation_02.js 2016-04-28 08:13:42 +02:00
Kit Cambridge
e84bbc704a Bug 1239042 - Show sync status for a minimum of 1.6s. r=markh
MozReview-Commit-ID: FKpSe9r6Td9

--HG--
extra : rebase_source : 8808c86764e75f047a22901a37ecf4c5a1ddf3bf
2016-04-22 07:19:16 -07:00
Edouard Oger
dfdc90632d Bug 1267760 - Send push public key and auth secret when registering/updating a device. r=kitcambridge
MozReview-Commit-ID: KGd2jl6rHiD
2016-04-27 17:00:17 -07:00
Tom Tromey
f16c510764 Bug 1267378 - fix eslint errors in css-color.js; r=miker
MozReview-Commit-ID: D1MM5Yk9IKv

--HG--
extra : amend_source : 9303a23cc67d4499567557140dacb9b74fa6da5d
2016-04-25 13:56:04 -06:00
Tom Tromey
ed07ccffa3 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-04-21 11:20:14 -06:00
Tom Tromey
f13377234d Bug 1265772 - don't use Services.console or Console.jsm in devtools; r=bgrins
MozReview-Commit-ID: Ax4EwhRVE0R

--HG--
extra : amend_source : 11297b555f1175a0be506e3ab7e72592cd3c2cd2
2016-04-19 14:05:35 -06:00
Michael Comella
4aa787d3a3 Bug 1267468 - Fix bustage: replace last invocation of getFileContents. r=me
MozReview-Commit-ID: 6rjVy7Zx1Ia

--HG--
extra : rebase_source : ab68e5e9b6f12d8cecab0d6602af0a3e4096c058
2016-04-27 16:06:36 -07:00
Wes Kocher
e8b6c11218 Backed out 3 changesets (bug 1265525) for android rc1 failures in testBrowserProvider
Backed out changeset 64ff3f5121d7 (bug 1265525)
Backed out changeset d34dc8387cd4 (bug 1265525)
Backed out changeset 0f659fc840cd (bug 1265525)

MozReview-Commit-ID: EeMHCLV0BMG

--HG--
extra : rebase_source : 97ba98c83f5ac12e9b7ea07666c688078b9922d9
2016-04-27 15:49:20 -07:00
Michael Comella
223d958663 Bug 1267468 - Replace FileUtils.getFileContents with read*FromFile. r=sebastian
Reasons for replacement:
 * The old method was untested
 * The Scanner class is supposedly slower than using Streams directly (which
the new methods do)
 * If possible, it's generally better not to duplicate solutions - using the
Scanner works around the infrastructure this changeset series built (i.e. using
Streams).

In the edge cases, getFileContents:
 * throws NoSuchElementException for empty files. The new behavior is to return
the empty string. Since getFileContents was always wrapped by `new JSONObject`
or similar, and we throw when the file is empty, the behavior should stay the
same.
 * throws NoSuchFileException for missing files. This is the same as the
new behavior.

MozReview-Commit-ID: 6ESPss29emU

--HG--
extra : rebase_source : 24af07bddd585b857ebd8eb4eff4c7ac4898ba37
2016-04-26 15:36:04 -07:00
Michael Comella
5d71ac6741 Bug 1267468 - Add additional details & tests for writeStringToFile. r=sebastian
MozReview-Commit-ID: 5yJE4VMyBwV

--HG--
extra : rebase_source : b14eb8e310a68fcd7b6e7dd7c0a918d1c21caebe
2016-04-26 15:46:56 -07:00
Michael Comella
a265b2f532 Bug 1267468 - Move readJSONObjectFromFile -> FileUtils. r=sebastian
MozReview-Commit-ID: GVlOS3UJ1HS

--HG--
extra : rebase_source : 76375110ca9e81cd633dc3a2b58d1c28cc1a222c
2016-04-26 15:16:07 -07:00
Michael Comella
e003c5926e Bug 1267468 - Add readStringFromFile and test. r=sebastian
This method duplicates an existing method (readFileContents) which will later
be removed.

MozReview-Commit-ID: 2aVf74KvYyP

--HG--
extra : rebase_source : 3aa814f3e227fba4c5bab9434894aef6178da333
2016-04-26 15:14:52 -07:00
Michael Comella
c25e0d04f1 Bug 1267468 - Add readStringFromInputStream... and test. r=sebastian
Javadoc in this commit references a method that is not yet added.

MozReview-Commit-ID: Hc0MSLYTQgD

--HG--
extra : rebase_source : bb30eb579fd8450a0b4698d38333b468f3b6e372
2016-04-26 15:01:10 -07:00
Michael Comella
0ab4aa27ba Bug 1267468 - Move test writeJSONObjectToFile -> FileUtils. r=sebastian
MozReview-Commit-ID: GRVzaHYbEhI

--HG--
extra : rebase_source : b3b50ced4fa0b4fd593da2a9187812647d8c55ba
2016-04-25 17:25:48 -07:00
Michael Comella
ff379f30b0 Bug 1267468 - Add FileUtils.writeString to Stream & file with tests. r=sebastian
I would have separated these methods but version control fail.

MozReview-Commit-ID: 7og2iBKqHiH

--HG--
extra : rebase_source : 62db6247aedfc3683249f093a8d3688e6408ab17
2016-04-26 11:53:41 -07:00
Wes Kocher
922724920a Merge m-c to fx-team, a=merge
MozReview-Commit-ID: 6anAKItZV1O
2016-04-27 14:30:20 -07:00
Wes Kocher
20598f44f6 Backed out changesets baa6c68ec413,5b8583070c9e,2942bb31152c,dd2ad6863f53,c68772362633,c8db6695b991 (bug 1231981) a=backout
MozReview-Commit-ID: EoGyz071RoN

--HG--
extra : amend_source : 69d6593ae0a946ed6366513a2e186b43c7435440
extra : histedit_source : cdce5a0698d6e7996ae731cff56263abc202ae65%2Ca62e94bdb37fc3e9266884f283d732e61e0f4715
2016-04-27 10:24:37 -07:00
Wes Kocher
55d7bfae3f Backed out changesets 8ed054e5853e,d56adef9c8e0,408df9f84697,7092e498ac3a,29dce05596c6,ae1dc75009e7 (bug 1231975) for breaking local mochitests a=backout
MozReview-Commit-ID: 17mJDyZMVju

--HG--
extra : histedit_source : cf965b94d4b36cc1b4ce0a89272f9c355ae1b82e%2C72cefdebce52a0e6653a87dd0ef0a1316fe0ec18
2016-04-27 10:20:42 -07:00
Carsten "Tomcat" Book
05d6ba16fa merge mozilla-inbound to mozilla-central a=merge 2016-04-27 11:57:21 +02:00
Julian Descottes
82e45d4470 Bug 1178462 - Cancel inplace editor autocomplete on window blur;r=gl
MozReview-Commit-ID: BI9LHtUKta

--HG--
extra : rebase_source : 8321f9df764f5e2faddcaaae9597e0ac35e99020
2016-04-27 09:55:18 +02:00
Julian Descottes
e14d5fdb1f Bug 1217769 - aboutdebugging: default to addons tab without navigating if hash is empty;r=janx
MozReview-Commit-ID: 8hlFDqrpKit

--HG--
extra : rebase_source : 2a5e39cc7bfeb458c44cc225f833ca65fa03aa80
2016-04-27 14:07:19 +02:00
Michael Kaply
68ef955d48 Bug 1264491 - Backout accidental checkins that had nothing to do with bug; DONTBUILD 2016-04-27 15:05:03 -05:00
Michael Kaply
8d35d79519 Bug 1264491 - Update core ping docs for distributionId; r=gfritzsche DONTBUILD
--HG--
extra : amend_source : 34cafd99e0cf78638399abf8b7bacbbe3f5c1460
2016-04-27 14:59:46 -05:00
Grigory Kruglov
6624cffcb3 Bug 1265525 - Part 2: Frecency calculation and top sites query updates r=sebastian
MozReview-Commit-ID: 7tqr4IT9635

--HG--
extra : rebase_source : c7a3c17b9520317bfe9dbb7ee91841844fd89000
2016-04-27 10:43:21 -07:00
Daniel Veditz
19be5bed6c Bug 1267318 ignore cert expiration for mozilla-signed packages, r=dkeeler
MozReview-Commit-ID: Lw6jGmK8gkS
2016-04-26 11:54:08 -07:00
Matthew Noorenberghe
13d19fbd72 Bug 1266825 - Convert test_notifications_popup.html to b-c to work in e10s. r=dolske
MozReview-Commit-ID: 5qExqBsfNfw

--HG--
rename : toolkit/components/passwordmgr/test/test_notifications_popup.html => toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_window_open.js
extra : rebase_source : dcb3bd8918fd077f56c017602abe1d37fab0b4a7
2016-04-26 15:52:13 -07:00
Mark Banner
7a6b21fe1b Bug 1267835 - Land version 1.3.1 of the Loop system add-on in mozilla-central, rs=Standard8 for already reviewed code. 2016-04-26 22:40:05 +01:00
Wes Kocher
77752786a4 Merge m-c to fx-team, a=merge
MozReview-Commit-ID: 3xgSmlsnSpk
2016-04-26 14:28:17 -07:00
Wes Kocher
f20e8d0047 Merge inbound to central, a=merge
MozReview-Commit-ID: JIAGB82GtAS
2016-04-26 14:19:01 -07:00
Drew Willcoxon
bf4e9d75e2 Bug 1266375 - Don't remove max-width on awesomebar popup items when the popup is open. r=mak
MozReview-Commit-ID: GttGOvRU6vf
2016-04-26 12:46:42 -07:00
Alexandre Poirot
c0ae627a40 Bug 1263935 - Use AddonPathService.mapURIToAddonId instead of AddonManager.mapURIToAddonID. r=ejpbruel 2016-04-26 07:11:15 -07:00
Alexandre Poirot
912faf0bc9 Bug 1263935 - Forward AddonManager.mapURIToAddonId to AddonPathService.mapURIToAddonId. r=mossop 2016-04-26 07:11:15 -07:00
Alexandre Poirot
30d3ba40c6 Bug 1263935 - Expose native version of mapURIToAddonId via amIAddonPathService. r=mossop 2016-04-26 07:11:15 -07:00
Jan Odvarko
be6d109116 Bug 1267274 - Firebug theme: fix position of the Inspector button; r=helenvholmes 2016-04-26 08:52:32 +02:00
Milan Sreckovic
024f874c4b Bug 1262187: Allow D3D9 if D3D11 failed, behind the pref, but on by default. r=bas
MozReview-Commit-ID: JnO4nIN4gXv

--HG--
extra : rebase_source : 5bfa53ef47e59ac8871e500f97b9f851910b5e5b
2016-04-25 13:53:52 -04:00
Jan Odvarko
805383743a Bug 1266733 - Firebug theme: use white color for selected elements in the Inspector panel; r=bgrins 2016-04-25 17:27:17 +02:00
Timothy Guan-tin Chien
e3df65a0b0 Bug 1266372 - De-dup code to ReaderMode.leaveReaderMode, r=gijs
Additionally, implements ReaderMode.enterReaderMode.

MozReview-Commit-ID: 8MPvFhX4ws7

--HG--
extra : transplant_source : %91%0D%CEZkOO%90%1C3%A24%3E%9Bq%D5%BB%13F%0A
2016-04-26 12:52:50 +08:00
Jan Odvarko
913472a7fa Bug 1266310 - Firebug theme, fix row height in the Memory panel; r=fitzgen 2016-04-25 16:59:33 +02:00