Commit Graph
2909 Commits
Author SHA1 Message Date
Michael Comella c3710624bc Bug 1238785 - Add FileCleanupController and tests. r=ahunt
This controller is under-featured (e.g. it's not scheduling cleanups for future
dates and it doesn't cache files it already deleted) in favor of simplicity.

MozReview-Commit-ID: KJqKV0OH2ID
2016-04-14 12:54:24 -07:00
Michael Comella 2e3ed62110 Bug 1238785 - Add FileCleanupService. r=ahunt
This is intentionally kept minimal to ensure simplicity.

MozReview-Commit-ID: IJRxrTbWN2P
2016-04-12 17:10:35 -07:00
Michael Comella 274959e2ae Bug 1247489 - Move Telemetry*Ping* to telemetry/pings pkg. r=grisha
This should help make the Builders more discoverable when looking at the
TelemetryPing class.

MozReview-Commit-ID: K1OiSuKW5fO
2016-04-14 11:50:57 -07:00
Michael Comella aef8c72557 Bug 1247489 - Replace TelemetryPingGenerator with TelemetryPingBuilder & friends. r=grisha
The Builder pattern has the following benefits:
  * Encapsulate identifying optional arguments
  * Encapsulate parameter validation
  * More fluent parameter insertion (e.g. instead as unnamed arguments to a
function)
  * My implementation makes it fairly straight-forward to construct new
telemetry pings.

MozReview-Commit-ID: EpcW3N57HJj
2016-04-11 17:45:29 -07:00
Carsten "Tomcat" Book f2370c758b merge mozilla-inbound to mozilla-central a=merge 2016-04-14 11:38:11 +02:00
Chenxia Liu 4be38d067d Bug 1264262 - crash in java.lang.IllegalArgumentException: Missing default panels at org.mozilla.gecko.home.HomeConfigPrefsBackend.combineHistoryAndSyncPanels(HomeConfigPrefsBackend.java). r=mcomella
MozReview-Commit-ID: F9Sg6l6yMlw
2016-04-13 18:38:02 -07:00
Andrzej Hunt 88eb58e683 Bug 1264134 - Don't assert SavedReaderViewHelper running off main thread r=mcomella
It turns out that with sync enabled, we do the first load of the database on the UI thread.
The SavedReaderViewHelper (which is initialised during DB load) assumes we're run off the
main thread, we need to disable that assertion until we can ensure that DB loading is done
off the main thread.

MozReview-Commit-ID: AYQewTVjEbA
2016-04-12 18:55:25 -07:00
Michael Comella a7a6fcfd08 Bug 1260758 - Bump core ping version for distribution id. r=trivial
MozReview-Commit-ID: 2MfuzuTTimI
2016-04-13 16:23:55 -07:00
Michael Comella 5294ad1de8 Bug 1255657 - Write client ID file before Gecko starts to prevent race. r=rnewman
As best as I can tell, this code runs before Gecko is initialized. via
bug 1255657 comment 8:

To confirm this, GeckoProfile is created before the GeckoThread is
finished launching but it seems almost coincidental:
 GeckoApp.onCreate
  GeckoThread.launch
   GeckoThread.start
...
 GeckoThread.run
  GeckoThread.getGeckoArgs (notably before GeckoLader.nativeRun)
   GeckoThread.addCustomProfileArg
    (if GAP.getGeckoInterface != null, which is set earlier in GeckoApp.onCreate)
     EITHER
     GeckoProfile.getDir() (if in guest mode)
      GeckoProfile.forceCreate
     GeckoProfile.forceCreate (if not in guest mode)

forceCreate opens the times.json file.

That being said, if this code path changes, forceCreate is also called
when the GeckoView is initialized (which occurs after the GeckoThread.launch
call, but is likely to happen before Gecko finishes launching).
---

If we wanted GeckoProfile initialization timing to be seem less coincidental,
we should consider initializing the profile non-lazily: bug 1262625.

MozReview-Commit-ID: LGluC021CTg
2016-04-06 15:07:01 -07:00
Michael Comella 4a74891b0f Bug 1260758 - Add distribution field to Fennec core ping - forgot to add file; r=mfinkle,mkaply 2016-04-13 15:31:36 -05:00
Michael Comella 622afc932c Bug 1260758 - Add distribution field to Fennec core ping; r=mfinkle,mkaply 2016-04-13 15:17:13 -05:00
Michael Comella 7bad35ad41 Bug 1258789 - Remove allowEmptyLoops I added previously to simplify things. r=grisha
MozReview-Commit-ID: 7iL8VjkMSTh
2016-04-13 11:22:41 -07:00
Michael Comella 8e357ee7f0 Bug 1258789 - Remove WhitespaceAround tokens filter and fix lcurly issues. r=grisha
Some issues remain.

MozReview-Commit-ID: 3vWQ3z5mnba
2016-04-13 11:17:55 -07:00
Michael Comella acc0113162 Bug 1258789 - Add div* token for WhitespaceAround. r=grisha
Fix some cast issues while I was at it.

MozReview-Commit-ID: 53ANWpnIGwk
2016-04-13 11:15:00 -07:00
Michael Comella 5854a8e958 Bug 1258789 - Fix remaining rcurly issues by eliminating double curly bracket. r=grisha
It's an anti-pattern:
  https://blog.jooq.org/2014/12/08/dont-be-clever-the-double-curly-braces-anti-pattern/

Mobile-relevant summary:
  * It creates new types, bloating our APK
  * It can cause memory leaks by keeping a reference to the containing class

MozReview-Commit-ID: 4HQHgenOq92
2016-04-13 11:03:40 -07:00
Michael Comella 3f67ad622b Bug 1258789 - Add rcurly and fix {} issues. r=grisha
MozReview-Commit-ID: m2dF4mPC1u
2016-04-13 10:51:26 -07:00
Michael Comella a046b02bac Bug 1258789 - Add plus operator to WhitespaceAround and fix. r=grisha
MozReview-Commit-ID: 419NkkMHWCG
2016-04-12 18:42:40 -07:00
Michael Comella b0b8adb484 Bug 1258789 - Add star to WhitespaceAround and fix. r=grisha
MozReview-Commit-ID: 3FY8m1qPj8V
2016-04-12 18:36:28 -07:00
Michael Comella 4f835cbf66 Bug 1258789 - Add shift operators to WhitespaceAround & fix. r=grisha
MozReview-Commit-ID: 9sCtvvUYixh
2016-04-12 18:29:58 -07:00
Michael Comella 3dca5b57f7 Bug 1258789 - Add a few more to WhitespaceAround and fix. r=grisha
MozReview-Commit-ID: AkJEXhlp3Rf
2016-04-12 18:27:20 -07:00
Michael Comella bc0bac7670 Bug 1258789 - Add while to WhitespaceAround. r=grisha
MozReview-Commit-ID: HhbBCjojNiC
2016-04-12 18:21:45 -07:00
Michael Comella b7fa7351c7 Bug 1258789 - Add synchronized & non-failing try to WhitespaceAround. r=grisha
MozReview-Commit-ID: EBnxF8j2eeY
2016-04-12 18:20:51 -07:00
Michael Comella 3a2272e8a0 Bug 1258789 - Add switch for whitespaceAround. r=grisha
MozReview-Commit-ID: 167JoSl5go5
2016-04-12 18:19:14 -07:00
Michael Comella 6d0aab4c68 Bug 1258789 - Add if & return for WhitespaceAround. r=grisha
MozReview-Commit-ID: HcWrFHy2CeP
2016-04-12 18:18:02 -07:00
Michael Comella cad83a23ef Bug 1258789 - Add literal catch & a few others that don't break for WhitespaceAround. r=grisha
MozReview-Commit-ID: 1En0xuxT4md
2016-04-12 18:16:16 -07:00
Michael Comella 421913d097 Bug 1258789 - Add binary logic operators for WhitespaceAround. r=grisha
MozReview-Commit-ID: 12BUCUmassJ
2016-04-12 18:10:55 -07:00
Michael Comella f74f532420 Bug 1258789 - Add WhitespaceAround for ASSIGN token. r=grisha
MozReview-Commit-ID: 6IOIatuHuYW
2016-04-12 18:07:33 -07:00
William Chen eb5977ffa0 Bug 1260499 - Handle incoming messages before push service is initialized. r=nalexander,jchen 2016-04-13 16:55:25 -07:00
William Chen d8b9703fb8 Backed out changeset 6ccfb75c8926 (bug 1260499) for wrong patch 2016-04-13 15:37:48 -07:00
Wes Kocher 659f7c45bf Merge m-c to inbound, a=merge
MozReview-Commit-ID: ET0qKXDqQXD
2016-04-13 14:45:41 -07:00
William Chen 3997f81a84 Bug 1260499 - Handle incoming messages before push service is initialized. r=nalexander,jchen 2016-04-13 14:30:33 -07:00
Jorick Caberio b0b34cd5a5 Bug 1261039 - Remove Honeycomb code guarded by AppConstants.Versions.preHCMR1 / preHCMR2. r=sebastian
MozReview-Commit-ID: LdULUXl2kba
2016-04-08 16:52:57 +08:00
Mouaad Aallam 43cde760f0 Bug 1261044 - Move AnimatorProxy functionality into ViewHelper. r=sebastian
MozReview-Commit-ID: IjVVUfJheOt
2016-04-13 15:50:35 +02:00
bzrd_Sdn 65cf05151a Bug 1256922 - Remove unused HardwareUtils.isLowMemoryPlatform(). r=sebastian
MozReview-Commit-ID: CDkh8AekOVe
2016-04-13 14:49:24 +02:00
Michael Kaply c3762d0f68 Bug 1264050 - Use distribution/defaults directory even if is no SIM card data; r=sebastian 2016-04-13 08:47:07 -05:00
Jan Henning b7ca055f66 Bug 1229967 - Handle onKeyDown() for the menu key in GeckoMenu. r=sebastian
This restores the functionality to close the menu by pressing the hardware menu key.

MozReview-Commit-ID: EKCeALPvFoB
2016-04-11 12:42:21 +02:00
Andrzej Hunt 8b6de9cc6a Bug 1257636 - Show "bookmarks panel is hidden" snackbar if necessary in migrated reading list panel r=liuche
MozReview-Commit-ID: BVbILiWMyfT
2016-04-11 12:48:19 -07:00
Sebastian Kaspari 0e6dc11341 Bug 1258988 - Content notifications: Add support for Tumblr. r=mcomella
MozReview-Commit-ID: JT2MtkvQtKx
2016-04-12 16:20:32 +02:00
Sebastian Kaspari 77681f70d5 Bug 1232706 - Promote "Add to home screen" for frequently visited websites. r=margaret
MozReview-Commit-ID: 2OW7GKxuQmr
2016-04-06 09:41:34 +02:00
Michael Comella d56e710ad4 Bug 1263470 - Set edit/display layouts to invisible to avoid animation jank. r=sebastian
They were previously being set to GONE, causing a measure pass when the
animation started.

MozReview-Commit-ID: FKjB2vJmWkd
2016-04-10 13:50:06 -07:00
Sebastian Kaspari 180c894b7f Bug 1261830 - Content notifications: Stamp telemetry events with experiment session. r=margaret
MozReview-Commit-ID: 8Nsdfbe6x74
2016-04-11 11:25:39 +02:00
Michael Comella 68efbd501a Bug 1263758 - Correct NPE when using a custom search engine as the default r=liuche
MozReview-Commit-ID: hpGUIu9yP2
2016-04-11 16:10:48 -07:00
Chenxia Liu 59a9b50ce7 Bug 1260321 - Follow-up: Migrate users with customized panels to combined history panel. r=sebastian
MozReview-Commit-ID: 6SQ7nuZhCe0
2016-04-04 21:47:19 -07:00
Andrzej Hunt 0396795d7c Bug 1261907 - Reintroduce (necessary) table-created checks in BrowserDatabaseHelper r=nalexander
Removing these checks causes crashes when trying to upgrade a <= 17 db to >= 23:
(A) upgradeDatabaseFrom17to18 calls createReadingListTable, and we create the table using the new (>=23 schema).
    This schema has no "read" column.
(B) upgradeDatabaseFrom22to23 migrates the same table. As part of the migration it tries to select the "read"
    column, and we crash because that doesn't exist. This was prevented by an early return if didCreateReadingListTable
    was set.

It looks like removing the didCreateTablsTable checks is OK because the migration only adds a foreign-key constraint,
and doesn't depend on any columns that didn't exist in the initial version of the migration. However it seems wasteful
to run the migration on a table that is already in the expected state. Moreover not having table-created checks is
not safe in most cases, and having these checks should be the default pattern - especially in case any future migrations
affecting the same table are added.

MozReview-Commit-ID: 4j1PlQc6LLN
2016-04-08 15:29:44 -07:00
Michael Comella d137887072 Bug 1246792 - Use existing constant for times.json. r=ahunt
MozReview-Commit-ID: ACtIOPiOSfs
2016-04-06 13:26:28 -07:00
Andrzej Hunt 88936f9efe Bug 1205124 - use AppCompatActivity for GeckoPreferences r=sebastian
This patch introduces consistent theming for all supported devices (Android 4+).
Previously we had Jellybean theming on Android 4, and Lollipop theming on 5+.

Note that dialogs will be based on the native device dialogs (i.e. Jellybean on 4,
Lollipop on 5+). This is because we use native Fragments (and not support library
Fragments), which inflate their own (native) Dialogs. Introducing consistent
dialogs would involve replacing the use of native Fragments (and native
PreferenceFragments), and replacing our self-inflated dialogs.

(We have a few self-built dialogs - these could easily be switched to the AppCompat
 AlertDialog, but then we'd have a mix of new and old dialogs on Android 4 devices,
 since PreferenceFragment constructed dialogs would still be the native Android
 dialogs - overall this would be a worse experience.)

It is also usable on 2.3. There, we retain GB theming, however the checkboxes
are replaced with orange checkboxes (as on 4+).

MozReview-Commit-ID: AXbyAfpvfKi
2016-03-28 14:32:07 -07:00
Chenxia Liu f99499a72a Bug 1262600 - crash in java.lang.IndexOutOfBoundsException: Invalid index -1, size is 13 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java). r=sebastian
MozReview-Commit-ID: 4H8fqxaR9mO
2016-04-07 15:14:54 -07:00
Michael Comella 7b478ab004 Bug 1239376 - Fix StrictMode thread read access in SysInfo.getMemSize. r=mfinkle
This caused a StrictMode violation on startup.

MozReview-Commit-ID: Ip2ywUoexOh
2016-01-27 12:06:33 -08:00
Ryan VanderMeulen 6ed49cb57a Merge m-c to fx-team. a=merge 2016-04-09 10:09:49 -04:00
Wes Kocher 8a80b14f72 Merge fx-team to central, a=merge
MozReview-Commit-ID: yuSA0kqs0F
2016-04-08 15:26:49 -07:00