Commit Graph

27556 Commits

Author SHA1 Message Date
Vlad Baicu
4f56e9160c Bug 1464003 - Refresh sync preference after rebuilding the list. r=Grisha
Differential Revision: https://phabricator.services.mozilla.com/D15209

--HG--
extra : moz-landing-system : lando
2019-01-04 10:17:03 +00:00
Mark Banner
8e9e4602f8 Bug 1517456 - Make Task.jsm a test-only module. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D15647

--HG--
rename : toolkit/modules/Task.jsm => toolkit/modules/tests/modules/Task.jsm
extra : moz-landing-system : lando
2019-01-04 08:41:58 +00:00
Emilio Cobos Álvarez
1728454f1d Bug 1517241 - Fix some more android bustage on a CLOSED TREE.
Got to love unified builds.
2019-01-03 18:43:12 +01:00
Emilio Cobos Álvarez
d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Gijs Kruitbosch
a1eb21f649 Bug 1516799 - add fluent branding on fennec, r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D15573

--HG--
extra : moz-landing-system : lando
2019-01-02 22:50:45 +00:00
Agi Sferro
c0eb110828 Bug 1515978 - Make GeckoRuntime#getSettings @NonNull. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D15217

--HG--
extra : moz-landing-system : lando
2019-01-02 20:06:32 +00:00
James Willcox
d72a96de1f Bug 1450762 - Don't prompt for device permissions on Android in MediaDevices.enumerateDevices() r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D14575

--HG--
extra : moz-landing-system : lando
2019-01-02 16:44:35 +00:00
Agi Sferro
5dc04f9f8d Bug 1515960 - Add links to CHANGELOG.md. r=snorp,geckoview-reviewers
This adds links from the CHANGELOG to the javadoc.

Differential Revision: https://phabricator.services.mozilla.com/D15213

--HG--
extra : moz-landing-system : lando
2018-12-26 17:25:55 +00:00
Emily Toop
eb10410004 Bug 1510663 - Address WifiManager Potential Leak warning. r=geckoview-reviewers,snorp
On versions prior to Android N (24), initializing the WifiManager via Context#getSystemService can cause a memory leak if the context is not the application context.

Differential Revision: https://phabricator.services.mozilla.com/D14721

--HG--
extra : moz-landing-system : lando
2018-12-19 15:50:05 +00:00
Emily Toop
110522d32d Bug 1510648 - Suppress MissingPermission warnings. r=geckoview-reviewers,snorp
This is because these persmissions are the responsibility of the embedding app to request,not GeckoView's.

Differential Revision: https://phabricator.services.mozilla.com/D14722

--HG--
extra : moz-landing-system : lando
2018-12-19 15:49:42 +00:00
Jan Henning
6f640302c0 Bug 1506649 - Part 3: Guess ExternalStorageProvider file paths for non-primary volumes. r=snorp
The AOSP ExternalStorageProvider always creates document IDs of the form
"storage device ID" + ':' + "document path", where the storage device ID will
be "primary" for the primary emulated storage and the file system UUID for
everything else.

Assuming that OEMs won't customise this behaviour, the main problem that needs
to be handled is how to turn the file system UUID back into a file system path.

Differential Revision: https://phabricator.services.mozilla.com/D15259

--HG--
extra : moz-landing-system : lando
2018-12-26 20:38:01 +00:00
Jan Henning
04948eb567 Bug 1506649 - Part 2: Better API version linting. r=snorp
Because getOriginalFilePathFromUri() doesn't use framework methods newer than
Kitkat, instead of a generic @SuppressLint("NewAPI") it would be better to use
@TargetApi(19), so you still get warned if you start using framework methods
more recent than API19.

However because the isKitkat helper variable is only used in one place, in the
end we simply replace it with a direct Build.VERSION.SDK_INT check, so that we
don't have to use any special handling for the linter.

Differential Revision: https://phabricator.services.mozilla.com/D15258

--HG--
extra : moz-landing-system : lando
2018-12-26 20:19:22 +00:00
Jan Henning
13289db4f3 Bug 1506649 - Part 1: Avoid exeception-based control-flow for resolving content://-URIs. r=snorp
Instead, getOriginalFilePathFromUri() will simply *always* return null if it
cannot divine the original file path, and consequently resolveContentUri() will
then always fall back to the temp file method if getOriginalFilePathFromUri()
returns null.

Differential Revision: https://phabricator.services.mozilla.com/D15257

--HG--
extra : moz-landing-system : lando
2018-12-26 20:19:15 +00:00
Hiroyuki Ikezoe
f36f418011 Bug 1516307 - Make nsIDOMWindowUtils.getResolution return the result value. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15318

--HG--
extra : moz-landing-system : lando
2018-12-30 01:15:27 +00:00
Michael Kaply
17389dd116 Bug 1510296 - Update Google search for new codes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D13087

--HG--
extra : moz-landing-system : lando
2018-12-29 14:21:27 +00:00
Ciure Andrei
13346881fe Backed out changeset f6790e7386ac (bug 1510296) for causing Android build bustages CLOSED TREE 2018-12-29 15:54:35 +02:00
Michael Kaply
b79e575381 Bug 1510296 - Update Google search for new codes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D13087

--HG--
extra : moz-landing-system : lando
2018-12-29 13:19:42 +00:00
Mark Banner
89c3a48f36 Bug 1515729 - Remove Task.jsm usage from mobile/android. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15464

--HG--
extra : moz-landing-system : lando
2018-12-28 22:36:18 +00:00
Bogdan Tara
ddb8707cbc Backed out changeset 2b4dd7891375 (bug 1510296) for build bustages CLOSED TREE 2018-12-29 07:30:23 +02:00
Michael Kaply
8c84b2b25d Bug 1510296 - Update Google search for new codes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D13087

--HG--
extra : moz-landing-system : lando
2018-12-28 22:26:06 +00:00
Bogdan Tara
d2a41cb853 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-28 23:53:12 +02:00
Bogdan Tara
fff0a1f4f9 Merge inbound to mozilla-central. a=merge 2018-12-28 23:50:12 +02:00
Vlad Baicu
b0e869dfdd Bug 1515966 - Download notification click action now opens about:downloads. r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D15215

--HG--
extra : moz-landing-system : lando
2018-12-28 14:50:38 +00:00
arthur.iakab
acd2e22b33 Backed out changeset 3c54ad1e420e (bug 1515966) for causing eslint failure on DownloadNotifications.jsm CLOSED TREE 2018-12-28 00:22:34 +02:00
Vlad Baicu
aa225929dc Bug 1515966 - Download notification click action now opens about:downloads. r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D15215

--HG--
extra : moz-landing-system : lando
2018-12-27 10:50:18 +00:00
James Willcox
dbb53da575 Bug 1510711 - Make Fennec branding (about:logo, etc) available in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D14557

--HG--
extra : moz-landing-system : lando
2018-12-27 18:11:32 +00:00
Cosmin Sabou
5bcaee3eac Backed out changeset 7ceb0427f883 (bug 1510711) for Android mochitest failures on testJarReader. 2018-12-26 23:34:49 +02:00
Mark Banner
c7d11a73c7 Bug 1515865 - Remove unnecessary Task.jsm inclusions in mobile/android tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15177

--HG--
extra : moz-landing-system : lando
2018-12-26 19:20:48 +00:00
James Willcox
e2e452c637 Bug 1501748 - Make GeckoThread.waitOnGecko() time out by default. r=geckoview-reviewers,esawin
All of the current usage can survive a timeout, and we'd rather
that than a deadlock. Future code that does want to risk a
deadlock can call `GeckoThread.waitOnGeckoForever` instead.

Differential Revision: https://phabricator.services.mozilla.com/D14560

--HG--
extra : moz-landing-system : lando
2018-12-19 22:59:46 +00:00
James Willcox
dc32ae75b8 Bug 1510711 - Make Fennec branding (about:logo, etc) available in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D14557

--HG--
extra : moz-landing-system : lando
2018-12-21 18:00:58 +00:00
Jan Henning
f7135eb95d Bug 1515559 - Account for image source-sets in context menu. r=snorp
Audio/video related context menu entries are already doing this as far as I can
tell.

Differential Revision: https://phabricator.services.mozilla.com/D15382

--HG--
extra : moz-landing-system : lando
2018-12-26 18:38:20 +00:00
Jan Henning
120b216df7 Bug 1492335 - Strip view-source prefix when copying/sharing links from context menu. r=snorp
Desktop does this when copying link URLs and sharing is just effectively just
another form of copying.
For completeness, we also apply this when "viewing" the source of images (which
just displays the image itself anyway).

No special handling is required for other media elements (audio/video), because
looking at those in view-source mode does display the raw file contents and
thus none of the media-specific context menu entries will show up.

Differential Revision: https://phabricator.services.mozilla.com/D15381

--HG--
extra : moz-landing-system : lando
2018-12-26 18:38:18 +00:00
Eitan Isaacson
70e2a64ff1 Bug 1513912 - Null check return from TextToSpeech.getFeatures() r=agi
Differential Revision: https://phabricator.services.mozilla.com/D15158

--HG--
extra : moz-landing-system : lando
2018-12-21 15:28:05 +00:00
Petru Lingurar
4a9cd4dfff Bug 1513938 - Enforce a Bundle size limit and drop privateSession if exceeds it; r=JanH
The `privateSession` key would normally allow persisting the Private Browsing
session across OOMs in Activity's Bundle.
We need to do that to avoid storing private, sensible data on disk like we do
with the normal browsing session.

In some cases `privateSession` would contain a lot of data which, along with
other possible concurrent transactions could overflow Binder's buffer which has
a limited fixed size, currently 1Mb.
To avoid this, we will drop `privateSession` from the Bundle if the resulting
size is greater than a _speculative_ size of 300KBs which would mean that in
the case of an OOM all Private Browsing state would be lost.

Bug 1515592 is filed to investigate for a better solution.

Differential Revision: https://phabricator.services.mozilla.com/D15067

--HG--
extra : moz-landing-system : lando
2018-12-21 08:56:47 +00:00
Agi Sferro
ff137f141b Bug 1515662 - Copy javadoc jar to right location for publishing. r=nalexander
In Bug 1506601 we started specifying a version number which made the javadoc
jar artifact name change

from `geckoview-javadoc.jar` to `geckoview-<version>-javadoc.jar`

where `<version>` is the current GeckoView version. This is a good change but it
broke our javadoc publishing code which doesn't know about the version code in
`//taskcluster/ci/build/android-stuff.yml`.

To make that work we add a new task `copyJavadocJar${variantName}` which copies
the jar to the expected location.

Depends on D15128

Differential Revision: https://phabricator.services.mozilla.com/D15129

--HG--
extra : moz-landing-system : lando
2018-12-20 19:37:42 +00:00
Agi Sferro
61a9102f42 Bug 1515662 - Make |geckoview-docs| behave like other |mach android| commands. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15128

--HG--
extra : moz-landing-system : lando
2018-12-20 20:05:39 +00:00
Mike Taylor
1c41dddc98 Bug 1514861. Add Google Analytics params to report site issue endpoint requests. r=sebastian,mkaply
Add Google Analytics params to report site issue endpoint requests

Differential Revision: https://phabricator.services.mozilla.com/D14899

--HG--
extra : moz-landing-system : lando
2018-12-20 17:45:37 +00:00
Agi Sferro
cffe966865 Bug 1506658 - Add @Nullable or @NonNull to all APIs. r=snorp,rbarker,geckoview-reviewers
Upgrading apilint to the 0.1.6 release will also ensure that new APIs have
nullability annotations via the GV4 and GV5 lints, see [0].

[0]: b994c7ca9d (diff-2c7de691a2642510f69b9ddf59276d85R569)

Differential Revision: https://phabricator.services.mozilla.com/D14896

--HG--
extra : moz-landing-system : lando
2018-12-20 15:22:45 +00:00
Sebastian Hengst
767c971623 Backed out 21 changesets (bug 1492664) for breaking cron task for nightlies. a=backout
Backed out changeset a7d50dbb2c8e (bug 1492664)
Backed out changeset 2d876c4ece8b (bug 1492664)
Backed out changeset c82285d253de (bug 1492664)
Backed out changeset bf6d089640eb (bug 1492664)
Backed out changeset d9a7f2ce49c3 (bug 1492664)
Backed out changeset 06c466ab4323 (bug 1492664)
Backed out changeset c1ea4a10cc8d (bug 1492664)
Backed out changeset 4c63a04fdd47 (bug 1492664)
Backed out changeset 742b038bb1dd (bug 1492664)
Backed out changeset 911b4b0fb683 (bug 1492664)
Backed out changeset 870c8cec99e5 (bug 1492664)
Backed out changeset 77699b51336b (bug 1492664)
Backed out changeset 29f33f22fd8b (bug 1492664)
Backed out changeset e7f305408708 (bug 1492664)
Backed out changeset 335a92b1f424 (bug 1492664)
Backed out changeset c566f1c8dcdf (bug 1492664)
Backed out changeset c77ae59aba41 (bug 1492664)
Backed out changeset 9c35dd209c6b (bug 1492664)
Backed out changeset a972d6b4434e (bug 1492664)
Backed out changeset 5ea6f03f845e (bug 1492664)
Backed out changeset 0699d3873e44 (bug 1492664)

--HG--
extra : histedit_source : 5cb1f7e50f25d4a875c1a58c86b7dce902e1a89c%2C20f1ab1a843b612cfcc67cf5c6ff745d65abf076
2018-12-20 12:43:22 +02:00
Razvan Maries
f658ebcbab Merge mozilla-inbound to mozilla-central a=merge 2018-12-20 07:04:06 +02:00
Nick Alexander
801b2fd4e8 Bug 1515282 - Fix mobile/android artifact build bustage. r=froydnj
This was fallout from Bug 1509573.  That ticket pushed the Android APKs step
into the export tier, where it is required; but since most things in export are
only required for compilation, the target is not itself built by default, and
in particular, not during an artifact build.  That's not right; this fixes it.

Differential Revision: https://phabricator.services.mozilla.com/D15002

--HG--
extra : moz-landing-system : lando
2018-12-19 20:35:16 +00:00
Agi Sferro
09aa32663e Bug 1458668 - Link CHANGELOG.md in javadoc. r=snorp,geckoview-reviewers
This moves the CHANGELOG.md file to a /doc-files folder that gets picked up by
javadoc.

Our javadoc files are hosted on a github.io page which will render the markdown
file with the geckoview profile.

Depends on D13883

Differential Revision: https://phabricator.services.mozilla.com/D14786

--HG--
rename : mobile/android/geckoview/CHANGELOG.md => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/doc-files/CHANGELOG.md
extra : moz-landing-system : lando
2018-12-19 15:48:17 +00:00
James Willcox
4fc444bb59 Bug 1514252 - Use 160 DPI and a device pixel scale of 1.0 for GeckoView tests. r=geckoview-reviewers,mbrubeck#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D14565

--HG--
extra : moz-landing-system : lando
2018-12-19 16:43:29 +00:00
Eugen Sawin
b27a383fe0 Bug 1511477 - [2.0] Extend tracking protection test. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D14792

--HG--
extra : moz-landing-system : lando
2018-12-19 15:48:47 +00:00
Margareta Eliza Balazs
2e5e28f518 Backed out 16 changesets (bug 1492664) for breaking developer artifact builds, requested by standard8 a=backout
Backed out changeset 31e500489665 (bug 1492664)
Backed out changeset f4945658d45f (bug 1492664)
Backed out changeset 6d17291b8b92 (bug 1492664)
Backed out changeset 90f3faa36137 (bug 1492664)
Backed out changeset 0b229b00818a (bug 1492664)
Backed out changeset 5eb2c77d70a9 (bug 1492664)
Backed out changeset e1ebad5d89c5 (bug 1492664)
Backed out changeset 3017e5890739 (bug 1492664)
Backed out changeset c8b7e620eabf (bug 1492664)
Backed out changeset d3dfbd848236 (bug 1492664)
Backed out changeset 5c92bb5ac895 (bug 1492664)
Backed out changeset fb7cfca6ebc3 (bug 1492664)
Backed out changeset 0c4101230d4d (bug 1492664)
Backed out changeset b93a0fcc86f3 (bug 1492664)
Backed out changeset 6dc9522ee0bf (bug 1492664)
Backed out changeset 85d7f8b330eb (bug 1492664)
2018-12-19 11:45:29 +02:00
Andrew Swan
a616b3883c Bug 1511211 Re-enable addon test in testDistribution.java r=nalexander
This test formerly used a bootstrapped extension.  Converting it to a
webextension is straightforward, except for the fact that webextensions
are started asynchronously, so the test has to wait for a message from
the addon instead of just assuming it is started synchronously during
distribution handling.

Differential Revision: https://phabricator.services.mozilla.com/D13635

--HG--
extra : moz-landing-system : lando
2018-12-14 20:41:19 +00:00
Nick Alexander
f509ab73ad Bug 1509573 - Part 3: Use |make -C ... stage-package| rather than special Make target. r=snorp
This splits the two stage-package invocations (which are rather slow)
between Fennec and GeckoView, hopefully speeding local GV development
up a little (in the IDE).

The stage-package invocations depend on |mach build faster|, because
the omnijar contents might need to be updated.

In addition, we feed the packaged libs (and asset libs) through.

Differential Revision: https://phabricator.services.mozilla.com/D12799

--HG--
extra : moz-landing-system : lando
2018-12-18 23:01:16 +00:00
Nick Alexander
e22899b7cf Bug 1509573 - Part 2: Make |mach build faster| handle Android generated files. r=froydnj
This is just an awkward feature of the FasterMake build system:
without a direct consumer, GENERATED_FILES aren't handled.  We
"consume" them into a dummy directory that isn't packaged.  Sadly, the
FasterMake generic rule doesn't handle relative directories smoothly,
so we have to special case that too.

Differential Revision: https://phabricator.services.mozilla.com/D12796

--HG--
extra : moz-landing-system : lando
2018-12-18 23:00:59 +00:00
Nick Alexander
a8199ab531 Bug 1509573 - Part 1: Use |mach build ...| rather than special Make target. r=snorp
This uses |mach build mobile/android/base/...| rather than a custom
target, reducing Make magic and making it a little easier to reason
about the Gradle build.  This is somewhat rearranging deckchairs, but
the more that gets out of Make and into moz.build, the simpler our
lives become.

The shared `onlyIf` Gradle guard will be used to make it very clear
when certain tasks are being skipped, as we move details about Gecko
binaries to depend on the Gradle task execution graph.

I also took the opportunity to improve the task logging.

Differential Revision: https://phabricator.services.mozilla.com/D12798

--HG--
extra : moz-landing-system : lando
2018-12-18 23:54:08 +00:00
Nick Alexander
b1f817c8c9 Bug 1509573 - Part 0: Only compile Java via Gradle in export tier. r=chmanchester.mielczarek
This was always an accident of history: we forced export tier without
avoiding it in the libs tier.

Differential Revision: https://phabricator.services.mozilla.com/D14893

--HG--
extra : moz-landing-system : lando
2018-12-18 23:25:55 +00:00