Commit Graph

28179 Commits

Author SHA1 Message Date
Andreea Pavel
0200c7c9fa Merge mozilla-inbound to mozilla-central. a=merge 2019-04-14 00:45:44 +03:00
Coroiu Cristina
564703e75c Backed out changeset b36ee12b7088 (bug 1185000) for browser-chrome failures at toolkit/components/passwordmgr/test/browser/browser_notifications_2.js 2019-04-13 11:13:35 +03:00
Csoregi Natalia
dbf1e77fba Backed out changeset f7cce6a270c2 (bug 1410749) for Android 4.3 failures on test_ext_tabs_sendMessage.html. CLOSED TREE 2019-04-13 03:24:55 +03:00
Dylan Roeh
f4ada1e09b Bug 1509110 - Add testing for onHistoryStateChange and gotoHistoryIndex. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24532

--HG--
extra : moz-landing-system : lando
2019-04-12 22:55:00 +00:00
Dylan Roeh
c1dd451d30 Bug 1509110 - Add HistoryItem and HistoryList classes, HistoryDelegate.onHistoryStateChange callback, and GeckoSession.gotoHistoryIndex. r=esawin,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24439

--HG--
extra : moz-landing-system : lando
2019-04-12 22:54:37 +00:00
prathiksha
497abd940b Bug 1185000 - Password manager should not offer to save credit card numbers. r=jaws
Password manager should not offer to save credit card numbers in certain straight-forward cases.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 21:54:06 +00:00
Jan Henning
96ef73cc3d Bug 1410749 - Start tab ID numbering from #1. r=geckoview-reviewers,esawin
It's easier this way than fixing who knows how many Webextension APIs that have
learned from Desktop that there is no tab #0 and that therefore refuse to work
in our first tab.

We'll also make a similar change to GeckoView's stub implementation of the tab
API because that affects Custom Tabs and PWAs in Fennec for now.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 20:47:32 +00:00
Eugen Sawin
4f3f6120d8 Bug 1538337 - [1.1] Add fingerprinting trackers to Content Blocking API. r=snorp,dimi,baku
Differential Revision: https://phabricator.services.mozilla.com/D24777

--HG--
extra : moz-landing-system : lando
2019-04-12 13:08:10 +00:00
Oana Pop Rus
212a653d81 Backed out 6 changesets (bug 1531833) for geckoview failures on PermissionDelegateTest.media CLOSED TREE
Backed out changeset f90ad6bb8ebd (bug 1531833)
Backed out changeset 465570a54b46 (bug 1531833)
Backed out changeset e725253ee976 (bug 1531833)
Backed out changeset 74ad8e7a722b (bug 1531833)
Backed out changeset b1268e5f7023 (bug 1531833)
Backed out changeset e3ec78b2db1f (bug 1531833)

--HG--
extra : amend_source : 81aa19c352e72cac2369e014d19ec5a896538b21
2019-04-11 21:16:55 +03:00
Oana Pop Rus
7977731cfd Backed out 2 changesets (bug 1509110) for geckoview failures on HistoryDelegateTest on a CLOSED TREE
Backed out changeset 1bc29703a90f (bug 1509110)
Backed out changeset 9ed5bb5e0cfc (bug 1509110)
2019-04-11 21:12:26 +03:00
Andrew Swan
9a58fa2896 Bug 1539598 Require pre-install confirmation on all addons installs from outside about:addons r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D26024

--HG--
extra : rebase_source : 6f67d4637ea1160031afce5307cdb522c9ecccce
extra : source : 7a05ac03465cb38ba5a798cb762ccf20a6635f23
2019-04-03 15:30:38 -07:00
Dylan Roeh
6da9d85f13 Bug 1509110 - Add testing for onHistoryStateChange and gotoHistoryIndex. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24532

--HG--
extra : moz-landing-system : lando
2019-04-11 16:47:12 +00:00
Dylan Roeh
a7923fe371 Bug 1509110 - Add HistoryItem and HistoryList classes, HistoryDelegate.onHistoryStateChange callback, and GeckoSession.gotoHistoryIndex. r=esawin,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24439

--HG--
extra : moz-landing-system : lando
2019-04-11 16:46:49 +00:00
Andreea Pavel
2a5a89a5ec Backed out 2 changesets (bug 1509110) for failing geckoview on a CLOSED TREE
Backed out changeset 81253689d39c (bug 1509110)
Backed out changeset f3338782b169 (bug 1509110)
2019-04-11 19:19:28 +03:00
Dylan Roeh
c2281e0427 Bug 1509110 - Add testing for onHistoryStateChange and gotoHistoryIndex. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24532

--HG--
extra : moz-landing-system : lando
2019-04-11 12:51:32 +00:00
Dylan Roeh
207106354e Bug 1509110 - Add HistoryItem and HistoryList classes, HistoryDelegate.onHistoryStateChange callback, and GeckoSession.gotoHistoryIndex. r=esawin,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D24439

--HG--
extra : moz-landing-system : lando
2019-04-11 12:51:12 +00:00
Peter Van der Beken
023a72eb9b Bug 1534638 - Part 1: remove unused arguments from session history listeners. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D25761

--HG--
extra : moz-landing-system : lando
2019-04-04 16:18:48 +00:00
Paul Adenot
9936332833 Bug 1531833 - Add a Java method that enables and disable all that is needed to do audio communication with an earpiece. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D21735

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Paul Adenot
55767449c2 Bug 1531833 - Add bluetooth permission to GeckoView. r=snorp
This is needed to open an SCO channel and do proper (low-latency) bluetooth
communication when doing a call using WebRTC, or simply recording local audio in
a web application.

I think this is more of a GeckoView thing, but I'm a bit fuzzy on the
distinction, maybe it's the wrong manifest. I tested using Fennec.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:33 +00:00
Marcos Cáceres
6a3953940b Bug 1534756 - Don't throw exception in ManifestObtainer if a document has no manifest r=snorp
We now return null when the manifest lacks a href or is missing.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 12:46:41 +00:00
Tim Nguyen
5fbe70260e Bug 1543468 - Stop using toolkit netError.css URL on Android. r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D26964

--HG--
extra : moz-landing-system : lando
2019-04-10 19:32:20 +00:00
Nick Alexander
a8c9fd6a83 Bug 1542920 - Enable Marionette by default. r=froydnj
In particular, this enables Marionette in local Fennec builds, which
were the only place it wasn't enabled by default.  (Automation builds
all enabled Marionette.)  That default is getting in the way of the
Performance Team (and others!) testing GeckoView-based products
easily.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 14:11:17 +00:00
Petru Lingurar
87f28c4271 Bug 1542776 - Don't show Onboarding if first opened from external link; r=AndreiLazar
..And ignore trying to show it again in future app starts.
This patch resolves a regression and restore the previous behavior.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 14:57:13 +00:00
Agi Sferro
41ada62a03 Bug 1543396 - Simplify GeckoView's api.txt file. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D26913

--HG--
extra : moz-landing-system : lando
2019-04-10 17:46:09 +00:00
Jonathan Kew
f41c23be63 Bug 1541500 - Apply Android ::selection styling to SVG as well as HTML content. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D25980

--HG--
extra : moz-landing-system : lando
2019-04-10 10:44:30 +00:00
Sebastian Hengst
8c246c9332 Bug 1541017 - Update in-tree bugzilla components which used 'Android Background Services'. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D25765

--HG--
extra : moz-landing-system : lando
2019-04-09 20:46:36 +00:00
Brindusan Cristian
369ab2687e Backed out changeset ea2baf2c9ae7 (bug 1534756) for mochitest failures at test_ManifestProcessor_JSON.html. 2019-04-10 05:29:46 +03:00
Agi Sferro
050acb72a1 Bug 1541609 - [geckoview] Enforce packages in API. r=snorp,esawin
Depends On D26029

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

--HG--
extra : moz-landing-system : lando
2019-04-10 01:50:58 +00:00
Agi Sferro
9653a49d3e Bug 1541609 - [geckoview] Add missing nullability annotations. r=esawin
apilint 0.1.9 fixes a bug that was causing us to miss some annotation lints.
This commit fixes all of them before we can upgrade.

Depends On D26028

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

--HG--
extra : moz-landing-system : lando
2019-04-10 01:51:05 +00:00
Agi Sferro
9530edb8c2 Bug 1540790 - [api] Remove all org.mozilla.gecko references. r=snorp
Depends On D26027

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

--HG--
extra : moz-landing-system : lando
2019-04-10 01:51:07 +00:00
Agi Sferro
7928d89a55 Bug 1514238 - Make RuntimeTelemetry.getSnapshot return a JSONObject. r=esawin,snorp
Depends On D26026

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

--HG--
extra : moz-landing-system : lando
2019-04-10 01:51:15 +00:00
Agi Sferro
bc6645103e Bug 1541606 - Add @NonNull to all fields. r=esawin
Depends On D26025

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

--HG--
extra : moz-landing-system : lando
2019-04-10 01:51:17 +00:00
Agi Sferro
8d021a698c Bug 1539639 - [geckoview] Add eslint for indentation and fix existing. r=esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D26025

--HG--
extra : moz-landing-system : lando
2019-04-10 01:51:24 +00:00
Marcos Cáceres
585f841266 Bug 1534756 - Don't throw exception in ManifestObtainer if a document has no manifest r=snorp
We now return null when the manifest lacks a href or is missing.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 20:32:54 +00:00
Nick Alexander
b525daac01 Bug 1540820 - Don't write generated JNI wrappers for every Java-level change. r=agi
This was fallout from Bug 1509572, which moved the "invalidation
smarts" to Gradle. Unfortunately, those smarts are not smart enough:
there are many situations where the annotations might change (a new
method) but where they don't actually change (a new method that isn't
annotated with @JNITarget).

Since we don't want to spend the time to make the "invalidation
smarts" truly smart, we need to bring back this little bit of Bug
1509572.

While we're here, we ensure that there is only one JNI wrapper
generation task for GeckoView and Fennec, regardless of variant.
Right now, those are named like:

- geckoview:generateJNIWrappersForGeneratedWithGeckoBinariesDebug
- app:generateJNIWrappersForFennecWithoutGeckoBinariesDebug

See https://bugzilla.mozilla.org/show_bug.cgi?id=1509539#c1 for some
discussion of these JNI wrapper generation tasks.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 20:02:44 +00:00
Cosmin Sabou
537bd71d70 Backed out changeset 47d793fbd8cc (bug 1533385) at nalexander's request.
--HG--
extra : rebase_source : 64b1c5ba60037c5aaf2b3eb1b515f78db271a1ae
2019-04-09 19:57:58 +03:00
Mike Hommey
071a2fe984 Bug 1541792 - Replace linker magic with manual component registration. r=froydnj
Before bug 938437, we had a rather large and error-prone
nsStaticXULComponents.cpp used to register all modules. That was
replaced with clever use of the linker, which allowed to avoid the mess
that maintaining that file was.

Fast forward to now, where after bug 1524687 and other work that
preceded it, we have a much smaller number of remaining static xpcom
components, registered via this linker hack, and don't expect to add
any new ones. The list should eventually go down to zero.

Within that context, it seems to be the right time to get rid of the
magic, and with it the problems it causes on its own.

Some of those components could probably be trivially be converted to
static registration via .conf files, but I didn't want to deal with the
possible need to increase the number of dummy modules in XPCOMInit.cpp.
They can still be converted as a followup.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 02:30:56 +00:00
John Lin
2441080e34 Bug 1542440 - Recycle sample directly rather than through CodecProxy. r=jya
mJavaDecoder is invalid after the decoder is shut down and should never
be used.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 09:16:20 +00:00
Avery Berninger
fa0b54611b Bug 1523741 - Converting legacy aboutTelemetry to Fluent aboutTelemetry, r=jaws,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D20417

--HG--
extra : moz-landing-system : lando
2019-04-08 09:15:16 +00:00
Makoto Kato
7b1052018a Bug 1530486 - FFTV+GV can't close Keyboard popup when pressing hardware back r=esawin
`EditorInfo.IME_ACTION_PREVIOUS` is used when clicking `Previous` key on FireTV's software keyboard.  This key on System's WebView closes software keyboard and doesn't generate any keyboard event such as `ENTER`. So we should close it like System's WebView.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 11:31:08 +00:00
Cosmin Sabou
2174454bff Backed out changeset 7e40ec0c948d (bug 1523741) for telemetry failures on aboutTelemetry.homeSection. 2019-04-06 20:44:55 +03:00
Avery Berninger
09dac60807 Bug 1523741 - Converting legacy aboutTelemetry to Fluent aboutTelemetry, r=jaws,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D20417

--HG--
extra : moz-landing-system : lando
2019-04-06 00:54:52 +00:00
John Lin
e86d5d39e0 Bug 1540036 - p2: Check buffer and codec state before processing buffers. r=jya
HandleOutput() runs on Android binder thread pool and could be preempted
by RemoteDateDecoder task queue. That means ProcessOutput() could be scheduled
after ProcessShutdown() or ProcessFlush(). When that happens, aBuffer is no
long valid and should never be processed, and aSample can be
recycled immediately.
Also assert preconditions of buffers received from Java callbacks.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:01:56 +00:00
John Lin
fa9a0bc673 Bug 1540036 - p1: Handle buffer change for flush(). r=jya
When remote codec executes flush(), it throws away existing buffers:
- memorized buffers are no longer valid and need to be forgotten
- samples returned before flush() will have null buffers and should
  be released back to remote codec immediately.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 20:00:21 +00:00
Randall E. Barker
a7ed7c515a Bug 1531531 - Update GeckoView API implementation to use scrollToVisual() in place of window.scrollTo() r=geckoview-reviewers,botond,esawin,droeh
Differential Revision: https://phabricator.services.mozilla.com/D25491

--HG--
extra : moz-landing-system : lando
2019-04-05 20:09:55 +00:00
Makoto Kato
b2f37b7aad Bug 1474902 - Part 1. Set event time when translating to TAB key r=esawin
Summary:
Since event time isn't set when translating ENTER key to TAB key, comparing
event time hits an assertion.  So event time should be set.

Reviewers: esawin

Reviewed By: esawin

Bug #: 1474902

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

--HG--
extra : rebase_source : 0d00bb0364b77b48645143ceb7eb20cad8663d48
extra : histedit_source : 44be4949d5d196458fa3b5ae3eb056340cf8575d
2019-04-05 16:59:47 +09:00
Makoto Kato
20f0f47eda Bug 1539827 - Use cmd_selectAll instead of nsISelectionController.selectAll on action bar r=geckoview-reviewers,esawin
After bug 676268 is landed, Gecko/Android supports `text/html` mime type on
clipboard. But copy command is sometimes failed after select all is executed.

`nsISelectionContoller.selectAll` is different of `cmd_selectAll`.
Since `cmd_selectAll` that is used on Firefox desktop doesn't select root
element, copy command always works well. So we should use it like desktop
browser on Fennec.

Also, GV already uses cmd_selectAll on action bar, so this is Fennec only.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 15:15:03 +00:00
Thomas Wisniewski
3c0b32cd63 Bug 1539916 - Update about:compat to show the proper URL and fix page-refresh glitches; r=kmag
Update about:compat to show the proper URL and fix page-refresh glitches

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

--HG--
extra : moz-landing-system : lando
2019-04-04 23:47:03 +00:00
Agi Sferro
7409bb591e Bug 1542005 - Fix javadoc error in GeckoSession. r=geckoview-reviewers,rbarker
Differential Revision: https://phabricator.services.mozilla.com/D26219

--HG--
extra : moz-landing-system : lando
2019-04-04 18:56:40 +00:00
Nick Alexander
5fa2d6f5cf Bug 1533385 - Make GeckoView read configuration options from filesystem. r=droeh
The configuration file format is YAML and looks like:
```
prefs:
  foo.bar.boolean: true
  foo.bar.string: "string"
  foo.bar.int: 500
env:
  MOZ_LOG: nsHttp:5
args: [--marionette]
```
By default, if the consuming App is debuggable, GeckoView will read
configuration from `/data/local/tmp/$PACKAGE-geckoview-config.yaml` at
startup.

For consumers (including browsers) that want to allow the underlying
GeckoView to be remote controlled in some way, the
`GeckoRuntimeSettings.Builder.configFilePath()` method allows to avoid
the default behaviour depending on the `android:debuggable` flag.  For
example, release versions of Firefox for Android will want to allow
this configuration when appropriate App-level settings are toggled.

The additional configuration is appended after any existing configuration
methods, e.g., after anything specified using Intent argument extras
or existing `GeckoRuntimeSettings.Builder` methods.

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

--HG--
extra : moz-landing-system : lando
2019-04-04 14:30:59 +00:00