Commit Graph
1025 Commits
Author SHA1 Message Date
Michael Comella 12245a2234 Bug 1405404: Add 'de' to list of pocket whitelisted locales. r=liuche
This is used in multi-locale builds, e.g. [1] where all German is "de" but in
[2], we have a separate l10n repo for en-GB.

[1]: https://hg.mozilla.org/releases/l10n/mozilla-beta/de
[2]: https://hg.mozilla.org/releases/l10n/mozilla-beta/en-GB

MozReview-Commit-ID: CXw9aFH9psz
2017-10-03 10:29:49 -07:00
Michael Comella ae4d889f67 Bug 1404460: Add test for pocket locale enabling. r=liuche
MozReview-Commit-ID: LHdQuICvVjE
2017-10-02 18:36:41 -07:00
Sebastian Hengst 2b5eefaa89 merge mozilla-central to autoland. r=merge a=merge 2017-09-29 11:49:46 +02:00
Jim Chen 504ef9a3da Bug 1384829 - 4. Add test case to testInputConnection; r=esawin
Add a test case to testInputConnection that makes sure GeckoEditable's
Editable interface still behaves correctly even after disconnecting from
Gecko due to a blur.

MozReview-Commit-ID: 7Z6Kpv2tpRy
2017-09-28 00:14:19 -04:00
Jim Chen bb603fedf6 Bug 1258106 - Extend testEventDispatcher timeout; r=me
Extend timeout for testEventDispatcher to 40 seconds and fix a bug where
the wrong mode is used for event callback tests. r=me for trivial
test-only fix.

MozReview-Commit-ID: JiyW8lFW8kg
2017-09-28 18:26:06 -04:00
Grigory Kruglov 2337064d3e Bug 1403022 - Abort session on BatchingUploader failures r=rnewman
The main goal of these changes is to ensure we're not doing any unnecessary work
in the unahppy cases of BatchingUploader. We might fail in three general ways:
- encounter a 412 error
- encounter another type of HTTP error
- encounter a GUID in the "failed" array

Currently, in all of these cases, we de-facto abort the session, without performing
an actual abort. E.g. we won't commit a batch, we'll refuse to upload any still-flowing
records. This patch simplifies our unhappy-case behaviour: if something failed, actually
abort the session (triggering a shutdownNow of the work queues), declare store as failed, etc.

It's important to note that our "did the synchronization fail?" login in the SynchronizerSession
depends on the store failure counts, and so this patch maintains the "record failed to store"
delegate chain. However, these counts are largely meaningless. What does it mean to fail to store
50 records, if we abort on the 51st, and prevent the other 100 from flowing (and from being counted
as failed?).

This patch also fixes an omission in the verstion tracking logic:
- prior, if we encountered a record in the "failed" array, we'd continue on with the flow, won't upload
anything, mark the synchronization as failed, but we'd also call into 'onStoreCompleted' which will
trigger an update of syncVersion for outflowing records
- with this patch, we won't call into onStoreCompleted in the case above, and so won't update syncVersion
in case of such failures
- this is the correct behaviour for batching uploads (now enabled on all but one server), but possibly
non-optimal behaviour if batching isn't enabled. However, this behaviour should be safe from a data consistency
point of view regardless of the batching mode.

MozReview-Commit-ID: LIYCPaRX8JA
2017-09-26 17:36:22 -04:00
Grigory Kruglov 79a2105f9d Bug 1373254 - Ensure onStoreFailed won't be called twice r=rnewman
MozReview-Commit-ID: 5IE7t5qs6VU
2017-09-25 20:01:14 -04:00
Jim Chen 5325a13b1b Bug 1396951 - 5. Remove getLayerView usage from Robocop code; r=gbrown
Find the Fennec LayerView through `Solo.getView()` and the View id
instead of going through `GeckoAppShell.getLayerView()`.

MozReview-Commit-ID: FVcPM0fYorf
2017-09-22 14:35:23 -04:00
Sebastian Hengst da260df924 Backed out changeset b5a88815b3a6 (bug 1396951)
MozReview-Commit-ID: H7q7JLdOCQS
2017-09-22 11:48:25 +02:00
Jim Chen 8b2d616708 Bug 1396951 - 5. Remove getLayerView usage from Robocop code; r=gbrown
Find the Fennec LayerView through `Solo.getView()` and the View id
instead of going through `GeckoAppShell.getLayerView()`.

MozReview-Commit-ID: FVcPM0fYorf
2017-09-21 17:36:07 -04:00
Grigory Kruglov 913d97c275 Bug 1351673 - Use a single-threaded work queue to process batching downloader work items r=rnewman
Before we'd recurse instead while fetching multiple batches, overflowing the stack on older devices.

MozReview-Commit-ID: 37BG6zGBdn0
2017-09-21 16:53:03 -04:00
Edouard Oger 987a578fcd Bug 1359279 - Renew GCM token/Push registration/FxA Registration on push registration expired. r=Grisha
MozReview-Commit-ID: HFDjBBt9CBA
2017-08-23 15:41:31 -04:00
Sebastian Hengst 6c306c6abb Backed out changeset 53e599ac1ed7 (bug 1359279) for android linting failure. r=backout 2017-09-21 00:07:06 +02:00
Edouard Oger a70b3da701 Bug 1359279 - Renew GCM token/Push registration/FxA Registration on push registration expired. r=Grisha
MozReview-Commit-ID: HFDjBBt9CBA
2017-08-23 15:41:31 -04:00
Jan Henning 6823e7f663 Bug 1391421 - Part 9 - Add a basic Robocop test for IDN domain support. r=gbrown
MozReview-Commit-ID: HAT9Imh9YVf
2017-09-15 23:29:01 +02:00
Jim Chen 0b6141761d Bug 1400886 - Change BrowserCLH subscripts into modules; r=snorp
Change the subscripts (e.g. FormAssistant.js) that we load in BrowserCLH
into proper .jsm modules. This avoids the `defineLazyScriptGetter`
incompatibility mentioned in the bug, and when we turn on shared JSM
global, any memory advantage we get from using subscripts should not
matter anymore.

MozReview-Commit-ID: krSwANdtb5
2017-09-19 14:57:32 -04:00
Andrew Halberstadt 454052d2b2 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F
2017-08-22 16:56:02 -04:00
Jing-wei Wu 405b408f20 Bug 1383713 - [robocop] Find toolbar first and use it to find menu button. r=JanH,nechen
MozReview-Commit-ID: 3b6HijVb9nB
2017-09-15 17:50:58 +08:00
Jing-wei Wu 24c690139a Bug 1400101 - [robocop] Find toolbar first and use it to find menu button. r=JanH,nechen
Sometimes Robocop is confused when are multiple `R.id.menu` UI components shown on screen,
one is the menu button on toolbar and otehrs are context menus on Activity Stream.

To access the menu on toolbar, a simple fix is access toolbar first and use it to find its child.

MozReview-Commit-ID: Jw4sTLeR3li
2017-09-15 15:58:10 +08:00
Jim Chen fc2ba05a61 Bug 1367079 - 6. Fix testAccessibleCarets; r=me
Fix testAccessibleCarets and enable it for non-Nightly builds. r=me for
test changes.

MozReview-Commit-ID: EjNwzb5bETy
2017-09-14 17:50:58 -04:00
Jim Chen 41024a8d34 Bug 1367077 - 2. Move PromptService startup to BrowserCLH; r=snorp
Use the BrowserCLH for PromptService startup, to consolidate startup
handling code and also to delay loading PromptService.

MozReview-Commit-ID: 25UgVH7wrrs
2017-09-14 17:50:54 -04:00
Michael Comella a84d1e8014 Bug 1388396 - bustage: Fix testBitmapNotScaledMoreThanTwoTimesTheSize. r=mcomella
MozReview-Commit-ID: BZ6dt5FE7FD
2017-09-13 10:35:40 -07:00
Michael Comella 1d8b37d839 Bug 1388396 - review: Add TestMinimumSizeProcessor. r=mcomella
MozReview-Commit-ID: ADaJL88YZLg
2017-09-12 11:33:33 -07:00
Michael Comella b1774c2156 Bug 1398368: Drop malformed Pocket Top Stories. r=liuche
I tested this through the unit tests I added.

In theory, we could also validate URLs to make sure they're valid but users
should see 404s if they're not valid so this seems like unnecessary code.

MozReview-Commit-ID: 3XqsMawLabj
2017-09-12 16:36:21 -07:00
Sebastian Hengst 7f90a07274 Backed out changeset 3300c15011d3 (bug 1388396) 2017-09-13 09:50:18 +02:00
Grigory Kruglov f97dbbe992 Bug 1368147 - Migrate sync and reading list preferences to be keyed by account UID r=nalexander,sebastian
Due to how we access our prefs files (read: all over the place), the idea here is to perform the migration whenever
some component actually attempts to get the prefs. This guarantees that every consumer of prefs will receive the
correct version, and we won't accidentally duplicate our shared prefs either.

I would have preferred to just perform this migration at a set point.
We have a "services upgrade point" - FxAccountUpgradeReceiver - which receives a "package upgraded" intent and kicks
off some async work. Unfortunately, we can't guarantee that its tasks won't overlap with our uses of prefs
(either in the background or foreground code).

MozReview-Commit-ID: AWQ4IY7i32F
2017-09-12 16:00:37 -04:00
Michael Comella 2e4193a6ec Bug 1388396 - review: Add TestMinimumSizeProcessor. r=mcomella
MozReview-Commit-ID: ADaJL88YZLg
2017-09-12 11:33:33 -07:00
Jan Henning b02c2b9b5e Bug 1396324 followup. Add comment referencing this bug to the test. r=JanH
DONTBUILD

MozReview-Commit-ID: AFEnH5VSuM4
2017-09-09 22:54:55 +02:00
Jing-wei Wu 4be7a26af3 Bug 1396324 - [robocop] Configure bookmarks panel as default panel before loading URLs. r=JanH
We found sometimes Robocop operates wrong UI components when it deals with a complex layout.
Since default panel shows Activity Stream which contains complex UI components, we configure
bookmarks panel as default panel to keep the layout as simple as possible.

MozReview-Commit-ID: 12xhVOdlIRK
2017-09-08 16:02:37 +08:00
Sebastian Kaspari eda242c262 Bug 1396604 - Remove content notifications code. r=JanH,nechen
MozReview-Commit-ID: 5H45Vjnzt5Z
2017-09-04 16:51:07 +02:00
Edouard Oger 294c0c9a48 Bug 1373897 - Clear the succeeded records GUIDs list after each POST in non-batched mode. r=Grisha
MozReview-Commit-ID: 4VnYZc6gMkc
2017-08-30 16:46:41 -04:00
Jan Henning ada6421382 Bug 1396292 - Part 1 - Provide facilities to explicitly run permissions check callbacks on the background thread. r=sebastian
The permissions check itself is synchronous, but if we then decide to prompt the user to acquire the permission, we have to do so asynchronously and eventually continue execution on the UI thread as a result. Therefore we need to provide a counterpart of onUIThread() for operations that want their callback to stay off the UI thread in all situations.

MozReview-Commit-ID: AOCX1v69R1J
2017-09-02 21:22:30 +02:00
Jim Chen 20472700c1 Bug 1395168 - Add tests for key synthesis; r=esawin
Add tests for synthesizing keys, including test for dummy keys and test
for wrong metastate for synthesized non-English keys (i.e. bug 1387889).

MozReview-Commit-ID: SvddU2BHle
2017-08-31 13:42:51 -04:00
Grigory Kruglov 4cd120acbf Bug 1392505 - Let RepositorySessions track their own lastFetch and lastStore timestamps r=rnewman
This patch moves some of the state tracking (fetchEnd/storeEnd timestamps) away from RecordsChannel
and into individual RepositorySessions. The core assumption behind this move is that
sessions are better suited to know when they were fetched from during this sync, and when they
were stored to.
Sessions are growing in complexity - local ones are wrapped in a buffer, remote
now support batching downloads and uploads. In order to hide these details, it's easier to let
sessions keep track of the fetch/store timestamps in the way that fits their implementations.

Instead of flowing these timestamps upwards from sessions and into the SynchronizerSession,
the latter now simply queries sessions at the end of their flows.

The default behavior if a certain operation wasn't performed - that is, if fetchEnd or storeEnd
aren't set during sync for a session - is to return timestamp persisted during the previous sync.

This allows us to skip certain flows (no remote data available), and ensure that we're always
using correct timestamps of the same origin for any given session.

Prior behaviour was to "make up" a timestamp at the RecordsChannel level in cases of certain
errors or skipped flows, which resulted in comparing timestamps of different origins on the consequent sync.

MozReview-Commit-ID: 2wqeTo7mhz3
2017-08-30 19:48:21 -04:00
Grigory Kruglov d671241fa6 Bug 1392505 - Pre: remove unused delegate interface r=rnewman
MozReview-Commit-ID: K93rK1pILky
2017-08-25 21:44:37 -04:00
Geoff Brown a4040e7704 Bug 1390059 - Disable all robocop PixelTests, for intermittent failures; r=me,test-only 2017-08-30 10:11:26 -06:00
Chenxia Liu d2953dc415 Bug 1393700 - Add test for parsing JSON response. r=mcomella
MozReview-Commit-ID: KTy3Mltrfg9
2017-08-28 16:40:39 -07:00
Grigory Kruglov 95e66b0765 Bug 1388884 - Do not delete bookmark tombstones r=rnewman
As implemented, this means we might upload tombstones for never-synced
bookmarks. This _should_ be harmless.

MozReview-Commit-ID: DZx9yWDs1ie
2017-08-29 14:01:14 -04:00
Grigory Kruglov c738b61654 Bug 1394073 - Call onStoreFailed in case last payload fails in the uploader r=rnewman
MozReview-Commit-ID: 9cRuevmqbLD
2017-08-25 21:41:35 -04:00
Sebastian Kaspari a4ac7ad615 Bug 1324028 - IconGenerator: Do not add alpha channel to colors of generated icons. r=mcomella
MozReview-Commit-ID: H4qaSSOlMxT
2017-08-08 17:36:50 +02:00
Sebastian Kaspari 62ab1d486e Bug 1363520 - Run CleanupAction from DownloadContentService. r=Grisha
MozReview-Commit-ID: FvnIYStD25u
2017-05-10 09:59:31 -07:00
Chenxia Liu d2b6eab687 Bug 1380808 - Rename some "Item" classes to be more descriptive. r=mcomella
MozReview-Commit-ID: GlPbKuQPr8g
2017-08-16 18:38:50 -07:00
Wes Kocher 68ddef6d5c Backed out changeset e774700fe070 (bug 1392787) for build bustage a=backout CLOSED TREE
MozReview-Commit-ID: FRRUDa6rIuS
2017-08-24 13:58:52 -07:00
Andrew Halberstadt c8dc976a1e Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F
2017-08-22 16:56:02 -04:00
Grigory Kruglov 3fd2692974 Bug 1392716 - Clean up version map while de-duping records r=rnewman
This is meant as a stop-gap measure to stop the obviously bad thing from happening.

MozReview-Commit-ID: Gqvc32K04xD
2017-08-23 21:28:49 -04:00
Michael Comella e6ff361ae8 Bug 1390356 - bustage: Use proper context menu constructor in tests. r=mcomella
MozReview-Commit-ID: EUo6DylQR3X
2017-08-23 14:50:32 -07:00
Michael Comella 303c2718a4 Bug 1390372: Add URIUtils.isPathEmpty. r=liuche
MozReview-Commit-ID: G8rq6NL54mZ
2017-08-14 18:07:03 -07:00
Joel Maher 68402b53ea Bug 1390059 - Disable testFlingCorrectness. r=me a=testonly 2017-08-22 14:41:50 -04:00
Thom Chiovoloni a011426d1e Bug 1291822 - Part 2. Integrate bookmark validator into android sync flow r=Grisha
MozReview-Commit-ID: LMmHAcfhnD
2017-07-17 16:49:11 -04:00
Thom Chiovoloni 7007019a33 Bug 1291822 - Part 1. Implement bookmark client server validator r=Grisha
MozReview-Commit-ID: D84KLUSQbe6
2017-06-07 17:25:14 -04:00