Commit Graph

13460 Commits

Author SHA1 Message Date
Nevin Chen
5798b572bc Bug 1394356 - Temporary remove add to home screen for Android O. r=jwu
MozReview-Commit-ID: 8Uz9QM7i4SD

--HG--
extra : rebase_source : 3db8d29843af5b0b720b9d15dc7e71784703c679
2017-08-29 17:53:56 +08:00
Chenxia Liu
bebcff6a7d Bug 1393700 - Add test for parsing JSON response. r=mcomella
MozReview-Commit-ID: KTy3Mltrfg9

--HG--
extra : rebase_source : 3b2f7a9f7ec2045dc46b1c5c04a157bb23eebdf7
2017-08-28 16:40:39 -07:00
Wes Kocher
de530c1ea6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 5c1Pgm4aVKe
2017-08-29 16:17:50 -07:00
Sebastian Hengst
558aede67b merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-08-29 20:36:12 +02:00
James Willcox
92360654c3 Bug 1394552 - UI improvements for Custom Tabs launched from PWA r=esawin
MozReview-Commit-ID: LVAQN9Tp9DN
2017-08-29 10:31:41 -05:00
James Willcox
98ff44e853 Bug 1353868 - Split out web app manifest handling and fix scope handling r=esawin
MozReview-Commit-ID: 7MpeqitYRW8
2017-08-29 10:31:41 -05:00
Grigory Kruglov
0074183cb7 Bug 1388884 - Do not delete bookmark tombstones r=rnewman
As implemented, this means we might upload tombstones for never-synced
bookmarks. This _should_ be harmless.

MozReview-Commit-ID: DZx9yWDs1ie

--HG--
extra : rebase_source : d4abf10bded3f6ab39d13f0152cf981cd9fe4df7
2017-08-29 14:01:14 -04:00
Chenxia Liu
6e3e4f6575 Bug 1394895 - Update Pocket API endpoint. r=mcomella
MozReview-Commit-ID: 3CYfv0Pf4Zk

--HG--
extra : rebase_source : 631029cc475164ce299047ac51f91454d41e09fc
2017-08-29 10:57:56 -07:00
Sebastian Kaspari
7956b9a468 Bug 1324028 - IconGenerator: Do not add alpha channel to colors of generated icons. r=mcomella
MozReview-Commit-ID: H4qaSSOlMxT

--HG--
extra : rebase_source : 3ca495485c2a1a186d976f548102265b1e440675
2017-08-08 17:36:50 +02:00
Jim Chen
056a21d97e Bug 1393128 - 2. Support showing Snackbars globally; r=sebastian
Right now we have two Snackbar handlers in GeckoApp and
GeckoPreferences, respectively. This patch combines the two handlers
into one inside GeckoApplication, and lets us display Snackbars in other
Activities like custom tabs and PWA.

MozReview-Commit-ID: Iu6p2VNnVVC

--HG--
extra : rebase_source : 7fa018a3efd251c2e91aeea31e9ca85d872ebe59
2017-08-28 23:56:43 -04:00
Jim Chen
79f5ef0e9e Bug 1393128 - 1. Make IntentHelper available globally; r=nechen,sebastian
Instead of initializing IntentHelper in GeckoApp, initialize it in
GeckoApplication, and make it available globally. This will let custom
tabs / PWA use IntentHelper-provided services.

MozReview-Commit-ID: Icedph6KG4u

--HG--
extra : rebase_source : 819c10edce4fc4f6a46e8cfba34a9fd4afa35e86
2017-08-28 23:56:43 -04:00
Jing-wei Wu
1da86e673f Bug 1390735 - Support tint color for page action button. r=nechen,sebastian,walkingice
Use tint to provide two colors for page action icon in normal/private mode.

We would not tint icons that already have their own colors(for example: ic_readermode_on.png or casting_active.png)
or are came from 3-party addons.

MozReview-Commit-ID: 8uuMucKGLw5

--HG--
extra : rebase_source : 7d213e2b96fab8389b2b2c69e1fdb8ecfe569f20
extra : intermediate-source : ee7c5cecab194ae54317d77de05b2e2f84e1122e
extra : source : a97a2b9700a27e944691536adec6112451ff1f24
2017-08-25 16:24:18 +08:00
Jing-wei Wu
d0e85b25fd Bug 1394310 - Change fennec primary color from orange to blue. r=nechen,sebastian,walkingice
MozReview-Commit-ID: 3K34WEtpcqz

--HG--
extra : rebase_source : f468f50c388673fd8465e5e7077787509b85b3db
2017-08-28 11:01:42 +08:00
Andrzej Hunt
8ac1727d95 Bug 1324028 - Use edge colour as dominant favicon color if consistent. r=mcomella
If all edges of a favicon are the same colour, we should use that
as the background colour too - that way the favicon no longer appears
distinct from the background. We still fall back to the dominant colour
in most cases, however this improves favicon appearance for some websites.

MozReview-Commit-ID: 6xkgXxHHla2

--HG--
extra : rebase_source : c33807fa2b972b5d4d4f44e8e321883b8880f480
2016-12-10 20:33:34 -08:00
Sebastian Hengst
49e418c64a Backed out changeset 99e579176288 (bug 1324028) for failing 'test' suite and on request from sebastian. r=backout 2017-08-28 16:48:57 +02:00
Sebastian Hengst
b204b8dc7b Backed out changeset 73d4ed6f999e (bug 1324028) 2017-08-28 16:48:21 +02:00
Sebastian Kaspari
1944f42ddb Bug 1363520 - Run CleanupAction from DownloadContentService. r=Grisha
MozReview-Commit-ID: FvnIYStD25u

--HG--
extra : rebase_source : aab8c133b3d73e86fc0c0f2200bc1abe17eab2d8
2017-05-10 09:59:31 -07:00
Sebastian Kaspari
0697689ba6 Bug 1324028 - IconGenerator: Do not add alpha channel to colors of generated icons. r=mcomella
MozReview-Commit-ID: H4qaSSOlMxT

--HG--
extra : rebase_source : 379161dd8545bdc3659eb8623ff57b8b6b488a2e
2017-08-08 17:36:50 +02:00
Andrzej Hunt
6d194e8709 Bug 1324028 - Use edge colour as dominant favicon color if consistent. r=mcomella
If all edges of a favicon are the same colour, we should use that
as the background colour too - that way the favicon no longer appears
distinct from the background. We still fall back to the dominant colour
in most cases, however this improves favicon appearance for some websites.

MozReview-Commit-ID: 6xkgXxHHla2

--HG--
extra : rebase_source : c33807fa2b972b5d4d4f44e8e321883b8880f480
2016-12-10 20:33:34 -08:00
Jing-wei Wu
61419e0e10 Bug 1389164 - Support new lightweight theme design on Photon. r=nechen,walkingice
We use an extra mask for url bar to make url text more clear.

MozReview-Commit-ID: D4ngrRdAof6

--HG--
extra : rebase_source : 4654058e6d966a033c816c3b47140ac8f607d7ed
extra : source : 0608e38913d521899ecc3d907167984ef22816cd
2017-08-28 11:41:20 +08:00
Chenxia Liu
1e2b92380e Bug 1380808 - Add live Pocket content. r=mcomella
MozReview-Commit-ID: CRfYcmHuUgl

--HG--
extra : rebase_source : e7a955fb5dab35d7c07599e5aac76a4669672d77
2017-08-23 14:55:46 -07:00
Chenxia Liu
29f5602d05 Bug 1380808 - Add Pocket to new tab with placeholders. r=mcomella
MozReview-Commit-ID: 7yqmBF1qlLR

--HG--
rename : mobile/android/app/src/main/res/drawable/ic_as_bookmarked.xml => mobile/android/app/src/main/res/drawable/ic_as_trending.xml
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/HighlightsTitleRow.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/StreamTitleRow.java
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/HighlightItemRow.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/WebpageItemRow.java
extra : rebase_source : 4db18bd50d8a56201531fd464ed0cae5cebf164d
2017-08-17 19:05:44 -07:00
Chenxia Liu
c644d4e4dc Bug 1380808 - WelcomePanel -> WelcomePanelRow. r=mcomella
MozReview-Commit-ID: 5FEY361ozbQ

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/WelcomePanel.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/WelcomePanelRow.java
extra : rebase_source : 28270ea9115b8580917320eec71c369f84a56f20
2017-08-22 14:45:30 -07:00
Chenxia Liu
bc9dfc066f Bug 1380808 - TopPanel -> TopPanelRow. r=mcomella
MozReview-Commit-ID: 69p6FfdJh4P

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/TopPanel.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/TopPanelRow.java
extra : rebase_source : 4b68a1455ace64def8a35d7abf6b4910b6a382a1
2017-08-22 14:43:08 -07:00
Chenxia Liu
a626a676df Bug 1380808 - HighlightsTitle -> HighlightsTitleRow. r=mcomella
MozReview-Commit-ID: J814r7yh3xG

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/HighlightsTitle.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/HighlightsTitleRow.java
extra : rebase_source : 97ae0cacf97d52ed62a191bfb0fee99093378980
2017-08-22 14:40:44 -07:00
Chenxia Liu
bdc6139644 Bug 1380808 - HighlightItem -> HighlightItemRow. r=mcomella
MozReview-Commit-ID: GM2tWWPh3t1

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/StreamHighlightItemContextMenuListener.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/StreamHighlightItemRowContextMenuListener.java
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/HighlightItem.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/HighlightItemRow.java
extra : rebase_source : 86957d362e73f353cfd52f8c141dd500e7d3bee6
2017-08-22 14:39:54 -07:00
Chenxia Liu
bf08abec1c Bug 1380808 - Rename some "Item" classes to be more descriptive. r=mcomella
MozReview-Commit-ID: GlPbKuQPr8g

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/model/Item.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/model/WebpageModel.java
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/StreamItem.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/StreamViewHolder.java
extra : rebase_source : 851810edc353ec9f855aaf303752be49d8cf7e4b
2017-08-16 18:38:50 -07:00
Chenxia Liu
2f49040f78 Bug 1380808 - Use a single data model, stop using resource ids as viewTypes. r=mcomella
MozReview-Commit-ID: IOcbCi6swo7

MozReview-Commit-ID: IGBWlzAD6N9

--HG--
extra : rebase_source : 95eafd4363db928d53a11989c248f948547ba8c0
extra : intermediate-source : a286612348697f68f38f7531c8e068123e5c96dd
extra : source : 7a6aef8f1863bef8a221f63c6422f28cf3c8aab4
2017-08-16 14:10:43 -07:00
Jan Henning
19fcb48e72 Bug 1390140 - Account for bookmark ID being <null> when populating BrowserSearch's HomeContextMenuInfo. r=Grisha
The combined history view returns a bookmark ID of <null> for items that aren't a bookmark. Calling cursor.getInt() silently turns this into an ID of 0, which doesn't play well with the rest of our code that assumes that the bookmark ID for items that aren't in fact bookmarks is -1.

When pressing "Remove" on a search history result, this means that we then end up trying to remove bookmark 0, i.e. the root "bookmark". Luckily this attempt doesn't succeed, but unfortunately still manages to crash the browser along the way.

MozReview-Commit-ID: FZk4cI2EDAE

--HG--
extra : rebase_source : c35a8c3eabeb8607392e073df0d697585e78c64c
2017-08-23 21:13:35 +02:00
Ryan VanderMeulen
3d0158833d Merge autoland to m-c. a=merge 2017-08-24 20:20:08 -04:00
Nevin Chen
f7e6a4705d Bug 1392545 - Add user attribute for Pocket installation. r=maliu
MozReview-Commit-ID: Bb6miysZ9fQ

--HG--
extra : rebase_source : d1ee4294d77403964f7d1d937ad86c6a23e4cbcc
2017-08-22 17:03:47 +08:00
Nevin Chen
af32fa6a88 Bug 1392545 - Extract package name. r=maliu
MozReview-Commit-ID: IW0wi0DcdUM

--HG--
extra : rebase_source : 3d94d28e0d2eb21f57d7d78c4c99289d2a1c843a
2017-08-22 17:06:29 +08:00
Julian_Chu
6144431572 Bug 1366672 - part6: Clean up ToolbarProgressView r=jwu
We invovled another implementation. We can get it back from repository
easily for any reason, so remove it for now.

MozReview-Commit-ID: c4H8wW41Dr

--HG--
extra : rebase_source : 907bb0681f5e12e6477d41b17984a1d365fc68a6
2017-08-15 13:25:19 +08:00
Julian_Chu
5e19b97442 Bug 1366672 - Part3: use AnimatedProgressBar to replace ProgressView r=jwu,sebastian
MozReview-Commit-ID: KTr4ce5UvIq

--HG--
extra : rebase_source : feb2232eefc431fa10d96ebcd64f6490cb329e44
2017-08-05 13:59:35 +08:00
Julian_Chu
96d96fa63c Bug 1366672 - part2: Add new custom widgets r=jwu,sebastian
* DrawableWrapper - a class similiar to DrawableWrapper in Android v23.
* ShiftDrawable - provide shif-animation for its child drawable
* AnimatedProgressBar - ProgressBar.setProgress(int, boolean) involved
    since API v24. This is an implementation for animation.

MozReview-Commit-ID: HjLAXXQdZKO

--HG--
extra : rebase_source : fbe4b6252fa41c337875ee28e8e998d6ef64a394
2017-08-05 13:53:44 +08:00
Julian_Chu
55fffe3b0a Bug 1366672 - part1: add ThemedProgressBar r=jwu,sebastian
We are going to involve new implementation for page loading indicator by
ProgressBar. Add ThemedProgressBar for Private Mode.

MozReview-Commit-ID: 4Bj9mJtlHPM

--HG--
extra : rebase_source : 224aa8acb34ad3956fe6270f119685d5119bedd2
2017-08-05 13:30:29 +08:00
Chenxia Liu
a1a7533bc4 Bug 1393321 - Actually define MOZ_ANDROID_POCKET. r=mcomella
MozReview-Commit-ID: BoY1KCEDYsY

--HG--
extra : rebase_source : 70d573989b8810e91525295aa10a9832e24f71cd
2017-08-23 18:51:51 -07:00
Michael Comella
c7cda7bd82 Bug 1315201: Dismiss -> Remove in AS context menu. r=liuche
MozReview-Commit-ID: 5avMlzXbGDk

--HG--
extra : rebase_source : cb553cff3c4928fb40dea359a1604832718b793d
2017-08-23 12:01:52 -07:00
Michael Comella
78d8dc1a5f Bug 1315201: Add activity_stream_welcome_dismiss str. r=liuche
activity_stream_dismiss was being used to dismiss the welcome screen before but
this string is intended to be used in a different location for a different
purpose and thus should never have been set to the same string.

It's necessary to change the String here so we can modify the contents of the
activity_stream_dismiss String.

MozReview-Commit-ID: 87zaHQ5TJjN

--HG--
extra : rebase_source : c20167ccb9cdba1350b81094cb1a4ffea7b842a9
2017-08-23 11:59:43 -07:00
Michael Comella
8e0fdb8069 Bug 1315201: Override AS context menu a11y title. r=sebastian
MozReview-Commit-ID: HeX7hTpVtEP

--HG--
extra : rebase_source : 8d3b24fa3654102ad421e8fcc73fcede0dc85eca
2017-08-21 18:13:34 -07:00
Michael Comella
abecf0c16f Bug 1315201: Add long-click support to Highlights for Talkback users. r=sebastian
The menu button is hard to find so we decided to add support for long-click on
the whole row, which is consistent with top sites.

MozReview-Commit-ID: 1Wqa5r9ezWU

--HG--
extra : rebase_source : 88236273f6e1d26c6e6ef770b281f814f9c0b66e
2017-08-21 15:48:35 -07:00
Michael Comella
b0a7f534f5 Bug 1315201: Do not focus BottomSheetDialog in Talkback. r=sebastian
MozReview-Commit-ID: 5ZlKzq46tXC

--HG--
extra : rebase_source : 4c02c8b477d071ff8014c0b9ec6863a996bc2c82
2017-08-21 14:40:08 -07:00
Michael Comella
1d5a0f8a83 Bug 1315201: Do not focus tap-to-dismiss BottomSheetDialog view with Talkback. r=sebastian
MozReview-Commit-ID: CJ73kKDxctb

--HG--
extra : rebase_source : 60f757b5f890d3e8fce71adad959123b51122a16
2017-08-21 14:09:28 -07:00
Michael Comella
17e3673aaa Bug 1315201: Decrease visibility of BottomSheetContextMenu fields. r=sebastian
MozReview-Commit-ID: 259OIlNQI8r

--HG--
extra : rebase_source : 36f2b2c4ec1f08836b0588271a3cb10cf85d381a
2017-08-16 13:50:53 -07:00
James Willcox
8087171791 Bug 1393188 - Go back in history when back button pressed if able in PWA r=droeh
MozReview-Commit-ID: 3iyOTEIKe46

--HG--
extra : rebase_source : e40e9000b27e209a89e4085c785c793e7365f657
2017-08-23 14:42:27 -05:00
Michael Comella
c935e07b72 Bug 1390203: Only get highlight images on wifi. r=sebastian
MozReview-Commit-ID: FtSDZ6Yu5Ql

--HG--
extra : rebase_source : 186637c333da09e2619338d0ad3135418694d50d
2017-08-22 10:59:12 -07:00
Michael Comella
96a0fd83cc Bug 1390356 - review: getMetadataSlow -> getImageUrl in Item interface. r=mcomella
MozReview-Commit-ID: 8pFmBQf4fzp

--HG--
extra : rebase_source : 6a004bb45a1d88d8f0c028a5304042a31eca52d3
2017-08-23 13:43:59 -07:00
Michael Comella
83a4f5d443 Bug 1390356: Use StreamOverridablePageIconLayout in BottomSheetContextMenu. r=liuche
MozReview-Commit-ID: FPM8WUtVviM

--HG--
extra : rebase_source : a0ce0cb638a985a7c41ecac89014e9b4e22c70a4
2017-08-15 14:21:31 -07:00
Michael Comella
7ade444f47 Bug 1390356: StreamPageIconLayout -> StreamOverridablePageIconLayout. r=liuche
Now it doesn't imply it's used everywhere for page icons in activity stream.

MozReview-Commit-ID: F7Z2HrhHsss

--HG--
rename : mobile/android/app/src/main/res/layout/activity_stream_page_icon_layout.xml => mobile/android/app/src/main/res/layout/activity_stream_overridable_page_icon_layout.xml
rename : mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/StreamPageIconLayout.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/StreamOverridablePageIconLayout.java
extra : rebase_source : 8e5d6fe665f315da80c11a53fe5a63b85fa45c98
2017-08-15 13:33:09 -07:00
Nevin Chen
6f7bec69d1 Bug 1392542 - Add a new trigger for App Start. r=maliu
MozReview-Commit-ID: GT8C5HhR6rS

--HG--
extra : rebase_source : 3b0ade2ba5ba72550d3f19ec2105c9cb2ee8846c
2017-08-22 16:51:12 +08:00