Граф коммитов

697 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Kaspari 2130ff7058 Bug 1311398 - Load public suffix list from disk and extract activity stream labels asynchronously. r=Grisha
Not really happy about the change but it addresses the problem.

* Loading the list from disk is much faster than parsing the string (2500ms vs. 30-50ms on a Nexus 6P)
* Because of (potential) disk I/O we are required to extract the label asynchronously on a background thread
* We load the list only once and then keep it in memory - like we did before the change.

MozReview-Commit-ID: 9MPGbmIGRnS

--HG--
extra : rebase_source : 8b31f852c6bb90fd57baeb07ba0066421d5a6e46
2016-11-02 13:56:43 +01:00
Andrzej Hunt 8dbccb2568 Bug 1312467 - Hide some items for TopSites context menu r=sebastian
MozReview-Commit-ID: JHEr4IraLQB

--HG--
extra : rebase_source : 90c82f20e989985117664cf0976103fb263f7f62
extra : source : 62e2d99d7e90fff134b484bdec3b6882290a0f8c
2016-10-31 15:42:44 +01:00
Phil Ringnalda 8cf1367dd8 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
Jim Chen 5f906265fe Bug 1307816 - 16. Fix charset for robocop_input.html; r=me
Trivial patch to include a meta charset line in robocop_input.html.
2016-10-25 12:28:54 -04:00
Jim Chen a2bfe7c444 Bug 1307816 - 12. Fix up selection and composition when replacing text from Gecko; r=esawin
When a Gecko text change spans larger than our original request, we have
to do the replacement in parts in order to preserve any spans from the
original request. There was a bug where the selection is moved to the
wrong offset after the three replacements. This patch switches the order
of the two replacements and manually fixes up the selection.

For any text changes that originated on the Gecko side, this patch also
splits the replacement into two parts (delete + insert), so that old
composing spans are properly cleared first. This new behavior changes
the expected result for the test added by bug 1051556, so the test is
changed as well.. I think this new behavior is more correct, but if it
results in regressions, we can reevaluate.
2016-10-25 12:28:54 -04:00
Jim Chen 7aeb565019 Bug 1307816 - 11. Use GeckoThread for waiting on Gecko; r=esawin
Right now we send a "process-gecko-events" message to
GeckoInputConnection in order to wait on Gecko during testing. However,
now we have GeckoThread.waitOnGecko() to do that, so we can just use
that directly.
2016-10-25 12:28:54 -04:00
Jim Chen 6044706d5d Bug 1307816 - 10. Move text/selection assert methods to InputConnectionTest; r=esawin
Under asynchronous IME, when we check text/selection for correctness, we
have to wait for the IC thread to sync the shadow text first. In order
to do that inside the assert methods, we have to move them to inside
InputConnectionTest, so that they can call processGeckoEvents() and
processInputConnectionEvents().

Also, ignore a single newline character, if present, at the end of the
actual text, because it's a side effect of some editing operations in
Gecko (e.g. clearing all text in an HTML editor).
2016-10-25 12:28:53 -04:00
Andrzej Hunt d5dfc69ce9 Bug 1311561 - Add basic AS context menu robocop tests r=sebastian
MozReview-Commit-ID: A90BvpuHJHb

--HG--
extra : rebase_source : a8cc551a54539cdeb0461f591b10c2b26d3ce302
2016-10-20 09:22:04 -07:00
Andrzej Hunt f4033b9482 Bug 1311561 - Pre: add design support library to robocop r=nalexander,sebastian
We want to access ActivityStreamContextMenu directly in our new test. That menu
extends BottomSheetDialog which is contained in the design support library, hence
we need to make that library available in robocop builds in order to access
the AS context menu.

MozReview-Commit-ID: EPyv7wvkJAE

--HG--
extra : rebase_source : cafe1e7dd6fbdcfb471cf5f66a1c0522e796c3aa
2016-10-20 09:19:22 -07:00
Sebastian Kaspari b600b36c33 Bug 1308525 - Update activity stream panel to follow new UX mocks. r=Grisha
Okay, this patch is much bigger than I anticipated. However at this point it is impossible
to separate all the interweaved changes.

* Update sizes and colors
* Use a dynamic number of top sites tiles to adjust to the screen size
* Do not keep references (to possible outdated) Cursors from every top sites page
* Remove unused bottom panel
* Add menu button to highlights items

MozReview-Commit-ID: 2CeEGCOXBKl

--HG--
extra : rebase_source : a780ec20fa6f87520c3418403ae4fe259ff39d69
2016-10-12 15:07:26 +02:00
Tom Klein 2664442b26 Bug 1116415 - 2. Make the linear tabs list a RecyclerView. r=sebastian
Also make a temporary testing adjustment to handle the fact that TabsListLayout
and TabsGridLayout don't currently share a common usable base.

MozReview-Commit-ID: HPExAnehKRq

--HG--
extra : rebase_source : 4d9d0ce9fff216090ae676163e22645cd45c92a5
extra : source : 411a8ac7368e3b69e8191812fb53f0d1b8aa3247
2016-09-12 10:37:14 -05:00
Sebastian Kaspari bc505a808c Bug 1299201 - Introduce ActivityStream.extractLabel() to extravt a label from a URL. r=Grisha
MozReview-Commit-ID: 8IM7qppwmJ6

--HG--
extra : rebase_source : 411bd9b8126caf0af06eb37d9c932f20089a2c93
2016-10-11 13:47:45 +02:00
Sebastian Kaspari 99ee5fa11a Bug 1299201 - Add helper method for stripping the public suffix from a domain. r=Grisha
MozReview-Commit-ID: H2ajfSZg6aE

--HG--
extra : rebase_source : 3657e7c88592f01020e4409e1ec902bed4b62268
2016-10-11 12:19:45 +02:00
Sebastian Kaspari d6301cd000 Bug 1299201 - StringUtils: Add helper method for joining strings with a separator. r=Grisha
MozReview-Commit-ID: Fzrap4wkeWk

--HG--
extra : rebase_source : c0d6495d825ad0a8a80d05a39e38d841d758e115
2016-10-11 11:52:43 +02:00
Sebastian Kaspari e495b04c9e Bug 1299201 - TestStringUtils: Remove unneeded Assert prefix. r=Grisha
MozReview-Commit-ID: LdxMX8cEU9e

--HG--
extra : rebase_source : 1ac414ebad90113b2f15908111dbee6aeeec02ad
2016-10-11 11:25:50 +02:00
Sebastian Hengst cdcc9e20da Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Andrzej Hunt 49c647af94 Bug 1307534 - Test that homepanel migration keep hidden panels hidden r=sebastian
MozReview-Commit-ID: 3s4aM2g4XTi

--HG--
extra : rebase_source : 285dcc75a8c827d6895b4800af806fe681a28bca
2016-10-05 21:41:38 +02:00
Andrzej Hunt 8f2b2148c6 Bug 1267884 - Update TestColorProcessor to reflect update palette library colour extraction r=sebastian
It looks like the update (23.4) version of palette returns the actual dominant colour
for a red mock (FF0000). Previously it returned a more muted red (F80000).

MozReview-Commit-ID: 5VpRavyooHY

--HG--
extra : rebase_source : ab55e787a305481f890d00739de2843b87063bed
2016-10-04 09:51:18 -07:00
Ryan VanderMeulen ef3b2f209c Bug 1306732 - Update StringHelper.java with the new branding string to avoid Aurora test failures. r=sebastian 2016-10-04 14:41:36 -04:00
Andrzej Hunt 4696fefe72 Bug 1306140 - Add tests for HomeConfig migration r=sebastian
I am open to replacing "constellations" with a different name, but it was the best
I could come up with so far.

MozReview-Commit-ID: 9pljV8nC6O8

--HG--
extra : rebase_source : 781b5e1776adf457c92cacfecc09dc7afe03ad41
2016-09-29 11:36:57 -07:00
dlim@mozilla.com 4fd116a405 Bug 730142 - Download batching. r=Grisha,rnewman
MozReview-Commit-ID: BhMmynysoKa

--HG--
extra : rebase_source : c62eb8bdd93bf38281aa13d37e6a49b271029e09
2016-09-30 09:33:08 -07:00
Andrzej Hunt e3c528759c Bug 1298783 - Add activity stream blocklist tests r=Grisha
MozReview-Commit-ID: 3W51oPtdsxw

--HG--
extra : rebase_source : 0eb895068599d262f9706a94039214a16b5e1189
2016-09-27 12:32:22 -07:00
Andrzej Hunt 30ca845852 Bug 1298783 - Add highlights blocklist table r=Grisha
MozReview-Commit-ID: 6Cng37HFCLO

--HG--
extra : rebase_source : d51cd40515abfff83bd6d68425af294d547e822a
2016-09-28 14:56:23 -07:00
Carsten "Tomcat" Book b5206d37f5 Merge mozilla-central to mozilla-inbound 2016-09-28 16:25:01 +02:00
Carsten "Tomcat" Book 572e74ee99 merge mozilla-inbound to mozilla-central a=merge 2016-09-28 15:56:33 +02:00
Geoff Brown c07f3f97e3 Bug 1305715 - Remove unused robocop logging code; r=jmaher 2016-09-28 07:45:31 -06:00
Geoff Brown 0e6cb7d2ec Bug 1304681 - Do not clear robocop test name between tests; r=jmaher 2016-09-28 07:45:30 -06:00
Dylan Roeh f2d63fa10f Bug 1294821 - De-singletonize EventDispatcher and make it application-specific. r=jchen 2016-09-27 11:07:24 -05:00
Grigory Kruglov 41727dee14 Bug 1305615 - Use correct database in tests, and close db connection in TestLegacyLoader r=ahunt
We need to ensure we can explicitely close any database connections we open in the TestLegacyLoader,
so we initialize a BrowserProvider instance so that we can then call .shutdown() on it once we're done,
which will close any open connections.

Additionally, we need to make sure to use correct authority when registering (using AUTHORITY_URI produces dual mapping
of providers, from content://org.fennec... and from org.fennec...), and wrap our providers in a DelegatingTestContentProvider,
which will append PARAM_IS_TEST param to wrapped URIs -  when present this ensure we won't try to load a per-profile database.

MozReview-Commit-ID: LnzPhGOe6OY

--HG--
extra : rebase_source : 76eaadaa78bed7918b90012f8bdcc996dc3b2024
2016-09-26 20:26:59 -07:00
Grigory Kruglov 2d973e1eac Bug 1305182 - Release thumbnailClient in the unittest tearDown r=ahunt
MozReview-Commit-ID: KoW42T57gna

--HG--
extra : rebase_source : 70a80b90e88a4fb679da8c3907d78a645a7b9eaa
2016-09-23 16:43:10 -07:00
Grigory Kruglov 9bc2b883fc Bug 1302601 - Fix broken tests - poor method override r=ahunt
MozReview-Commit-ID: DX2gTqXngiq

--HG--
extra : rebase_source : 506c8ac43b3ab39165614815856e4593fb668e64
2016-09-23 13:27:45 -07:00
Grigory Kruglov 0f27194436 Bug 1300094 - Update robolectric to 3.1.2 r=sebastian
MozReview-Commit-ID: KuvzMbZ2n1q

--HG--
extra : rebase_source : e3e9fde87f69c8aa2c5f74de2c497441962486fd
2016-09-22 13:42:42 -07:00
Jim Chen 3965c7e895 Bug 1291375 - 1. Compile separate gecko-view.jar; r=nalexander
Compile geckoview sources into a separate gecko-view.jar file, apart
from gecko-browser.jar. This lets us separate JNI binding generation,
among other things.
2016-09-16 15:13:47 -04:00
Geoff Brown 425766dddb Bug 1294643 - Allow for more conditions in robocop testUnifiedTelemetryClientId; r=me 2016-09-15 07:41:00 -06:00
Jim Chen 5113e2786e Bug 1291384 - 2. Convert GeckoProfile.getDB calls to BrowserDB.from calls; r=nalexander
Mass convert GeckoProfile.getDB() calls to BrowserDB.from() calls,
whether using Context or GeckoProfile.
2016-09-14 12:46:50 -04:00
Jan Henning 380db6505a Bug 1300647 - Part 2 - Test that the session store correctly handles the "Tab:KeepZombified" notification. r=ahunt
MozReview-Commit-ID: 2x9V4o5iPDg

--HG--
extra : rebase_source : 167366635e7fcd751acf1ed05e9a7c6532f5ad44
2016-09-10 23:01:10 +02:00
Jan Henning d4e73bbc69 Bug 1301016 - Part 2 - Test scroll position restoring on reader mode pages. r=ahunt
MozReview-Commit-ID: D36u8kUD67g

--HG--
extra : rebase_source : d088ab20975dd1babbe6e7e438c371923e6d7139
2016-09-11 16:03:26 +02:00
Benjamin Dahse 831a288828 Bug 961335 - Add ICODecoder Robocop tests r=ahunt
MozReview-Commit-ID: 9jtcfZCjAbd

--HG--
extra : rebase_source : 4a10ebd2cf90c9173a18990682014ee2ee77432a
2016-09-07 15:28:06 -07:00
Sebastian Kaspari 10fdd6498e Bug 1300543 - Use palette library instead of BitmapUtils.getDominantColor(). r=ahunt
MozReview-Commit-ID: LTwarAG5NNm

--HG--
extra : rebase_source : 44165c8f04cc5888147c7b6e0f0996f64f99f810
2016-09-06 10:05:32 +02:00
Sebastian Kaspari f0847016ce Bug 1300543 - LegacyLoader: Only load if there's one icon URL left. r=ahunt
Let's try to load from the legacy loader only if there's one icon left and
the other loads have failed. We will ignore the icon URL anyways and try to
receive the legacy icon URL from the database.

MozReview-Commit-ID: Kr7gHXBuAs7

--HG--
extra : rebase_source : 7fbdd507fa2c0a9aa4223db1da6aa5fbc1aa4907
2016-09-05 16:44:33 +02:00
Sebastian Kaspari 80177742b4 Bug 1300543 - LegacyLoader: Skip loading from legacy storage if network download is permitted. r=ahunt
If we are allowed to load the icon from the network then skip loading from the legacy storage and just
load a fresh icon. This will avoid touching the legacy storage (disk) every time before downloading an
icon.

MozReview-Commit-ID: C9hYqISno6U

--HG--
extra : rebase_source : 6f19839c38d37916deb351b3e080e023e532a83f
2016-09-05 15:38:27 +02:00
Sebastian Kaspari 7d3cd9e160 Bug 1293710 - Add unit tests for highlights query. r=ahunt
MozReview-Commit-ID: DX1AM9wsCMn

--HG--
extra : rebase_source : a713c8bb6b3c87dbec7b3499acc11226bf85202d
2016-09-02 19:31:49 +02:00
Sebastian Kaspari b05071f783 Bug 1290014 - Add additional unit tests. r=ahunt,Grisha
MozReview-Commit-ID: Ib5OI7eb2sq

--HG--
extra : rebase_source : 03b754f45a92952533e7fe935a30bc97df678bf7
2016-08-18 14:10:49 +02:00
Sebastian Kaspari fb80b68a08 Bug 1290014 - Move code from the FaviconGenerator class to the IconGenerator in the icons package. r=ahunt,Grisha
The FaviconGenerator is the last class in the old favicons package. As this class is only used by the IconGenerator
let's move the code inside the new class and remove FaviconGenerator.

MozReview-Commit-ID: 7NsJRGdoUWv

--HG--
extra : rebase_source : 703b80560f47220d094de0049cd9b92f8cd524eb
2016-08-17 18:08:51 +02:00
Sebastian Kaspari 750710c9ca Bug 1290014 - Remove obsolete code. r=ahunt,Grisha
Most of the code in the favicons package is now obsolete and can be
removed. Most of this code still exists in the icons package (in smaller
chunks).

MozReview-Commit-ID: 6J4pgd5doNt

--HG--
extra : rebase_source : fa04223a758483d8440167fb63fe852ea3bde3f8
2016-08-17 17:27:06 +02:00
Sebastian Kaspari c7c1345db5 Bug 1290014 - Restructure icon code and use disk lru cache. r=ahunt,Grisha
This patch does multiple things:

1) It restructures the icon code to follow a preparer, loader, processor pattern.
Instead of very long procedures we now have a lot of small components. This patch
includes 90+ tests for those components.

2) It replaces the database storage with the disk lru cache. We still keep the
tables around because we will still load from it as fallback to avoid needing
to migrate all data.

This patch is pretty big but a lot of it is moving code around and breaking it
into smaller chunks. A later commit will remove now obsolete components.

By creating a consistent mapping page URL -> icon URL -> icon data this change
fixes the linked bugs (bug 1269821 and bug 1271634).

MozReview-Commit-ID: 1nkrZn286Gv

--HG--
extra : rebase_source : e8d2902dc8553e43297e9e3f0fd96bf04f28ba3a
2016-08-16 11:36:22 +02:00
Grigory Kruglov 55435220f1 Bug 1299939 - Use SafeIntent throughout BrowserApp and delegates r=rnewman
MozReview-Commit-ID: gW2gXVWji1

--HG--
extra : rebase_source : 854235b1a3e507cd634b487e500f670cac150bb5
2016-09-01 18:25:05 -07:00
Edouard Oger 7d54172fb4 Bug 1295348 - Send/Handle push messages for send tab to device on Fennec. r=Grisha,sebastian
MozReview-Commit-ID: 1NSMPLQdoXv

--HG--
extra : rebase_source : 4a350317a15d3649a966d8bc4bcd762259cc059a
2016-08-25 16:25:58 -07:00
Grigory Kruglov 14a454f556 Bug 1253111 - Part 2: Add support for batching uploads r=rnewman
- Introduce a new BatchingUploader class to handle storing records and keep track of batches/payloads
- Refactor upload runnable and upload delegate into their own classes
- Introduce Last-Modified and X-I-U-S handling into non-batching mode

MozReview-Commit-ID: 3JLExwQvYzM

--HG--
extra : rebase_source : 4a6a2db595fe72473b033acd4f3180fa799319d4
2016-08-26 14:05:47 -07:00
Sebastian Kaspari 4b882652fe Bug 1281220 - Remove about:accounts telemetry on Fennec. r=liuche
MozReview-Commit-ID: GTKaauQIDKo

--HG--
extra : rebase_source : 8547ccf947b45d23de77e61018ec4de45cc3e329
2016-08-23 16:25:19 +02:00