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

21148 Коммитов

Автор SHA1 Сообщение Дата
Zero One 4473369471 Bug 1292191 - Remove unneccesary check for mShouldRestore. r=mkaply
MozReview-Commit-ID: 3amKuifhpfu

--HG--
extra : rebase_source : a4b31adc09f9f685dccdbebe63ba8a9ae30acd8c
2016-09-07 16:35:26 -05:00
Kannan Vijayan f671b30c0f Backout cbe18f181112 for crashes - bug 1292639 2016-09-07 13:43:40 -04:00
Carsten "Tomcat" Book 1c61ba654e merge mozilla-inbound to mozilla-central a=merge 2016-09-07 17:20:12 +02:00
Ralph Giles 186cacb131 Bug 1296403 - Update tooltool rustc to 1.11.0. r=mshal
Repacks of upstream builds of rust 1.11.0 stable with std libraries
for the appropriate targets. Remove the separate rust-std package
references since the new repacks include the necessary targets.

Also update clang and hazard builds to the latest toolchain.

MozReview-Commit-ID: K7oBxQZnLPu

--HG--
extra : rebase_source : 9f339ff52e9e2f6c28d4bb7a734b9f0eae43a47a
2016-09-06 13:09:56 -07:00
Andrzej Hunt ceca466475 Bug 1299524 - Disable FaviconView corner rounding in Activity Stream topsites r=sebastian
We use the FaviconView to fill the majority of the card (i.e. full width, and approx 75% of the height)
- in that scenario rounding the corners looks odd.

MozReview-Commit-ID: 1e5HAwfcV5

--HG--
extra : rebase_source : e6c5168025e1ac3ad941e8fd6207960b37442373
2016-09-06 10:48:26 -07:00
Andrzej Hunt 0bee5d51ae Bug 1299524 - Allow disabling FaviconView corner rounding via enableRoundCorners attribute r=sebastian
MozReview-Commit-ID: 1qtt7xlTsHP

--HG--
extra : rebase_source : e24982d035fb3357eb1efd4a5952b968eb7af3dd
2016-09-06 10:46:47 -07:00
Sebastian Kaspari a5a657d556 Bug 1300543 - IconDownloader: Use final keyword where appropriate. r=ahunt
MozReview-Commit-ID: DhWIRPZf7rg

--HG--
extra : rebase_source : 797987c944e445a4ea7e00a2373c83c2003c0c1a
2016-09-06 13:58:35 +02:00
Sebastian Kaspari 58d250abaa Bug 1300543 - IconDownloader.downloadAndDecodeImage(): Correctly assign and close stream. r=ahunt
MozReview-Commit-ID: CYEOCCpraOr

--HG--
extra : rebase_source : f0e05c79c531857d73ca5aea3f1dbabedeed6e23
2016-09-06 13:53:02 +02: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 e730285a31 Bug 1300543 - FilterMimeTypes: Continue to filter mime types if one of them is empty. r=ahunt
MozReview-Commit-ID: GRFANWF1L2m

--HG--
extra : rebase_source : b4993fdfc01f04397de6c5a2d2729b4de023ce5f
2016-09-05 17:37:13 +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 87a7500078 Bug 1300543 - IconRequestExecutor: Resize image before extracting color. r=ahunt
Running the color extraction algorithm on a smaller image will be much faster.

MozReview-Commit-ID: A42rzuQ3FDQ

--HG--
extra : rebase_source : 560e5e1a6711d8f34f12803e5aabf4f09e769706
2016-09-05 15:25:25 +02:00
Sebastian Kaspari 2df61cba23 Bug 1300543 - IconRequestExecutor: Add custom thread pool executor and thread factory. r=ahunt
The custom executor behaves like the one returned by Executors.newSingleThreadExecutor().
However the created thread will have a unique name ("GeckoIconTask") and this will make
tracing the thread much easier.

MozReview-Commit-ID: 7y0EMGmNLkG

--HG--
extra : rebase_source : 517d329df12ff101816c3a3f8e27f28aeffb6821
2016-09-05 15:24:07 +02:00
Andrzej Hunt b79a5e8eec Bug 1298968 - Add comment explaining why TOPSITES is handled outside of switch r=sebastian
MozReview-Commit-ID: BFvz2qTm4vL

--HG--
extra : rebase_source : 8d4e77baf5c629c0d16f97c7135fd4c85bf5a5b5
2016-09-06 10:06:58 -07:00
Sebastian Kaspari 9b9a3bee93 Bug 1300569 - Add palette-v7 support library to build. r=ahunt
MozReview-Commit-ID: F29cOyHsd8B

--HG--
extra : rebase_source : 0c568158a20ae34687b135ce414ccfb5f710d228
2016-09-06 08:39:16 +02:00
Sebastian Kaspari 3cf54d8f48 Bug 1300155 - IconTask: Disable debug logging. r=ahunt
MozReview-Commit-ID: 51pYsDqicNS

--HG--
extra : rebase_source : 5e8912d87f18bdcf9af48ba07e9dfe121a82c92f
2016-09-05 10:32:07 +02:00
Sebastian Kaspari cde95c1b07 Bug 1300484 - IconResponse: Throw if bitmap is null. r=ahunt
This will crash later anyways but throwing here will allow us to identify code
that creates a response with a null bitmap (This shouldn't happen).

MozReview-Commit-ID: LJMSsW51eXo

--HG--
extra : rebase_source : 22eefdc5ba28d36142b663c03f376045fcc542fd
2016-09-05 11:46:27 +02:00
Sebastian Kaspari c3c4c19eb4 Bug 1300484 - IconDownloader: Check if best bitmap is not null. r=ahunt
MozReview-Commit-ID: 7A1u6EefKt9

--HG--
extra : rebase_source : 36334c8dd49dcdbdf3f34edc633604d058112fb1
2016-09-05 11:43:00 +02:00
Sebastian Kaspari 14c8e61696 Bug 1300485 - DiskStorage: Re-open cache if it is closed (after clearing). r=ahunt
MozReview-Commit-ID: GX3q4YtRsDw

--HG--
extra : rebase_source : 706671be294f2a216d2932d09507abcbafcc2419
2016-09-05 11:21:21 +02:00
Julian_Chu f9a272b954 Bug 1296748 - Do not unregister if target does not exist; r=jchen
in create(), only register listener if anchorHandle exits.
in opposite side, only unregister listener in same condition.

MozReview-Commit-ID: HHN23YcmwS

--HG--
extra : rebase_source : bdaa3e7b2a56e8e8d6a7776ff7caf3581e99ff09
2016-08-29 23:56:41 +09:00
Phil Ringnalda 3786ab03f1 Merge m-c to f-t 2016-09-05 17:05:44 -07:00
Phil Ringnalda 66b3a90750 Merge m-i to m-c, a=merge 2016-09-05 13:05:52 -07:00
Andrzej Hunt 9e859c42fc Bug 1297117 - Add documentation to stripAboutReaderUrl r=sebastian
MozReview-Commit-ID: Ibzhnk7LLmh

--HG--
extra : histedit_source : f8460143a4c00238defb68774e96ac99150779aa
2016-09-02 12:35:47 -07:00
Andrzej Hunt 2f3ba414fe Bug 1297117 - Make getUrlFromAboutReader private to avoid erronous usage r=sebastian
getUrlFromAboutReader can return null. There have been crashes caused by not checking this
result in the past. stripAboutReaderFromUrl is a safer version which returns the input URL
if necessary, and is probably what should be used in new code, hence we can make this method
private.

MozReview-Commit-ID: Lg7QWrpSE8F

--HG--
extra : histedit_source : 0964ebab8e9d66e65fc9c3a296031f720219f529
2016-09-02 12:35:08 -07:00
Andrzej Hunt 5b8fbc92f9 Bug 1297117 - Replace unnecessary usage of getUrlFromAboutReader with stripAboutReaderUrl r=sebastian
In some of these cases we're duplicating the work of stripAboutReaderUrl. In the other cases
there is no effective difference, however switching to stripAboutReaderUrl allows us
to make getUrlFromAboutReader private, which should help prevent future errors.

MozReview-Commit-ID: BLeQkve2XIs

--HG--
extra : histedit_source : 1818137ef447b70ca49a783a85cb1a198415df77
2016-09-05 12:56:49 -07: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 e8e8706e93 Bug 1293710 - Group activity stream highlights by URL to avoid duplicates. r=ahunt
The same URL could be picked as highlight from history and from bookmarks.

MozReview-Commit-ID: 5vBHluZKfAN

--HG--
extra : rebase_source : 1fee3b2532670d0b9d472518f3648ee5b5bebb8e
2016-09-02 19:52:56 +02:00
Sebastian Kaspari de0e351a2d Bug 1293710 - Activity Stream Highlights: Only select actual bookmarks (no folders and other special types). r=ahunt
MozReview-Commit-ID: A5oV8vIIyhw

--HG--
extra : rebase_source : 124631db505116eeff4caddc61b5e4ae4b914d41
2016-09-02 19:37:05 +02:00
Sebastian Kaspari e0879f0149 Bug 1293710 - Activity Stream Highlights: Consider bookmarks without history too. r=ahunt
MozReview-Commit-ID: If6HmIIp7sT

--HG--
extra : rebase_source : 4925672e9e1e5f99e2f24739388c43e42b546f69
2016-09-02 19:26:55 +02:00
Sebastian Kaspari f8363edb76 Bug 1293710 - Activity Stream Highlights: Load icons and restructured layout. r=ahunt
MozReview-Commit-ID: 1JaFdcFPbIU

--HG--
extra : rebase_source : d9a9e4d15da4c7807d412c234444c530929b0758
2016-09-02 13:10:46 +02:00
Sebastian Kaspari 509e8627f2 Bug 1293710 - Display highlights in activity stream panel. r=ahunt
MozReview-Commit-ID: CnE0Ivq6OXz

--HG--
extra : rebase_source : 5e3431f8a536fba08a4a40c679f83bd07ef97ceb
2016-08-31 19:40:28 +02:00
Sebastian Kaspari 43d2a41065 Bug 1293710 - Obtain a list of "highlights" for the Activity Stream panel. r=ahunt,Grisha
This query resembles how the Activity Stream add-on for desktop Firefox selectes highlights[1].
The desktop version uses the 'rev_host' (reversed host) column to filter the results based
on a blacklist and group results by hostname. This has been omitted here (See bug 1298785 and
bug 1298786).

Additionally the desktop version uses a block list to filter "highlights" that have been removed
manually by the user. This is not added here until needed from the UI side (see bug 1298783).

[1] 9eb9f451b5/addon/PlacesProvider.js (L578)


MozReview-Commit-ID: 9TyIaK21MNJ

--HG--
extra : rebase_source : d6debec1c16b1a1667b0c10fe49e4fcc1dc11bfd
2016-08-29 15:35:17 +02:00
Kershaw Chang 4317633349 Bug 1288297 - Construct PresentationRequest with multiple URLs, r=smaug 2016-09-05 01:17:00 +02:00
Ryan VanderMeulen 1502d18249 Merge inbound to m-c. a=merge 2016-09-03 11:33:28 -04:00
Andrzej Hunt 1c5b9d7220 Bug 1299977 - Add TopSites title to UnusedResourcesUtil r=me 2016-09-02 15:04:10 -07:00
Wes Kocher fa97b52dd9 Merge m-c to fx-team, a=merge 2016-09-02 13:36:24 -07:00
Wes Kocher a77698d3d7 Merge fx-team to central, a=merge 2016-09-02 13:32:41 -07:00
Wes Kocher ee92002ede Merge inbound to m-c a=merge 2016-09-02 13:17:30 -07:00
Andrzej Hunt 253792d078 Bug 1299977 - Update Activity Stream background colour r=sebastian
MozReview-Commit-ID: zyorACyIHe

--HG--
extra : rebase_source : de033f2e3949ec4c5479f199759a3fe70ac00cf8
2016-09-01 16:41:35 -07:00
Andrzej Hunt 9ac761e04f Bug 1299977 - Improve Activity Stream topsites appearance r=sebastian
This patch:
- moves padding, so that the topsites pagers uses the full screen width (otherwise
  topsites cards start disappearing where the padding starts when scrolling,
  which looks odd)
- Adjusts background colour for AS.
- Removes redundant TopSites title
- Adds a divider to the bottom of topsites / above Highlights.

MozReview-Commit-ID: 181COuLECtC

--HG--
extra : rebase_source : d3053e4c0ea31ecb250ddae4448172e4dbaf1e3e
2016-09-01 16:40:33 -07:00
Dylan Roeh 607c18eae8 Bug 1299925 - Override onBackPressed in CustomTabsActivity to finish the activity. r=snorp 2016-09-01 17:17:14 -05:00
Sebastian Kaspari 57614b6b1a Bug 1290014 - Refactor activity stream top sites to use new icon API. r=ahunt
MozReview-Commit-ID: DDzmqNuiqRC

--HG--
extra : rebase_source : 17c247f8a53de782e3626c996847f76081974570
2016-09-01 15:50:31 +02:00
Wes Kocher ba385e02f2 Merge m-c to fx-team, a=merge 2016-09-01 17:55:15 -07:00
Wes Kocher c28fdd5c48 Merge inbound to m-c a=merge 2016-09-01 17:51:22 -07:00
Andrzej Hunt f0f7b67705 Bug 1299224 - pass OnUrlOpenListener into StreamRecyclerAdapter r=sebastian
This has the side effect of enabling click support for topsites.

MozReview-Commit-ID: DW7WX4QDO6n

--HG--
extra : histedit_source : 841fa42364397965d237c36540afc20a86bb2922
2016-08-31 12:53:46 -07:00
Andrzej Hunt b635c55c15 Bug 1299224 - Pre: remove unnecessary LoaderManager reference from StreamAdapter r=sebastian
I think originally I wanted to fiddle the Loaders from the Adapter, but we don't do that
so this code is unused/unnecessary. We should also make sure we only ever create one adapter,
which we can do by initalising it in the constructor.

MozReview-Commit-ID: MCNBXll1ZX

--HG--
extra : histedit_source : 379bcb165906ab3d79d1676617b19589e3add652%2C4a2d8c786192614a798820a641c2368cffb307ac
2016-09-01 14:40:40 -07:00
Nick Alexander 181481663d Bug 1292762 - Set GRADLE_USER_HOME to avoid sdk-manager-plugin intermittent. r=sebastian
MozReview-Commit-ID: 2Ha0B9xelqm

--HG--
extra : rebase_source : 3cc323454ca207296929482625fee1d3224cc1d8
2016-08-31 11:38:13 -07:00
Ryan VanderMeulen 37b200a0c5 Merge autoland to m-c. a=merge 2016-09-01 12:11:51 -04:00
Ryan VanderMeulen 44f02640c6 Merge fx-team to m-c. a=merge 2016-09-01 11:48:45 -04:00