Commit Graph
2909 Commits
Author SHA1 Message Date
Sebastian Kaspari 45cdaa81a3 Bug 1293710 - Activity Stream Highlights: Consider bookmarks without history too. r=ahunt
MozReview-Commit-ID: If6HmIIp7sT
2016-09-02 19:26:55 +02:00
Sebastian Kaspari 613a461dd1 Bug 1293710 - Activity Stream Highlights: Load icons and restructured layout. r=ahunt
MozReview-Commit-ID: 1JaFdcFPbIU
2016-09-02 13:10:46 +02:00
Sebastian Kaspari a662267442 Bug 1293710 - Display highlights in activity stream panel. r=ahunt
MozReview-Commit-ID: CnE0Ivq6OXz
2016-08-31 19:40:28 +02:00
Sebastian Kaspari 9cc5aac223 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] https://github.com/mozilla/activity-stream/blob/9eb9f451b553bb62ae9b8d6b41a8ef94a2e020ea/addon/PlacesProvider.js#L578


MozReview-Commit-ID: 9TyIaK21MNJ
2016-08-29 15:35:17 +02:00
Jim Chen e33a95701e Bug 1291383 - Move Distribution initialization out of GeckoProfile; r=nalexander
Move Distribution initialization (on profile directory creation) from
GeckoProfile to GeckoApplication, by listening to the Profile:Create
event.
2016-09-02 16:49:11 -04:00
Wes Kocher e9cb74a0a0 Merge fx-team to central, a=merge 2016-09-02 13:32:41 -07:00
Wes Kocher eda25c5728 Merge inbound to m-c a=merge 2016-09-02 13:17:30 -07:00
Dylan Roeh d1e5addd54 Bug 1299925 - Override onBackPressed in CustomTabsActivity to finish the activity. r=snorp 2016-09-01 17:17:14 -05:00
Sebastian Kaspari bae262bd5c Bug 1290014 - Refactor activity stream top sites to use new icon API. r=ahunt
MozReview-Commit-ID: DDzmqNuiqRC
2016-09-01 15:50:31 +02:00
Andrzej Hunt 60cd34f72e Bug 1299224 - pass OnUrlOpenListener into StreamRecyclerAdapter r=sebastian
This has the side effect of enabling click support for topsites.

MozReview-Commit-ID: DW7WX4QDO6n
2016-08-31 12:53:46 -07:00
Andrzej Hunt c3cd02330e 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
2016-09-01 14:40:40 -07:00
Sebastian Kaspari 18ed2af2d7 Bug 1290014 - DiskStorage: Do not use StandardCharsets.UTF_8. It's only support on API level 19+. r=ahunt
MozReview-Commit-ID: 5wvR4dgiPoJ
2016-08-18 18:15:15 +02:00
Sebastian Kaspari a8985c694a Bug 1290014 - ResizingProcessor: Do not resize icons loaded from memory. r=ahunt,Grisha
Icons loaded from memory have already gone through the resizing process and have either
the requested size or are resized up to a limit. Without this check a small icon
could be resized multiple times until it matches the target size; even though the icon
is too small. In addition to that we would recycle a bitmap that might still be in use.

MozReview-Commit-ID: K51aBhBcAnj
2016-08-18 15:52:20 +02:00
Sebastian Kaspari cbae3bcebc 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
2016-08-17 18:08:51 +02:00
Sebastian Kaspari 1d4660f3bc Bug 1290014 - Move decoders from the favicons to the icons package. r=ahunt,Grisha
The decoders are used by the code in the icons package exclusively. Let's move it
to the new package now.

MozReview-Commit-ID: AAybHpeA71V
2016-08-17 17:36:42 +02:00
Sebastian Kaspari d24e41ddb2 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
2016-08-17 17:27:06 +02:00
Ryan VanderMeulen a1e704ac46 Merge m-c to autoland. a=merge 2016-08-31 22:34:02 -04:00
Makoto Kato e86bf6d5e0 Bug 1299400 - Remove WebActivities Android Backend. r=sebastian
WebActivities API has removed by bug 1284455, so we should remove Android backend.

MozReview-Commit-ID: IOYs1bM2u06
2016-08-31 17:16:22 +09:00
Michael Kaply c709a7fd24 Bug 1299162 - Pass preferences.json to browser.js to avoid disk read. r=rnewman 2016-08-31 15:54:23 -05:00
Michael Kaply e21226c3b2 Bug 1299350 - If there is a homepage, show it at the end of the wizard. r=rnewman 2016-08-31 15:48:13 -05:00
Sebastian Hengst 2d85abbe96 Backed out changeset c60fb4ea2674 (bug 1299162) for Android 4.0 build bustage. r=backout 2016-08-31 18:46:01 +02:00
Michael Kaply 4f73c41765 Bug 1299162 - Pass preferences.json to browser.js to avoid disk read. r=rnewman 2016-08-31 11:17:21 -05:00
Sebastian Kaspari 71e2051ab1 Bug 1290014 - Use new icon framework in UI code. r=ahunt,Grisha
This patch replaces the old favicon code with the new icon code
in the UI code.

MozReview-Commit-ID: 2YdDpYUhb0M
2016-08-16 11:44:21 +02:00
Sebastian Kaspari e67fc66d2d 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
2016-08-16 11:36:22 +02:00
Ryan VanderMeulen b098a1a45d Merge autoland to m-c. a=merge 2016-08-31 09:52:43 -04:00
Wes Kocher e139b4ce20 Merge m-c to inbound a=merge 2016-08-30 18:14:57 -07:00
Andrzej Hunt 8ac0e9a3a8 Bug 1297127 - show ActivityStream as a HomePanel, replacing TopSites r=sebastian
To avoid having to mess around with the HomePanel configuration machinery, we simply
override the class being loaded for top_sites in HomeAdapter: this is hacky, but
provides a simple temporary solution for showing ActivityStream as a homepanel.

MozReview-Commit-ID: Ga9qUTP3xxA
2016-08-30 12:18:57 -07:00
Andrzej Hunt e811d341cd Bug 1297127 - add ActivityStream.isHomePanel() fake-pref for switching from HomeScreen to HomePanel r=sebastian
This will allow us to more easily switch ActivityStream from being a HomePanel to being a complete
HomePager replacement - this could potentially be extended to read from a preference, but hardcoding
is probably sufficient for now.

MozReview-Commit-ID: HxQg5bOTmdh
2016-08-30 12:18:36 -07:00
Andrzej Hunt e4829fe1b9 Bug 1297127 - Move HomeScreen specific code into ActivityStreamHomeScreen r=sebastian
We can keep the general ActivityStream code in the ActivityStream class/widget, allowing
reuse inside a HomePanel (for use in the HomePager). ActivityStreamHomeScreen then
wraps this for use as a HomePager replacement (which is the long-term goal for AS).

MozReview-Commit-ID: 1aWBh1YyARY
2016-08-29 15:33:32 -07:00
Jim Chen 16a8900d5d Bug 1298161 - d. Use application context to prevent BrowserApp leaks; r=sebastian
Use application context for delayed callbacks to prevent leaking the
BrowserApp instance. Also, use application context for accessing
Distribution, to prevent leaking old BrowserApp instances, and to avoid
using a destroyed Context. Finally, attach AudioFocusAgent to the
application context instead of the BrowserApp context to avoid leaking
BrowserApp.
2016-08-30 14:49:38 -04:00
Jim Chen 536ca723f8 Bug 1298161 - b. Fix BrowserApp leaks in event registration; r=sebastian
Unregister certain events in BrowserApp and GeckoApp to prevent
BrowserApp from leaking. Also, properly unregister event listeners in
PageActionLayout to prevent BrowserApp leaks, because
PageActionLayout.onDestroy never got called before.
2016-08-30 14:49:38 -04:00
Jim Chen 6a4c58908e Bug 1298161 - a. Fix BrowserApp leak in GeckoAccessibility; r=sebastian
Move registration of AccessibilityManager listeners to GeckoApplication,
and change all Context references to the application context, so that
GeckoAccessibility doesn't leak old BrowserApp instances as new
BrowserApp instances are created.
2016-08-30 14:49:38 -04:00
James Cheng 80dfa7ac81 Bug 1299386 - Fix checkstyle error in RemoteManager.java. r=jolin
MozReview-Commit-ID: 4Vh5Kd9YJN6
2016-08-31 14:34:43 +08:00
Wes Kocher 49b7e19e6a Merge m-c to autoland, a=merge 2016-08-30 18:15:33 -07:00
Andrzej Hunt a051e6e6c5 Bug 1293790 - Add indicator to topsites pager r=sebastian
MozReview-Commit-ID: 4jhRga5FWLi
2016-08-24 11:25:49 -07:00
Andrzej Hunt 04ffb28a3b Bug 1293790 - Increase separation between circles in indicator r=sebastian
MozReview-Commit-ID: 5Ovn3wi4qAr
2016-08-24 11:23:27 -07:00
Andrzej Hunt 8679f3af08 Bug 1293790 - Import CirclePageIndicator from ViewPagerIndicator library r=sebastian
We only require the CirclePageIndicator, hence I've only imported that portion
of the library. The two resource files have been trimmed to only include values
that are relevant to the CirclepageIndicator.

MozReview-Commit-ID: EPyIf7OJHpe
2016-08-30 09:42:59 -07:00
Andrzej Hunt cf6bd2a31e Bug 1293790 - Implement Paged TopSites View r=sebastian
This uses a ViewPager, with each page containing a grid managed by a separate RecyclerView.
One main adapter splits the data into appropriately sized groups for each RecyclerView
to handle.

MozReview-Commit-ID: 9XGuw0NckD4
2016-08-30 09:59:08 -07:00
Andrzej Hunt affe6ec5cd Bug 1293790 - Pre: Extract UpdateViewFaviconLoadedListener to allow reuse r=sebastian
MozReview-Commit-ID: 6ud4pRemi0s
2016-08-17 10:57:08 -07:00
Andrzej Hunt 61b4b27ff7 Bug 1293790 - Pre: extract CardView corner workaround into FilledCardView r=sebastian
We'll need this workaround for all the other CardView's we use.

MozReview-Commit-ID: 1B96Y2ZNKrY
2016-08-23 13:35:46 -07:00
Andrzej Hunt 822242f13f Bug 1293790 - Pre: implement AS topsites access r=grisha
MozReview-Commit-ID: 1z30naErciE
2016-08-23 14:04:01 -07:00
Andrzej Hunt ae4cd30a2f Bug 1293790 - Implement getPlainTopSites query r=grisha
ActivityStream's topsites won't support pinned sites for now,
this allows us to use a simpler query that only retrieves topsites
without the complexity of a temporary table to merge pinned sites.

This results in some duplication between the old and new topsites
queries, however eventually we're going to want to get rid
of one of these queries (we don't know whether ActivityStream will
support pinned sites in the future yet, so we definitely want to keep
the pinned query for now - it's also needed for the old topsites panel).

MozReview-Commit-ID: AQyzXHGl3Cf
2016-08-25 12:05:22 -07:00
James Cheng 831bf040cc Bug 1297969 - Extract class RemoteManager from CodecProxy.java to RemoteManager.java for further usage. r=jolin
MozReview-Commit-ID: Hqm6ZEzv3v1
2016-08-25 15:16:50 +08:00
James Willcox 157adc1d28 Bug 1296298 - Don't try to add a presentation surface unless Gecko is running r=jchen 2016-08-30 13:26:37 -05:00
James Willcox cfea878258 Bug 1294823 - Don't use fullscreen mode for the HLS video view on Android r=sebastian 2016-08-30 13:26:37 -05:00
Andrzej Hunt ccff388a78 Bug 1293595 - Make doorhanger overlay visible by default, and retrieve it during onCreate r=sebastian
Retrieving the doorhanger during onAttachedToWindow seems to be unreliable, resulting in NPE's when
it doesn't work (the only logical explanation would be that onCreate hasn't been called yet, meaning
we don't have a layout yet). We should instead findViewById() it during onCreate, where the layout
is guaranteed to exist.

Since we show the overlay on all devices now, we can make it visible by default, whereas in the past
we had a condition to only enable it on > 2.3 devices.

MozReview-Commit-ID: 1DGVAPSX0mi
2016-08-19 10:24:15 -07:00
Grigory Kruglov e96df826ef Bug 1299939 - Use SafeIntent throughout BrowserApp and delegates r=rnewman
MozReview-Commit-ID: gW2gXVWji1
2016-09-01 18:25:05 -07:00
Grigory Kruglov 32d929eea0 Bug 1299939 - Use SafeIntent to handle incoming intents in the LauncherActivity r=rnewman
MozReview-Commit-ID: 49zDp3A4dnG
2016-09-01 16:35:59 -07:00
Grigory Kruglov d01eca07bb Bug 1294438 - Do not store metadata for private tabs r=sebastian
MozReview-Commit-ID: 6afE9DWmyK7
2016-08-31 23:02:23 -07:00
Ryan VanderMeulen cd847b3185 Backed out changeset 4542cf942dab (bug 1297969) for Android checkstyle bustage. 2016-08-29 21:32:38 -04:00