Commit Graph

13483 Commits

Author SHA1 Message Date
Jing-wei Wu
aa15879831 Bug 1393477 - Resize favicon shown in doorhanger. r=nechen
MozReview-Commit-ID: I8vFxePDOeF

--HG--
extra : rebase_source : 3100d3aa56f343e010d92998f29440366031ea6e
2017-08-31 16:29:13 +08:00
davidmurray
f3d7d85165 Bug 1391355 - add force reload support via keyboard r=JanH
MozReview-Commit-ID: 9s3paEoZueW

--HG--
extra : rebase_source : a5ea6aed84538cfbb7d8c91370254ba5bbc58cd6
2017-09-02 14:20:44 -07:00
Chenxia Liu
44dbfc06fd Bug 1396407 - [lint] Fix AlertDialog.Builder.setView call to support pre-r21. r=liuche
MozReview-Commit-ID: IDJY3sDU9g

--HG--
extra : rebase_source : 6aefc2683fbe9a5d6ce38e551539eb5c07420db4
2017-09-03 10:03:10 -07:00
Jim Chen
eec1c8ca82 Bug 1378410 - 2. Preprocess generated bindings; r=nalexander
Preprocess the generated bindings to support the new BuildFlag
annotation, so that we can compare bindings despite build flag changes.

The build system preprocessor is used because it's easy-to-use and
invoking the actual C++ preprocessor would require much more work.
However, as a result, we use a MOZ_PREPROCESSOR macro to make the build
system preprocessor not handle `#include` lines in the binding files.

MozReview-Commit-ID: 3Gweuwnb1V3

--HG--
extra : rebase_source : 3a1769e4b45bab3175b3609d08e53534380facce
2017-09-01 14:02:44 -04:00
Jim Chen
f0ca31be3a Bug 1378410 - 1. Support BuildFlag annotation for generated bindings; r=snorp
Add a BuildFlag annotation, which when specified for classes, will wrap
generated code in `#ifdef` or `#ifndef` blocks. This functionality is
used for conditionally excluding generated code when NIghtly becomes
Beta, without the need to regenerate bindings.

MozReview-Commit-ID: L2NFM8CHKqF

--HG--
extra : rebase_source : 6ebc82d11fd1aa4aeb57a46262e678480d23de83
2017-09-01 14:02:29 -04:00
Michael Comella
196f5f016f Bug 1388377: Add highlights empty state. r=liuche
MozReview-Commit-ID: 1M1nqWSoER3

--HG--
extra : rebase_source : 4c84e431baac1a64876bede36d05c0d3399b0f63
2017-08-31 15:21:43 -07:00
Michael Comella
b4266caa6c Bug 1388377: Rm WelcomePanelRow. r=liuche
We show a message:
1) On first run
2) When there are no highlights

However, these are actually the same case (there are no highlights) so I wanted
to defer to that situation.

I felt it was easier to rm the WelcomePanel and rewrite it than it was to try
to morph it into an empty state for the highlights.

MozReview-Commit-ID: CrRbzA0NoRx

--HG--
extra : rebase_source : ed21103350ea13813062e214d3aec22805cfa7d7
2017-08-31 14:39:40 -07:00
Gregory Szorc
54ce1a0575 Backed out changeset 512562477a1e, c5b310c419c4 (bug 1388377) for Android build bustage
--HG--
extra : histedit_source : 45a7c9ad2418f3fbf1f6b3d544806e43e337749e%2C73fe36a02238f02dcac1d1010504fb42a2008701
2017-09-01 17:07:21 -07:00
Michael Comella
c256431aed Bug 1388377: Add highlights empty state. r=liuche
MozReview-Commit-ID: 1M1nqWSoER3

--HG--
extra : rebase_source : d3047131d6e5fa9bc7a6973bd7d8a78065d1901e
2017-08-31 15:21:43 -07:00
Michael Comella
291c25858a Bug 1388377: Rm WelcomePanelRow. r=liuche
We show a message:
1) On first run
2) When there are no highlights

However, these are actually the same case (there are no highlights) so I wanted
to defer to that situation.

I felt it was easier to rm the WelcomePanel and rewrite it than it was to try
to morph it into an empty state for the highlights.

MozReview-Commit-ID: CrRbzA0NoRx

--HG--
extra : rebase_source : da48e11003d8decb8216d1439a9ca475f56cbb7e
2017-08-31 14:39:40 -07:00
Wes Kocher
8b84853ed6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: GcHZLNPPNnI
2017-09-01 16:34:14 -07:00
Dylan Roeh
cefc0f9ba9 Bug 1390261 - Add external storage to permissions required in FilePicker.getPermissionsForMimeType. r=snorp 2017-09-01 10:36:59 -05:00
Chenxia Liu
8202ae6977 Bug 1386735 - Rename FIXED_ROWS to clarify that they are Activity Stream sections. r=mcomella
MozReview-Commit-ID: 5aGMR2jm66s

--HG--
extra : rebase_source : f27b57b5608bf4a698c5bb61b91cd88998684411
2017-09-01 14:58:22 -07:00
Chenxia Liu
7cdb649f7f Bug 1386735 - Add additional preferences to Top Sites settings. r=mcomella
MozReview-Commit-ID: ADwLLbO41RN

--HG--
extra : rebase_source : 519e230f5feaa10cb08a1eeb2de72f014894ad40
2017-08-30 20:01:48 -07:00
Chenxia Liu
1bf5deb116 Bug 1386735 - Support disabling titles in StreamRecyclerView. r=mcomella
MozReview-Commit-ID: 15h7Lp497JN

--HG--
extra : rebase_source : 540b9b97975addab569f0f490959c0dc10755e36
2017-08-30 18:58:12 -07:00
Michael Comella
e3133ba7e5 Bug 1393274: Rename card_history_item -> webpage_item_row & friends. r=liuche
Unrelated to RTL changes but these names are awful and gotta go!

MozReview-Commit-ID: Kud6tgfEGkk

--HG--
rename : mobile/android/app/src/main/res/layout/activity_stream_card_history_item.xml => mobile/android/app/src/main/res/layout/activity_stream_webpage_item_row.xml
extra : rebase_source : 9a2b980a8f00ddb2cb28a24ab85d684df04b05b7
2017-08-30 11:45:27 -07:00
Wes Kocher
cf2f541ad3 Backed out 3 changesets (bug 1393274) for android lint failures a=backout
Backed out changeset 52e7fa268a65 (bug 1393274)
Backed out changeset 29e8bf6a34c1 (bug 1393274)
Backed out changeset 03063f77c3f5 (bug 1393274)

MozReview-Commit-ID: 5BOV55zQaFf

--HG--
rename : mobile/android/app/src/main/res/layout/activity_stream_webpage_item_row.xml => mobile/android/app/src/main/res/layout/activity_stream_card_history_item.xml
2017-08-31 11:40:09 -07:00
Michael Comella
d581fb44db Bug 1393274: Rename card_history_item -> webpage_item_row & friends. r=liuche
Unrelated to RTL changes but these names are awful and gotta go!

MozReview-Commit-ID: Kud6tgfEGkk

--HG--
rename : mobile/android/app/src/main/res/layout/activity_stream_card_history_item.xml => mobile/android/app/src/main/res/layout/activity_stream_webpage_item_row.xml
extra : rebase_source : 9369fd07eb959caf800cad58b37e543b83402b08
2017-08-30 11:45:27 -07:00
Michael Comella
b91f846c4a Bug 1393699: Add Pocket referrer URI to AS top story clicks. r=liuche
I tested this by replacing the placeholder top story URLs with [1], clicking on
the links, and verifying clicks from top stories included the referrer but
clicks from highlights and top sites did not.

[1]: https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending

MozReview-Commit-ID: CcOxkvNgOHY

--HG--
extra : rebase_source : 68d17e59231fb5e7fc4232d4256b925e6e4fce7e
2017-08-30 15:33:56 -07:00
Michael Comella
cf5d8a86f7 Bug 1393699: Add referrerURI to Tabs.loadUrl flows. r=liuche
This will allow us to call Tabs.loadUrl with a referrer URI from the Pocket top
stories.

MozReview-Commit-ID: IGdoTo80SGG

--HG--
extra : rebase_source : 52c616720fb1735e593f02330d1dd02db45f501f
2017-08-30 15:26:03 -07:00
Michael Comella
ccf565d25e Bug 1393699: Rm unused BrowserApp.openUrlAndStopEditing method. r=liuche
MozReview-Commit-ID: AtrGRwtkiAT

--HG--
extra : rebase_source : 07d83ea9d48074de04fc01e137a37396beacb1ba
2017-08-29 17:56:25 -07:00
Chenxia Liu
8d272b6721 Bug 1394459 - Support bookmarking, pinning of Pocket items in context menu. r=mcomella
MozReview-Commit-ID: GwZdlzQ5ZIR

--HG--
extra : rebase_source : bc9bbd81ffc512815755c701857dfaf182975135
2017-08-29 16:09:28 -07:00
Grigory Kruglov
ba86f4a1fb Bug 1392802 - Increment localVersion while reconciling a bookmark if we modified its dateAdded t.s. r=rnewman
We might decide that there's an older dateAdded timestamp present for an incoming bookmark while processing it,
in which case we need to ensure that our changes will be uploaded.

MozReview-Commit-ID: BKLh4rYBiRu

--HG--
extra : rebase_source : 3f8ac41de99d7082cd9d7fc7254386d99d5431bd
2017-08-29 20:12:46 -04:00
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