Commit Graph

22118 Commits

Author SHA1 Message Date
Boris Zbarsky
32774b2c1d Bug 1465875 followup. Fix some Android code that ends up with null elements and was getting false from instanceof as a result. r=bzbarsky 2018-06-02 00:53:22 -04:00
Boris Zbarsky
0cf65db1d3 Bug 1465875 part 2. Eliminate use of "instanceof nsIDOMNSEditablElement". r=qdot 2018-06-01 22:35:22 -04:00
Boris Zbarsky
c7f378d7ab Bug 1465875 part 1. Eliminate pointless QIs to nsIDOMNSEditableElement. r=qdot
We expose the relevant APIs on textarea and input elements anyway
(chromeonly).  The QIs will throw on a non-input or non-textarea element, but
none of these consumers expect that to happen.
2018-06-01 22:35:22 -04:00
Csoregi Natalia
e2f48890e1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-02 01:05:17 +03:00
Eitan Isaacson
348f30caa7 Bug 1463496 - Enable WebSpeech synthesis in Android. r=smaug 2018-05-31 10:34:00 -04:00
Andrea Marchesini
15a948f85a Bug 1422365 - Introduce nsIClearDataService - part 19 - android package, r=me CLOSED TREE 2018-06-01 15:06:21 +02:00
Andrea Marchesini
81e9f28cfc Bug 1422365 - Introduce nsIClearDataService - part 1 - IDL, r=johannh, r=mak 2018-06-01 14:29:55 +02:00
Thomas Wisniewski
9326cac64c Bug 1453691 - create a Fennec system addon to spoof the UA string as Chrome for Google Search and Facebook. r=rhelmer
MozReview-Commit-ID: FFwhvvAqffs

--HG--
extra : rebase_source : 26c0d9226beb8cbcaf32476b4f84dcba7200fb3a
2018-04-25 20:23:45 -04:00
Noemi Erli
8e2471b6cb Backed out 8 changesets (bug 1458375) for Mochitest leaks on a CLOSED TREE
Backed out changeset 30a743401670 (bug 1458375)
Backed out changeset ae969e1cebfb (bug 1458375)
Backed out changeset 1fb76b9b6f82 (bug 1458375)
Backed out changeset 868da3a1b94a (bug 1458375)
Backed out changeset bd2cba9dfb3d (bug 1458375)
Backed out changeset 715850ae92a1 (bug 1458375)
Backed out changeset cfe8da250de7 (bug 1458375)
Backed out changeset 2968c0a21410 (bug 1458375)
2018-05-31 22:38:48 +03:00
Mike Conley
a202cc22bb Bug 1458375 - Add browser-idle-startup-tasks-finished notification to Fennec. r=snorp
MozReview-Commit-ID: CDEMUCL8ykG

--HG--
extra : rebase_source : 5655f7eb3fb5092c202fde41967b23323162baaf
2018-05-30 17:08:09 -04:00
Eitan Isaacson
0c48554698 Bug 751769 - Dynamically attach/detach windows in AccessFu. r=yzen 2018-05-30 12:43:00 -04:00
Csoregi Natalia
0c87942d7d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-30 12:27:51 +03:00
Boris Zbarsky
a7ede892a2 Bug 1455676 part 18. Stop using getInterface as the primary API for the indexeddb permission notifications. r=mrbkap 2018-05-29 22:58:50 -04:00
Boris Zbarsky
4cf7b4f9a1 Bug 1455676 part 9. Mostly remove use of nsIDOMNode from mobile/. r=snorp 2018-05-29 22:58:49 -04:00
Eugen Sawin
410a424061 Bug 1463772 - [2.1] Add basic tracking protection tests. r=jchen 2018-05-29 23:54:45 +02:00
Eugen Sawin
c4cfb57d29 Bug 1463772 - [1.4] Move and refactor tracking protection blocklist selection. r=snorp,jchen 2018-05-29 23:54:45 +02:00
Boris Zbarsky
16e02a5e28 Bug 1460735 part 1. Remove use of nsIDOMDocument in JS. r=qdot
There are some places where we have a thing which may not even be a node, and
we end up hardcoding the value of DOCUMENT_NODE there, because
"foo.nodeType == foo.DOCUMENT_NODE" will test true if foo is not a node: both
sides will be undefined.
2018-05-29 13:39:00 -04:00
Makoto Kato
8b264ece4d Bug 1455006 - Use Looper to get main thread instead of main thread name. r=jchen
Actually, Gecko uses thread name "main" to find main thread.  But Android
has Looper object to get main loop.  So we should use it instead.

MozReview-Commit-ID: 9oVqftqLZmh

--HG--
extra : rebase_source : 84593b794f9055739a10a08ca2b4fa737043100c
2018-05-24 20:46:18 +09:00
Michal Novotny
63375bc80b Bug 1377570 - Enable RCWN on mobile. r=valentin
This patch enables racing cache with network on mobile when cellular data isn't used.
2018-05-27 03:59:00 +03:00
Cosmin Sabou
4a95166f46 Bug 1463383 - Disable mobile/android/components/extensions/test/mochitest/test_ext_popup_behavior.html for frequent timeouts. r=nbeleuzu 2018-05-27 00:43:00 +03:00
Kris Maglione
3dd63c92d7 Bug 1461145: Follow-up: Temporarily disable test task for too many failures. r=bustage,test-only DONTBUILD
MozReview-Commit-ID: 8rOOceQfWjG

--HG--
extra : amend_source : 2c236e0983c157bb22b7f341e72e6259b3483bdd
2018-05-26 17:50:23 -07:00
Kris Maglione
cfd00caeef Bug 1461145: Follow-up: Fix more racy tests. r=bustage,test-only
MozReview-Commit-ID: 9740WVNkuhX
2018-05-26 16:51:40 -07:00
Kris Maglione
1e03e83e35 Bug 1461146: Replace Addon.userDisabled setter with async enable()/disable() methods. r=aswan
MozReview-Commit-ID: Gj2iCsBIdnq

--HG--
extra : rebase_source : 7766537d472ae8d6a25c4c824a50c0bb6bc49865
2018-05-12 16:49:35 -07:00
Dorel Luca
047df7a932 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-26 07:09:39 +03:00
Eugen Sawin
05fb15050f Bug 1464263 - [1.2] Update settings for non-enabled modules. r=jchen 2018-05-26 01:21:07 +02:00
Petru Lingurar
393c825916 Bug 1462594 - Allow accessing all Settings menus on tablets; r=mcomella
Bug details:
The problem stemmed from the now called GeckoPreferences.trySwitchToHeader(int id) which could be called with an invalid id, constant with the same value as the id of the last available setting.
(GeckoPreferenceFragment().getHeader() would return valid ids only for preference screens that are launched directly. Otherwise it would return: -1)
By chance the id for the last available setting - vendor was not set and so Android saw it with an invalid header id: -1.
GeckoPreferences.trySwitchToHeader(int id) would just switch to showing the vendor setting because that is what he has been instructed to whenever the user tried to access other settings than the ones which can be launched directly.

Cleaned the code a bit:
- renamed GeckoPreferences.switchToHeader(..) to trySwitchToHeader(..) as it won't always perform that action
- removed the call to activity.showBreadCrumbs(..) as in my tests it didn't have any effect and the documentation says "This will normally be called for you".

Tested on An Android 8 tablet, on an Android 8 phone, on an Android 5.0.1 phone and all works ok.

MozReview-Commit-ID: 2sbfcuRHgZd

--HG--
extra : rebase_source : 51f4629e89846d01224a0cd7dd8b3fba93657f40
2018-05-24 14:09:22 +03:00
Jim Chen
540b917e81 Bug 1464184 - Reuse test session by default; r=snorp
Instead of creating a new session for every test case, we can get away
with reusing the same session for the most part. This results in a large
decrease in testing time due to lower overhead.

MozReview-Commit-ID: 3MDAEtBVfxN

--HG--
extra : rebase_source : 9a145d222b75b55cf184b319ba7404ba64f620d6
2018-05-24 15:13:20 -04:00
Andreea Pavel
0dada2bb52 Merge inbound to mozilla-central. a=merge 2018-05-24 01:00:23 +03:00
Jonathan Kew
ec10b3f21a Bug 1392147 - Use Roboto instead of Clear Sans as default sans-serif font on Android, for better webcompat. r=xidorn 2018-05-23 13:51:59 +01:00
James Willcox
9d684762a9 Bug 1462408 - Set correct Intent flags when launching Fennec crash reporter r=jchen
MozReview-Commit-ID: 6iXgivUWIWu

--HG--
extra : rebase_source : c7869baddc2eb03e27a88e75b73b1f3afe9768cc
2018-05-22 09:51:27 -05:00
Igor Oliveira
cf8108e051 Bug 1459089 - Don't use OS Locale when resistFingerprinting is enabled. When the OS Locale is used, it leaks the OS language in the HTTP Accept-Language header. r=mcomella
--HG--
extra : rebase_source : 7b0dc69be25c5076696a6bd9db7611cd5b0abbad
2018-05-03 18:28:00 +03:00
Eugen Sawin
09d5ef6ba1 Bug 1447390 - [1.1] Add cookie control runtime settings. r=snorp,jchen,francois 2018-05-23 00:05:39 +02:00
Oriol Brufau
ae9392e1f0 Bug 1451176 - Preserve tab-specific data when tab is moved to another window r=mixedpuppy
MozReview-Commit-ID: 80h4U7G3gmb

--HG--
extra : rebase_source : d8939d51f967a7c3a98977d3376d2727abd22a79
2018-04-04 16:04:11 +02:00
Delphine Lebédel
de145d79ac Bug 1460122 - Add 'en-CA' to Fennec all-locales for single-locale builds, r=flod
MozReview-Commit-ID: 2dCYQeL8PcE

--HG--
extra : rebase_source : d44c0a6d6cb699647e06c57a89c3afaa2af7789c
2018-05-21 15:44:12 -07:00
s37syed
0ba5ea93ce Bug 1411198 - Unlabeled voice input button. r=mcomella
Made QR string consistent with respect to other url related strings

MozReview-Commit-ID: 432jaONccer

--HG--
extra : rebase_source : 44b50664e9602a11d82a1c1759b3e35e9f25e075
2018-05-17 01:05:47 -04:00
s37syed
f7413006a4 Bug 1411198 - Unlabeled voice input button. r=mcomella
Added localization notes and more verbose strings for non-visual users.

MozReview-Commit-ID: FiOcDJrgRIy

--HG--
extra : rebase_source : 3fcaafc16e7bdbbeab881d16270b036b0a781cf4
2018-05-17 00:52:41 -04:00
s37syed
374a1d8e61 Bug 1411198 - Unlabeled voice input button. r=mcomella
Added contentDescription strings for QR Code and Voice Input

MozReview-Commit-ID: 6tpoewhPxev

--HG--
extra : rebase_source : 3ed1f0263f108ad63131f99168ee9879f83fbdb2
2018-05-14 21:35:34 -04:00
Petru Lingurar
1259f8acb6 Bug 1454686 - Remove Lint error suppression for unused strings; r=mcomella
Strings needed for this feature were added in a separate bug - 1445798 which were causing Lint errors.
When this feature will land there will be no need for the suppression.

MozReview-Commit-ID: IhtTS8rHLwz

--HG--
extra : rebase_source : 6c09445f7f8c6f6fb565f41e57f666e9cfc26627
2018-05-16 15:59:56 +03:00
Petru Lingurar
9d1cf91350 Bug 1454686 - Respond to changes in the new preference state state; r=mcomella
Because Mma cannot work if Health Report is disabled by the user (Settings - Privacy)
we will treat toggling Health Report on/off the same as we treat toggling the new preference from Settings - Notifications.
Toggling Health Report on will inform about the need to start LeanPlum (useful if the user did not explicitly stopped LP notifications but only Health Report which in turn disabled LeanPlum also) but there are other checks made afterwards (BrowserAp() is informed about this which calls GeckoPreferences.isMmaAvailable(..)) to decide if LP can and should be enabled.

Toggling any of these preferences will trigger an event caught by BrowserApp which can either
    - immediately initialize LeanPlum (if the toggle was off LP is not running) as it would normally do when the app first starts
    - stop LeanPlum reporting to servers, flush the per-session available messages
      and resets the LP started status so that it can be restarted in the same app session (like if the user toggles the feature again)

MozReview-Commit-ID: 1SmhN0NucWW
***

--HG--
extra : rebase_source : b461677fd8a07d7c0c463e55c33bae1a3a973a1f
2018-05-16 15:54:13 +03:00
Petru Lingurar
4c52d88b03 Bug 1454686 - Small refactoring of Mma related methods; r=mcomella
With the adding of the new preference that Mma depends on we need to have only one place where all the conditions for considering if Mma is available are checked - GeckoPreferences.isMmaAvailableAndEnabled()
Added only one place from where the availability of the LP experiments should be checked as that currently involves two checks - MmaDelegate.isMmaExperimentEnabled(..)
Also renamed isMmaEnabled() from MmaDelegate() and initSwitchboard from BrowserApp() to better express what those methods do.

MozReview-Commit-ID: BCJqM9b5JbW
***

--HG--
extra : rebase_source : 3c4b1707f69bfa5b39fe12ff45d8961b713f2291
2018-05-17 18:55:38 +03:00
Petru Lingurar
ef1c73d1d6 Bug 1454686 - MmaLeanPlumImp().stop() will now stop LP, stop showing messages and allow restart in same app session; r=mcomella
According to current LP documentation there are no SDK APIs to allow users to fully stop LP: events reporting and message displaying there.
After extensive testing and investigations I think I found the least intrusive way to offer that.

We will use internal methods but which are public so I hope they will be supported in the future also. Nevertheless we will need to maintain this in regards to future SDK updates.

MozReview-Commit-ID: Ke3HGAyCqVA
***

--HG--
extra : rebase_source : e6510e12777ee3286742f00ae75d8ca69296989e
2018-05-17 18:45:01 +03:00
Petru Lingurar
753b481522 Bug 1454686 - Add a new preference under Settings - Notifications; r=mcomella
The behavior of this new preference is dynamic in that:
- it will be hidden if LeanPlum is not available for the device
- it will be toggled off and disabled if Health Report is disabled by the user

MozReview-Commit-ID: 1x9zZukyygr
***

--HG--
extra : rebase_source : c31ad02cbbb106613914634b5192f856aad185b7
2018-05-16 11:49:35 +03:00
Michael Kaply
a97758663a Bug 1461345 - Move browser.search.order to list.json. r=adw
MozReview-Commit-ID: 1ulgkNgkAP9

--HG--
extra : rebase_source : 16c469f449a4684c6f43dd2cc82d2288b9fd2a34
2018-05-21 14:27:06 -05:00
Noemi Erli
cf07f127bc Backed out changeset 80cc5997d8cc (bug 1461345) for xpcshall failures on test_TelemetryEnvironment.js on a CLOSED TREE 2018-05-21 20:16:47 +03:00
Michael Kaply
574e1467e0 Bug 1461345 - Move browser.search.order to list.json. r=adw
MozReview-Commit-ID: 4eaWb8mzIm6

--HG--
extra : rebase_source : 83f01cadfca9ec44d52ba7f737ab9d23f004f044
2018-05-18 16:12:32 -05:00
Ciure Andrei
26287d7c31 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-19 01:09:10 +03:00
Ciure Andrei
2f509969e9 Merge inbound to mozilla-central. a=merge 2018-05-19 01:05:58 +03:00
Jim Chen
5ac39f4f7b Bug 1461747 - 3. Add missing permissions; r=me
Add missing geolocation permissions in geckoview_example and geckoview
androidTest.
2018-05-18 11:26:37 -04:00
Jim Chen
bd7bc7fd80 Bug 1461747 - 2. Fix typo in notification permission; r=me
MozReview-Commit-ID: Iwl1IIg8KPq
2018-05-18 11:18:04 -04:00
Jim Chen
4763384cf3 Bug 1461747 - 1. Add more permission tests; r=snorp
Add permission tests for geolocation and notifications.

MozReview-Commit-ID: CR8TGxsUyoL
2018-05-18 11:18:04 -04:00