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

21106 Коммитов

Автор SHA1 Сообщение Дата
Jim Chen cf1e61cb8d 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
Jim Chen 8f665ca47e Bug 1291383 - Dispatch Profile:Create event when creating profile directory; r=nalexander
Dispatch a Profile:Create event when creating a profile directory, so we
can use it to initialize distributions.
2016-09-02 16:49:11 -04:00
Jim Chen d7ccc9771a Bug 1291383 - Let Java code dispatch events through EventDispatcher; r=sebastian
Add dispatch() methods to EventDispatcher that allow Java code to
dispatch events to Bundle listeners (currently either UI or background
thread listeners).
2016-09-02 16:49:11 -04: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
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
James Willcox a34bf3d3ee Bug 1299622 - Delete bogus browser[pending] CSS rule for Fennec r=sebastian a=cherry-pick to fix Fennec tab restore
MozReview-Commit-ID: KdSBXbfYTn1

--HG--
extra : amend_source : d068c0e65f0bad6cd7a0247d09c35d43dbc2ee4f
extra : transplant_source : 1%B4%11vV%B2%D8d%7F%12%B9%9D%C5%EATa%C9%3D%C9%B0
2016-09-01 09:26:25 -05:00
Ryan VanderMeulen 3611a7607d Merge inbound to m-c. a=merge 2016-08-31 22:33:17 -04:00
Kannan Vijayan e7cae3eb49 Bug 1292639 - Ask user permission before allowing navigator.publishServer. r=mconley r=ehsan r=sebastian 2016-08-31 18:14:24 -04:00
Michael Kaply 42530c3be1 Bug 1299162 - Pass preferences.json to browser.js to avoid disk read. r=rnewman 2016-08-31 15:54:23 -05:00
Michael Kaply 480b0a40c7 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 77b5bc12c3 Backed out changeset c60fb4ea2674 (bug 1299162) for Android 4.0 build bustage. r=backout 2016-08-31 18:46:01 +02:00
Ryan VanderMeulen d9f7626454 Merge m-c to inbound. a=merge 2016-09-01 12:15:35 -04:00
James Willcox e942c4cc04 Bug 1299622 - Delete bogus browser[pending] CSS rule for Fennec r=sebastian 2016-09-01 09:43:56 -05:00
Michael Kaply 25a478327c Bug 1299162 - Pass preferences.json to browser.js to avoid disk read. r=rnewman 2016-08-31 11:17:21 -05:00
Sebastian Kaspari 95fd11b02c Bug 1290014 - DiskStorage: Do not use StandardCharsets.UTF_8. It's only support on API level 19+. r=ahunt
MozReview-Commit-ID: 5wvR4dgiPoJ

--HG--
extra : rebase_source : 863ca9ca14eb7647d2dac314fe4b45deb87da0e6
2016-08-18 18:15:15 +02:00
Sebastian Kaspari daaeb912aa 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

--HG--
extra : rebase_source : 771c0a88b69e5d3688293ddf27955e01717c8931
2016-08-18 15:52:20 +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 2a9ce08987 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

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/favicons/decoders/FaviconDecoder.java => mobile/android/base/java/org/mozilla/gecko/icons/decoders/FaviconDecoder.java
rename : mobile/android/base/java/org/mozilla/gecko/favicons/decoders/ICODecoder.java => mobile/android/base/java/org/mozilla/gecko/icons/decoders/ICODecoder.java
rename : mobile/android/base/java/org/mozilla/gecko/favicons/decoders/IconDirectoryEntry.java => mobile/android/base/java/org/mozilla/gecko/icons/decoders/IconDirectoryEntry.java
rename : mobile/android/base/java/org/mozilla/gecko/favicons/decoders/LoadFaviconResult.java => mobile/android/base/java/org/mozilla/gecko/icons/decoders/LoadFaviconResult.java
extra : rebase_source : 3166604d46fcd4736404cc1aa69a98dfbd736072
2016-08-17 17:36:42 +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
Rob Wu 73811a0f67 Bug 1298716 - Unify use of ExtensionTestUtils.loadExtension r=billm
MozReview-Commit-ID: DT6rx6KYODl

--HG--
extra : rebase_source : b37924fe255993006fc9a7dfa115d0527d6d0e10
2016-08-28 17:22:03 -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
Ryan VanderMeulen f2ae8f9bce Merge m-c to autoland. a=merge 2016-08-31 22:34:02 -04:00
Makoto Kato 650d82dba8 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

--HG--
extra : rebase_source : c6c701159817fe8595c20205c2fc3a2253ffd39f
2016-08-31 17:16:22 +09:00
Sebastian Kaspari b8f20b1a60 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

--HG--
extra : rebase_source : 1c07eebdd4d9d873040a60a19b2aa30efc712cb7
2016-08-16 11:44:21 +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
Dylan Roeh d056325bfe Bug 1293299 - Create a class, GeckoViewFragment, which passes GeckoView state between different activities. r=jchen 2016-08-09 21:00:24 -05:00
Ryan VanderMeulen 435c0addca Merge autoland to m-c. a=merge 2016-08-31 09:52:43 -04:00
Wes Kocher 73f495435e Merge m-c to inbound a=merge 2016-08-30 18:14:57 -07:00
Wes Kocher 6536590412 Merge fx-team to central, a=merge 2016-08-30 17:51:54 -07:00
Andrzej Hunt 6651f424e4 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

--HG--
extra : rebase_source : 004e5648ccf74d70f56e66c3ae228bb8071e9756
extra : source : e2d2895a0e678b58336f66fdae01efcd6264954e
2016-08-30 12:18:57 -07:00
Andrzej Hunt 7baca5adbe 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

--HG--
extra : rebase_source : 99048a0477214c2030cd9072a3e50bb041a18fff
extra : source : 41e5922460ccb2ded3d4e00975eb45f15c1ac4a0
2016-08-30 12:18:36 -07:00
Andrzej Hunt 1eb30f2d16 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

--HG--
extra : rebase_source : 8101f445b2aa106a2e06afc097247e849338b95e
extra : source : 155d6001460854ebff20bd1287fcb11c055cea66
2016-08-29 15:33:32 -07:00
Jim Chen d2272de7cb 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 e6e2011d34 Bug 1298161 - c. Properly remove pref handler in NativePanZoomController; r=rbarker
Properly remove pref handler on destroy to prevent leaking BrowserApp.
2016-08-30 14:49:38 -04:00
Jim Chen 9fe8d04e65 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 b3038be914 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
Sebastian Kaspari c9c4bd2110 Bug 1296712 - Move tab strip resources into main resource directory. r=ahunt
MozReview-Commit-ID: KBq6XPEufPj

--HG--
rename : mobile/android/base/resources/color-large-v11/tab_new_tab_strip_colors.xml => mobile/android/base/resources/color/tab_new_tab_strip_colors.xml
rename : mobile/android/base/resources/color-large-v11/tab_strip_item_bg.xml => mobile/android/base/resources/color/tab_strip_item_bg.xml
rename : mobile/android/base/resources/color-large-v11/tab_strip_item_title.xml => mobile/android/base/resources/color/tab_strip_item_title.xml
rename : mobile/android/base/resources/color-large-v11/tabs_counter_text_color.xml => mobile/android/base/resources/color/tabs_counter_text_color.xml
rename : mobile/android/base/resources/drawable-large-v11/tab_strip_button.xml => mobile/android/base/resources/drawable/tab_strip_button.xml
rename : mobile/android/base/resources/drawable-large-v11/tab_strip_divider.xml => mobile/android/base/resources/drawable/tab_strip_divider.xml
rename : mobile/android/base/resources/layout-large-v11/tab_strip.xml => mobile/android/base/resources/layout/tab_strip.xml
rename : mobile/android/base/resources/layout-large-v11/tab_strip_inner.xml => mobile/android/base/resources/layout/tab_strip_inner.xml
rename : mobile/android/base/resources/layout-large-v11/tab_strip_item.xml => mobile/android/base/resources/layout/tab_strip_item.xml
rename : mobile/android/base/resources/layout-large-v11/tab_strip_item_view.xml => mobile/android/base/resources/layout/tab_strip_item_view.xml
extra : rebase_source : 6d4e5fe40d27d43db10956c4491c976c975cea15
2016-08-25 12:34:17 +02:00
Sebastian Kaspari 69f7e10710 Bug 1293650 - NotificationHelper: Create broadcast intent instead of activity intent. r=ahunt
The patches in bug 1075476 refactored our notificaiton code to use broadcasts instead of
bringing the app to the front. However notification actions created via Notifications.jsm
still used activity intents (without any activity listening).

MozReview-Commit-ID: 7ZFMkgBitqw

--HG--
extra : rebase_source : 624538827df97f05657aaf99bc935c9fa7c5d785
2016-08-30 16:52:47 +02:00
James Cheng 42a68e4966 Bug 1299386 - Fix checkstyle error in RemoteManager.java. r=jolin
MozReview-Commit-ID: 4Vh5Kd9YJN6

--HG--
extra : rebase_source : b6c51724c5b7aed8ef5b9b57f737c44e41caab4c
2016-08-31 14:34:43 +08:00
Wes Kocher 81db6ce036 Merge m-c to autoland, a=merge 2016-08-30 18:15:33 -07:00