Commit Graph

24295 Commits

Author SHA1 Message Date
Sebastian Hengst
3501d62e32 Backed out changeset b84fc40ed8c2 (bug 1394580) for eslint failure at mobile/android/modules/geckoview/Messaging.jsm:201: Missing space after *. r=backout 2017-09-05 21:53:24 +02:00
Sebastian Hengst
d7c61803f9 Backed out changeset 6c4c8b4e38cf (bug 1394580) 2017-09-05 21:51:30 +02:00
Sebastian Hengst
aead58a5ad Backed out changeset 995d9ef9af5f (bug 1394580) 2017-09-05 21:51:24 +02:00
Sebastian Hengst
17f8a84fbf Backed out changeset a9b1cbbeea9a (bug 1394580) 2017-09-05 21:51:19 +02:00
Sebastian Hengst
4b29fe66f5 Backed out changeset 1cc1955d6af3 (bug 1394580) 2017-09-05 21:51:13 +02:00
Sebastian Hengst
8f20753676 Backed out changeset f069f3c69597 (bug 1394580) 2017-09-05 21:51:07 +02:00
Jim Chen
30cae04acc Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen
MozReview-Commit-ID: BZJSvnNC3OS

--HG--
extra : rebase_source : a443c3bff2a716620448e869aeadd6c9b34e1f53
2017-09-05 15:27:37 -04:00
Jim Chen
4c4c02d8cf Bug 1394580 - 5. Lazy-load Task.jsm in Messaging.jsm; r=esawin
We're not lazy-loading Task.jsm in Messaging.jsm right now (despite
declaring it through XPCOMUtils.defineLazyModuleGetter) because we
unnecessarily reference `Task` when Messaging.jsm is loading. This patch
makes us load Task.jsm only when `Task` is really needed.

MozReview-Commit-ID: 9rrnLQLaW4y

--HG--
extra : rebase_source : fab1379719a9fdf75ce45b1002d03300e5dbd9e8
2017-09-05 15:27:36 -04:00
Jim Chen
367bc83a53 Bug 1394580 - 4. Disable MDNS service for GeckoView; r=snorp
Standalone GeckoView doesn't make use of MDNS AFAIK (i.e. MDNS is only
used by features like casting or FlyWeb), but it takes up startup time,
so we should disable it.

MozReview-Commit-ID: CseHUos5B9I

--HG--
extra : rebase_source : 2dc6af2a360da05cf3d6ba2aaae87a64dd67c480
2017-09-05 15:27:36 -04:00
Jim Chen
98dc4b6b01 Bug 1394580 - 3. Lazy-load AndroidLog.jsm; r=droeh
Lazily load AndroidLog.jsm since we only need it for debug logging, and
logging is normally turned off in GeckoView code.

MozReview-Commit-ID: 5HNzYTwujMS

--HG--
extra : rebase_source : 5ef9bbe21ff1a53bc0e805f473154e1cf60d3b08
2017-09-05 15:27:36 -04:00
Jim Chen
2995c5fd29 Bug 1394580 - 2. Add GeckoViewStartup to consolidate startup tasks; r=snorp
Add a GeckoViewStartup component to consolidate tasks performed during
GeckoView startup, such as adding lazy observers and event listeners.
This enables us to not load individual GeckoView modules such as
GeckoViewPermission and GeckoViewPrompt until they are actually needed.

MozReview-Commit-ID: IsaUGwBHKbs

--HG--
extra : rebase_source : c22e71eda6ad11230046de64dc54c882be2ed555
2017-09-05 15:27:35 -04:00
Jim Chen
e71f44e7d6 Bug 1394580 - 1. Only load AsyncPrefs for Fennec; r=esawin
Move AsyncPrefs initialization to inside browser.js to only load it for
Fennec. Also, delay initialization until later in startup.

MozReview-Commit-ID: 7gLaXA5UJud

--HG--
extra : rebase_source : c721bbc6c9340f65161c415405dfba16e527b962
2017-09-05 15:27:29 -04:00
Francesco Lodolo (:flod)
78ed2814d9 Bug 1396927 - Switch Diec2 (Catalan) search plugin to https r=mkaply
MozReview-Commit-ID: 7JWJhqCvRJV

--HG--
extra : rebase_source : 3205073a5cae04b68e520c2faee929044593750f
2017-09-05 20:09:19 +02:00
Jan Henning
0b7a53e9cb Bug 1396292 - Part 2 - Explicitly run permissions callback on background thread where applicable. r=sebastian
Currently, this only concerns setImageAs, where not running on the UI thread after a permissions prompt triggers a network-related strict mode violation and interestingly enough results in a crash (as opposed to a logcat complaint) on release builds.

There's also a permissions check in the UpdateService which runs on a (but not *the*) background thread, but since we don't prompt in that case there's no action necessary.

MozReview-Commit-ID: KKxW96AyDWH

--HG--
extra : rebase_source : db12529acc9b257930c37c2295f69a7b8e75232c
2017-09-02 21:55:40 +02:00
Jan Henning
fe27b4a96d Bug 1396292 - Part 1 - Provide facilities to explicitly run permissions check callbacks on the background thread. r=sebastian
The permissions check itself is synchronous, but if we then decide to prompt the user to acquire the permission, we have to do so asynchronously and eventually continue execution on the UI thread as a result. Therefore we need to provide a counterpart of onUIThread() for operations that want their callback to stay off the UI thread in all situations.

MozReview-Commit-ID: AOCX1v69R1J

--HG--
extra : rebase_source : ed0bab9f3ae3198bf2af90eabc86fd5ddd95b3a0
2017-09-02 21:22:30 +02:00
Jan Henning
573a12d384 Bug 1396292 - Part 0 - Clean up imports. r=JanH
MozReview-Commit-ID: 12CjJ2zZ2Qr

--HG--
extra : rebase_source : d216e689ed667e43e200101985bffd45d74fefc8
2017-09-02 21:44:55 +02:00
Louis Chang
0d46442004 Bug 1352238 Part 2 - Remove default styling of checkbox/radio in UA sheets. r=mats
MozReview-Commit-ID: 6sd18LI3yw2

--HG--
extra : rebase_source : f0efd383fd4e51be1a4c99691a4455b6f6686798
2017-09-05 22:44:29 +08:00
Chenxia Liu
665bc15aa2 Bug 1396589 - Remove unsupported API call for lower versions. r=liuche
MozReview-Commit-ID: H1oSMcM6BCD

--HG--
extra : rebase_source : 71b61ce9934a237bea01709d5b2629b04b51e1fd
2017-09-05 09:14:37 -07:00
Luca Greco
76db20f78d Bug 1396605 - Prevent duplicated Firefox for Android PageAction icons for a single extension. r=mixedpuppy
MozReview-Commit-ID: 1axv6vFXcCu

--HG--
extra : rebase_source : e265131c7bcfcb1fa57e0b461debcb7a915529a5
2017-09-04 21:09:58 +02:00
Jing-wei Wu
2d894cb091 Bug 1389092 - Adjust TwoLinePageRow layout. r=nechen
Adjust icon position and increase text size of title field.

MozReview-Commit-ID: F0eb8m7dvHY

--HG--
extra : rebase_source : ee7f8464ac857bbdfb39eb96b7a9902c09e58066
2017-09-05 18:14:33 +08:00
Sebastian Hengst
45cb996f32 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 12:37:56 +02:00
Sebastian Hengst
a17af05f6f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
Jing-wei Wu
3b58594210 Bug 1395920 - Remove vertical dividers in tabs tray page. r=nechen
MozReview-Commit-ID: HZQcuSLbuOm

--HG--
extra : rebase_source : 12c789109e6ccfeb35b83e8f21fd81d9815e6e4a
2017-09-05 11:23:50 +08:00
Jing-wei Wu
40f05e98c2 Bug 1395917 - Update reading list folder icon on bookmark panel. r=nechen
MozReview-Commit-ID: LGdn9KfZkcn

--HG--
extra : rebase_source : 2222faf21bb66140568273390d4739aab04f8137
2017-09-05 11:04:24 +08:00
Jing-wei Wu
ed2d976703 Bug 1393072 - Only tint light color for menu icons in private mode in large tablet. r=nechen
The tint logic for menu icons on different devices is:

Normal mode:
1. Mobile & small tablet -> dark color(#272727)
2. Large tablet -> dark color(#272727)

Private mode:
1. Mobile & small tablet -> dark color(#272727)
2. Large tablet -> light color(#38383D)

MozReview-Commit-ID: 9cz53PieQHY

--HG--
extra : rebase_source : 780a3ae9701d30672153801c88ade56c081a64d1
2017-09-05 10:27:18 +08:00
Steve Armand
e46ff00709 Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR

--HG--
extra : rebase_source : 5f692e474e1d7d173fcb4c9c08617f0fe489e443
2017-09-04 00:49:32 -04:00
Nevin Chen
f473cc006c Bug 1396548 - Handle Push Notification when app is not running. r=maliu
When app is not runing, Gecko is not running. Thus we can't get Gecko pref.
We should skip Gecko pref check and show notifications when we recieve push messages and while app is not running.
Other checks (ie. Switchboard, Health Report...etc) remain the same.

MozReview-Commit-ID: H2X18VI0cnW

--HG--
extra : rebase_source : 28c4946ba8f4a9721735f93db728c28fa70d6b9d
2017-09-04 19:15:32 +08:00
Luca Greco
8ea256fafd Bug 1395911 - Ensure Android addon options are not hidden while a webextension is still starting. r=sebastian
MozReview-Commit-ID: JXxI1dK39jA

--HG--
extra : rebase_source : b45efcaeebb19eca0196a823048c5d878b259b0c
2017-09-01 14:31:26 +02:00
Zibi Braniecki
517324f16f Bug 1389397 - Remove the override chrome entries from language manifests. r=Pike
MozReview-Commit-ID: IsNb6inPCtf

--HG--
extra : rebase_source : 169e5cbb0263239ffce2a4ead598c7904e5a3484
2017-08-31 01:21:08 -07:00
Tushar Saini (:shatur)
49e6d15e41 Bug 1363014 - Implement browsingData.remove WebExtension API method on android. r=bsilverberg,mixedpuppy,sebastian
MozReview-Commit-ID: 2ipz1wqGpxc

--HG--
extra : rebase_source : cdb19268a6242c1466fb762cfd72c0af32ef45ae
2017-08-30 00:08:48 +05:30
Kris Maglione
a2ec0b79b6 Bug 1396017: Redact window titles without the appropriate tabs permissions. r=mixedpuppy
MozReview-Commit-ID: 2QJYvJlqt9l

--HG--
extra : rebase_source : 33c4670a0eded6e0af4f931a1ac4cd57f6115995
extra : amend_source : 915bfac6f2c05024acd840c8fa9e282bfc31c296
2017-09-01 12:20:10 -07:00
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
Jan Henning
96e370c7ce Bug 1396303 - Fix typo in variable declaration that breaks the download helper app dialogue. r=JanH
MozReview-Commit-ID: Kg24dBizlRf

--HG--
extra : rebase_source : 357be7740ba48bb4254ad3253a38057f23b7a7ff
2017-09-03 21:12:40 +02: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
Luca Greco
108627c8c2 Bug 1370333 - Add support for browserAction popup on Firefox for Android. r=mixedpuppy
MozReview-Commit-ID: Il6sUoMlLvX

--HG--
extra : rebase_source : d8f1386bd264cb931f7781dbf13b9cdfed2624d6
2017-08-29 12:54:37 +02:00
Sebastian Hengst
4d0bad92dd merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gsw48p934sI
2017-09-02 10:54:44 +02: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
Wes Kocher
5f157c17dc Merge inbound to central, a=merge
MozReview-Commit-ID: 3JxUEFuinHY
2017-09-01 16:29:10 -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
Luca Greco
b1d2a209c5 Bug 1383160 - Fix Android pageAction popup behavior. r=mixedpuppy
MozReview-Commit-ID: 66PnjFv4IIx

--HG--
extra : rebase_source : c5fdbe75cea18bcbfeedc8916c2b9c00ec20a429
2017-08-15 22:55:13 +02: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