Commit Graph

1043 Commits

Author SHA1 Message Date
Michael Comella
3a8d7956a7 Bug 1411749: Disable testActivityStreamPocketReferrer when Pocket is disabled by default. r=mcomella
MozReview-Commit-ID: BoFaNc4eBUA

--HG--
extra : rebase_source : 3927c1da8963cc9219237bc6b4e906c3d4085407
2017-10-25 13:32:59 -07:00
Sebastian Hengst
1ead0a96a9 Backed out changeset dab1c5badddb (bug 1407679) for failing server startup in mochitests on Android. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 3dc4cb2bbaf55f3f6329687ce64d4e862fc3800b
2017-10-24 21:18:26 +02:00
Valentin Gosu
9dd47ebf50 Bug 1407679 - Merge nsIIOService and nsIIOService2 r=nwgh
Removes deprecated nsIIOService2.newChannelFromURIWithProxyFlags

MozReview-Commit-ID: Gr3nA25kcre

--HG--
extra : rebase_source : 3407b5ed0f8f7067523abee28c137db3cac86b14
2017-10-20 16:41:07 +02:00
Michael Comella
cbecb8e70c Bug 1395370: BaseTest -> OldBaseTest. r=nechen
MozReview-Commit-ID: 5chsKoG2nxD

--HG--
rename : mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/BaseTest.java => mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/OldBaseTest.java
extra : rebase_source : cd7433fbc4f9806e8f709c119038c228987a4cf9
2017-10-23 09:22:42 -07:00
Michael Comella
b8ebe79f95 Bug 1395370: Add deprecation to BaseTest. r=nechen
MozReview-Commit-ID: J6Kl14vkNdX

--HG--
extra : rebase_source : 07e7905c2f23fe4851bae61d00732fdf95fb8c6a
2017-10-23 09:20:34 -07:00
bechen@mozilla.com
c09e4a8ee9 Bug 1183495 - part3: Remove mozSrcObject usage. r=jwwang
MozReview-Commit-ID: Gtpne3O0pBQ

--HG--
extra : rebase_source : 87544aa023e5ac079a8ae02de77e2aeab91e97cf
2017-10-20 11:23:41 +08:00
Thom Chiovoloni
b367ef8b16 Bug 1404044 - Prevent android sync from failing on overlarge timestamps in password sync r=Grisha
This was done by way of hacking our vendored version of org.simple.json.

MozReview-Commit-ID: GpTFpmeevVN

--HG--
extra : rebase_source : 2a29b53919a617e2ea89d776a53a43257959bc22
2017-10-20 15:46:05 -04:00
Nevin Chen
d658fd5d7b Bug 1331290 - Refactor the code about closing all opening tabs. r=JanH,rnewman
MozReview-Commit-ID: LxcY1MyOypF

--HG--
extra : rebase_source : f783e21e6f8d47157f7269fdd957f29d950d2c31
2017-09-21 14:12:40 +08:00
Thom Chiovoloni
57c9bd99fb Bug 1409860 - Move os to correct place in android sync ping r=Grisha
MozReview-Commit-ID: DBn8MMVgKPM

--HG--
extra : rebase_source : b51fbfd06f784f2b2c967e33079ed29a05de0710
2017-10-19 13:35:16 -04:00
Thom Chiovoloni
3f1b2cd57a Bug 1410145 - Fix wrong version field in android sync ping. r=Grisha
MozReview-Commit-ID: 1Q4Dz7g5QPA

--HG--
extra : rebase_source : 98ea2d40ad582dd84687d42cef4fb0eff4e808df
2017-10-19 12:56:56 -04:00
Jing-wei Wu
cce9fa457f Bug 1395841 - Part 1: Change page option strings fom 'add to home screen' to 'add page shortcut'. r=snorp
MozReview-Commit-ID: 9fFN9aYEI3v

--HG--
extra : rebase_source : 432207551bd4bc05d63fe5f3f5bc74f1e190fc74
2017-09-27 17:31:30 +08:00
Thom Chiovoloni
308a20e9b2 Bug 1409472 - Replace always-wrong instanceof check with an explicit boolean in BatchingUploader. r=Grisha
MozReview-Commit-ID: JmJmMwseH3m

--HG--
extra : rebase_source : 8192222332d46fa1f5f791240b936c2d27e42c81
2017-10-17 15:33:34 -04:00
Nick Alexander
ec1556ae55 Bug 1366644 - Part 2: Work around new deprecation warnings from Android SDK 25/26. r=maliu
MozReview-Commit-ID: CDDGqQBQHDS

--HG--
extra : rebase_source : f0d9d7eb2b6f701f19cae69bf9428020e3f823d4
2017-06-21 10:11:03 -07:00
Dan Banner
7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Thom Chiovoloni
5e4fd13a04 Bug 1362206 - Have android abort bookmark syncs if a record is too large to upload to the server r=Grisha
MozReview-Commit-ID: JBggAu9Ajbu

--HG--
extra : rebase_source : b8ec16ac467f33ab81ed914c63af8ab1d7e29eef
2017-09-06 17:48:18 -04:00
Sebastian Hengst
045cbf3353 Backed out changeset 83aa9559d548 (bug 1362206) for failing android-test. r=backout 2017-10-10 23:02:06 +02:00
Thom Chiovoloni
2b7d843720 Bug 1362206 - Have android abort bookmark syncs if a record is too large to upload to the server r=Grisha
MozReview-Commit-ID: JBggAu9Ajbu

--HG--
extra : rebase_source : 9bb4549fecb7cf4733009952f08f813325f958ea
2017-09-06 17:48:18 -04:00
Michael Comella
f1b1b8b981 Bug 1395409: Add testActivityStreamPocketReferrer. r=liuche
MozReview-Commit-ID: FlcMG5IewRH

--HG--
extra : rebase_source : 0d744d9f3d4ffa55a594da566f2eacea0f1a3a17
2017-08-30 17:33:08 -07:00
Michael Comella
f1209017b7 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

--HG--
extra : rebase_source : 3f92c5f3cbefbb7cea14a1f673edce546a640a96
2017-10-03 10:29:49 -07:00
Michael Comella
b85cdd45bb Bug 1404460: Add test for pocket locale enabling. r=liuche
MozReview-Commit-ID: LHdQuICvVjE

--HG--
extra : rebase_source : 101ce5408e6f329bf04b5e889e942d6f42953500
2017-10-02 18:36:41 -07:00
Sebastian Hengst
5a95ac34b4 merge mozilla-central to autoland. r=merge a=merge 2017-09-29 11:49:46 +02:00
Jim Chen
9bc80ca4da 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

--HG--
extra : rebase_source : 9ec338c77d362a86fb0097b51bd4d55a15654f43
2017-09-28 00:14:19 -04:00
Jim Chen
101c7645ef 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
95e9c477dd 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

--HG--
extra : rebase_source : 110224b2db85a383635db933ec6c19b21af886e7
2017-09-26 17:36:22 -04:00
Grigory Kruglov
2398e54654 Bug 1373254 - Ensure onStoreFailed won't be called twice r=rnewman
MozReview-Commit-ID: 5IE7t5qs6VU

--HG--
extra : rebase_source : 81b797f526532e10e06fbe6225c29fc56e34db5c
2017-09-25 20:01:14 -04:00
Jim Chen
57cca85e76 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

--HG--
extra : rebase_source : 1787cfde739eac742d28244ab29579a789997b81
2017-09-22 14:35:23 -04:00
Sebastian Hengst
e6da11dbfd Backed out changeset b5a88815b3a6 (bug 1396951)
MozReview-Commit-ID: H7q7JLdOCQS
2017-09-22 11:48:25 +02:00
Jim Chen
6e5b9382e4 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

--HG--
extra : rebase_source : c446302e957c5c1136a6a670735ce9df2dc3f41a
2017-09-21 17:36:07 -04:00
Grigory Kruglov
2e039ddbf5 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

--HG--
extra : rebase_source : 2e9d2eeeba247454051e9fe4ab875d9f9ca5e2d4
2017-09-21 16:53:03 -04:00
Edouard Oger
30ba58e3f2 Bug 1359279 - Renew GCM token/Push registration/FxA Registration on push registration expired. r=Grisha
MozReview-Commit-ID: HFDjBBt9CBA

--HG--
extra : rebase_source : c51c12c66820bd8d9c2a6356163e0166bbf38d2d
2017-08-23 15:41:31 -04:00
Sebastian Hengst
8d0a582563 Backed out changeset 53e599ac1ed7 (bug 1359279) for android linting failure. r=backout 2017-09-21 00:07:06 +02:00
Edouard Oger
126bd9114d Bug 1359279 - Renew GCM token/Push registration/FxA Registration on push registration expired. r=Grisha
MozReview-Commit-ID: HFDjBBt9CBA

--HG--
extra : rebase_source : 727caefdd3ad0fcb9383f2098a8651a6124f662f
2017-08-23 15:41:31 -04:00
Jan Henning
78e7a75171 Bug 1391421 - Part 9 - Add a basic Robocop test for IDN domain support. r=gbrown
MozReview-Commit-ID: HAT9Imh9YVf

--HG--
extra : rebase_source : c29f9cf4c62377896081644006692f395a6755ec
2017-09-15 23:29:01 +02:00
Jim Chen
e03747135e 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

--HG--
rename : mobile/android/chrome/content/ActionBarHandler.js => mobile/android/modules/ActionBarHandler.jsm
rename : mobile/android/chrome/content/FormAssistant.js => mobile/android/modules/FormAssistant.jsm
rename : mobile/android/chrome/content/InputWidgetHelper.js => mobile/android/modules/InputWidgetHelper.jsm
rename : mobile/android/chrome/content/SelectHelper.js => mobile/android/modules/SelectHelper.jsm
rename : mobile/android/chrome/content/WebrtcUI.js => mobile/android/modules/WebrtcUI.jsm
extra : rebase_source : fa361c9eeea38485ba6a8f6c49321c32304d4006
2017-09-19 14:57:32 -04:00
Andrew Halberstadt
7527e600f0 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : b78cbf7913fc1b0a27dfa085c38957e2bc2467d0
2017-08-22 16:56:02 -04:00
Jing-wei Wu
1645a12b54 Bug 1383713 - [robocop] Find toolbar first and use it to find menu button. r=JanH,nechen
MozReview-Commit-ID: 3b6HijVb9nB

--HG--
extra : rebase_source : 6084ee8b3df799d20e990fd2f8c96eb12a751512
extra : source : 9a1adaff926e654260f0747b643b60a8018d7ef1
2017-09-15 17:50:58 +08:00
Jing-wei Wu
5dec895382 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

--HG--
extra : rebase_source : 337c3df3ffd36a4d26547b994aba3ce7647bafc8
2017-09-15 15:58:10 +08:00
Jim Chen
361dc2b952 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
2ea84d0359 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
5572780f08 Bug 1388396 - bustage: Fix testBitmapNotScaledMoreThanTwoTimesTheSize. r=mcomella
MozReview-Commit-ID: BZ6dt5FE7FD

--HG--
extra : rebase_source : 03840fc19897f0c09f05ea46c8d2bfd404e3180e
2017-09-13 10:35:40 -07:00
Michael Comella
244d92b88c Bug 1388396 - review: Add TestMinimumSizeProcessor. r=mcomella
MozReview-Commit-ID: ADaJL88YZLg

--HG--
extra : rebase_source : b94a4855d335ff6d36c24dc61288b7fb65a0aca0
2017-09-12 11:33:33 -07:00
Michael Comella
b56fdfb023 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

--HG--
extra : rebase_source : 7e395dfdb6016f3cb9973e5642c8377928c8fa64
2017-09-12 16:36:21 -07:00
Sebastian Hengst
d0007e88ac Backed out changeset 3300c15011d3 (bug 1388396) 2017-09-13 09:50:18 +02:00
Grigory Kruglov
8b07f64d59 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

--HG--
extra : rebase_source : 7f585e8a71291fb812937b4846ce790a9b332fac
2017-09-12 16:00:37 -04:00
Michael Comella
409089d342 Bug 1388396 - review: Add TestMinimumSizeProcessor. r=mcomella
MozReview-Commit-ID: ADaJL88YZLg

--HG--
extra : rebase_source : 586e6986b2ee7256a62651504acead18bc030fac
2017-09-12 11:33:33 -07:00
Jan Henning
6e54f839f6 Bug 1396324 followup. Add comment referencing this bug to the test. r=JanH
DONTBUILD

MozReview-Commit-ID: AFEnH5VSuM4

--HG--
extra : rebase_source : a11f70d27f0bb43a833a6050b3f581c7133381fb
2017-09-09 22:54:55 +02:00
Jing-wei Wu
60874e7055 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

--HG--
extra : rebase_source : fcb1a42e8e0ccdb06fd17bcb14880ed4a650efc7
2017-09-08 16:02:37 +08:00
Sebastian Kaspari
aecdc4c5ab Bug 1396604 - Remove content notifications code. r=JanH,nechen
MozReview-Commit-ID: 5H45Vjnzt5Z

--HG--
extra : rebase_source : dbbcf4a4e402ad3550461bc61d1770961082b839
2017-09-04 16:51:07 +02:00
Edouard Oger
f67e87ebd4 Bug 1373897 - Clear the succeeded records GUIDs list after each POST in non-batched mode. r=Grisha
MozReview-Commit-ID: 4VnYZc6gMkc

--HG--
extra : rebase_source : 85facf778436845d51848f4abbedd9609df5404b
2017-08-30 16:46:41 -04:00
Jan Henning
fe27b4a96d 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

--HG--
extra : rebase_source : ed0bab9f3ae3198bf2af90eabc86fd5ddd95b3a0
2017-09-02 21:22:30 +02:00