Граф коммитов

23881 Коммитов

Автор SHA1 Сообщение Дата
Andrei Lazar 67097b0731 Bug 1526929 Search Widget for Fennec Part 2 - Wire search widget component with the main component r=petru
Implemented search widget's intent handling in BrowserApp class.

Depends on D20149

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

--HG--
extra : moz-landing-system : lando
2019-03-08 15:04:23 +00:00
Andrei Lazar 752de38105 Bug 1526926 Search Widget for Fennec Part 1 - Add search widget code base r=petru
Added Search widget provider class, declared the provider in the manifest and created mock layout for it.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 15:03:52 +00:00
Csoregi Natalia afc7afdf16 Backed out 2 changesets (bug 1532850) for apilint failure. CLOSED TREE
Backed out changeset 8feadb1f48f2 (bug 1532850)
Backed out changeset d3eed8f55897 (bug 1532850)
2019-03-09 03:13:56 +02:00
Johann Hofmann 1a4514ad76 Bug 1511111 - Convert UrlClassifierSkipListService to static registration. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D20318

--HG--
rename : netwerk/url-classifier/UrlClassifierSkipListService.js => netwerk/url-classifier/UrlClassifierSkipListService.jsm
extra : moz-landing-system : lando
2019-03-08 22:21:39 +00:00
Johann Hofmann fde7df021a Bug 1511111 - Add nsIUrlClassifierSkipListService to integrate url-classifier with RemoteSettings and pref list updates. r=Ehsan,baku,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D18597

--HG--
extra : moz-landing-system : lando
2019-03-08 22:21:32 +00:00
Hiroyuki Ikezoe de3fbc50e9 Bug 1532850 - Implement the backend for prefers-color-scheme on Android. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D22272

--HG--
extra : moz-landing-system : lando
2019-03-09 00:21:21 +00:00
Botond Ballo 0e4341156f Bug 1527675 - Enable containerless scrolling on the nightly channel in GeckoView. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D19684

--HG--
extra : moz-landing-system : lando
2019-03-08 21:42:19 +00:00
Vlad Baicu 924d521c85 Bug 1380854 - Track Sign in and sync finished events in LP.r=petru
Differential Revision: https://phabricator.services.mozilla.com/D22703

--HG--
extra : moz-landing-system : lando
2019-03-08 13:49:09 +00:00
Vlad Baicu e84d7f028b Bug 1519418 - Replace MMA preferences with sharedPreferences.r=petru
Patch D16319 attempted to clean the MMA code and allow for easier debugging
of LP deeplinks on dev builds. However it introduced a regression because the
MMA preferences were being accessed by the initializing activity. By making
getDeviceId public and static, calling it from another activity would result
in a null value returned. I have refactored the code to use shared preferences
and remove the dependency on other activities.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 17:33:57 +00:00
arthur.iakab 77aa564189 Merge mozilla-central to autoland 2019-03-08 06:41:04 +02:00
arthur.iakab 013bbfceb8 Merge inbound to mozilla-central a=merge 2019-03-08 06:39:50 +02:00
arthur.iakab eba6cadac2 Merge mozilla-central to mozilla-inbound 2019-03-08 00:19:35 +02:00
Botond Ballo 1db554d611 Bug 1158392 - Enable containerless scrolling on the nightly channel in Fennec. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D19683

--HG--
extra : moz-landing-system : lando
2019-03-07 18:03:32 +00:00
Dan Minor 6b482f0537 Bug 1532756 - Rename geckomediaplugin to gmplugin on Android; r=droeh
In Bug 1514043 we renamed the geckomediaplugin to gmplugin, but missed renaming
it on Android. This prevents the plugin from loading, which breaks OpenH264 in
WebRTC.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 16:24:28 +00:00
Emily Toop c336620b27 Bug 1528303 - Update GVE to demonstrate how to handle media permissions correctly r=geckoview-reviewers,snorp
Update `onMediaPermissionRequest` documentation to better reflect usage

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

--HG--
extra : moz-landing-system : lando
2019-03-06 15:41:26 +00:00
Ciure Andrei f18158766f Backed out changeset 3fb6c01dd2b0 (bug 1531176) for causing gradle toolchain bustage CLOSED TREE 2019-03-07 14:23:03 +02:00
Sylvestre Ledru 3efed81946 Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-07 12:04:53 +00:00
Ciure Andrei f1a9fa2676 Backed out changeset 0f2b9b0bf9b9 (bug 1531176) for google-geolocation-api-keyfile build bustages CLOSED TREE 2019-03-07 13:58:33 +02:00
Sylvestre Ledru 90181c47ae Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-07 11:31:18 +00:00
Ciure Andrei 06cf4b1f67 Backed out changeset 6c2e00bcd2bb (bug 1531176) due to google-location-api-keyfile build busatges CLOSED TREE 2019-03-07 10:49:26 +02:00
Sylvestre Ledru 03ac617a44 Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-06 23:06:10 +00:00
Mike Hommey 544e602cee Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-08 01:37:44 +00:00
Noemi Erli ef8332d769 Backed out changeset bf9beb4c67a5 (bug 1531632) for causing multiple failures in remoteautomation.py CLOSED TREE 2019-03-08 02:59:09 +02:00
Mike Hommey ceb9d1950e Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-07 22:51:36 +00:00
Timm 1b4c9acdc7 Bug 1510961 - "Class Structure Warning: 'private' method declared 'final'". r=etoop 2019-03-05 17:41:00 +02:00
Makoto Kato 15f9c74d8d Bug 1532526 - Add ATOK Professional to workaround list. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D22071

--HG--
extra : moz-landing-system : lando
2019-03-07 02:07:06 +00:00
Dorel Luca 571984a7b6 Backed out changeset b57ec6985cd1 (bug 1531632) for Geckoview failures. CLOSED TREE
--HG--
extra : rebase_source : bf3f36df156ac78c02b027923af4a9615053fac2
2019-03-07 02:29:50 +02:00
Brindusan Cristian 202a874eff Backed out changeset e908fbc7b930 (bug 1531176) for bc failures at browser_Troubleshoot.js. CLOSED TREE
--HG--
extra : histedit_source : 0f5e92b90439bfb55d617fc234deb4b6f68e654b
2019-03-08 00:07:56 +02:00
Sylvestre Ledru e4906acdf0 Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-07 21:05:32 +00:00
Mike Hommey bccb685e03 Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-06 15:36:19 +00:00
Mike Hommey 9961a0af3d Bug 1530908 - Don't use different mozconfigs for artifact builds. r=chmanchester
Artifact mozconfigs are not necessarily up-to-date wrt changes to the
nightly mozconfigs, and all in all, shouldn't be much different from
them.

It's just better to use the nightly mozconfigs (or beta on beta, etc.)
and make the mozconfigs themselves handle the few things that need to be
different when the USE_ARTIFACT environment is set (which is now
consistently set by taskcluster)

This does have the side effect of turning builds that actually don't
support artifact builds red when using --artifact on try, instead of
having them silently not be artifact builds as currently happens.

Depends on D21314

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

--HG--
extra : moz-landing-system : lando
2019-03-06 22:48:05 +00:00
Mike Hommey 50e4660cb8 Bug 1530908 - Move --enable-artifact-build-symbols to mozconfig.artifact. r=chmanchester
Depends on D21313

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

--HG--
extra : moz-landing-system : lando
2019-03-05 06:58:05 +00:00
Mike Hommey d876d02d9a Bug 1530908 - Use an environment variable to enable LTO on automation. r=chmanchester
This allows to disable it more easily for artifact builds.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 22:47:08 +00:00
Dana Keeler 60d0ba7429 bug 1531924 - remove unnecessary nsIBadCertListener2 in Firefox for Android and improve adding certificate error overrides r=snorp
Before this patch, Firefox for Android (and GeckoView) would make an extra
(unnecessary) XHR to gather the information it needed to add a certificate error
override. However, the docShell already has the required information (via
failedChannel.securityInfo), so this patch makes it so.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 20:46:32 +00:00
Jan Henning 50c69a3713 Bug 1529863 - Remove remnants of unused browser.firstrun and browser.snippets prefs. r=geckoview-reviewers,whimboo,esawin
"browser.firstrun.*" seems to have been unused since the end of XUL-based
Fennec, whereas the code referencing the "browser.snippets.*" prefs was removed
in bug 1482836.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 14:59:46 +00:00
Edouard Oger 59ae6a0112 Bug 1532098 - Update login instead delete then add. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22346

--HG--
extra : moz-landing-system : lando
2019-03-06 17:52:30 +00:00
Eugen Sawin 0d3182e78d Bug 1531179 - [1.1] Remove noisy data-received signal and simplify page load progress tracking. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D21465

--HG--
extra : moz-landing-system : lando
2019-03-06 15:34:32 +00:00
Dennis Schubert 9e4aca9060 Bug 1532346 - Land WebCompat Release test interventions in tree. r=miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D22159

--HG--
extra : moz-landing-system : lando
2019-03-05 21:29:04 +00:00
Alex Gaynor e5279ff3f7 Bug 1532727 - replace OptionalURIParams with URIParams? in IPDL; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D22138

--HG--
extra : moz-landing-system : lando
2019-03-06 14:05:50 +00:00
Chris Pearce db3101848c Bug 1532578 - Make OpenH264 visible by default on mobile. r=drno
Differential Revision: https://phabricator.services.mozilla.com/D22179

--HG--
extra : moz-landing-system : lando
2019-03-05 22:27:16 +00:00
ECarr 1371a0545c Bug 1531959 - Change all RemoteLogins message names to PasswordManager in pwmgr code. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D22176

--HG--
extra : moz-landing-system : lando
2019-03-05 21:08:49 +00:00
Brindusan Cristian b1a6b274b6 Backed out 6 changesets (bug 1525662, bug 1501665) for geckoview failures at org.mozilla.geckoview.test.NavigationDelegateTest.loadData_noMimeType. CLOSED TREE
Backed out changeset 1fa7091b4b4e (bug 1525662)
Backed out changeset 32249c69fee9 (bug 1525662)
Backed out changeset aaa8fbdbbe48 (bug 1525662)
Backed out changeset f07e25fac5b2 (bug 1525662)
Backed out changeset a8ec11730706 (bug 1525662)
Backed out changeset 159753062cfa (bug 1501665)
2019-03-05 23:42:55 +02:00
Brindusan Cristian 1f6d297e33 Backed out 5 changesets (bug 1508976, bug 1522581) for android geckoview bustages at /usr/bin/python2.7. CLOSED TREE
Backed out changeset 7a6be593b0be (bug 1522581)
Backed out changeset c47b37ac1775 (bug 1522581)
Backed out changeset 91c31d2a7706 (bug 1508976)
Backed out changeset da57df805c56 (bug 1508976)
Backed out changeset 4e5d97c93515 (bug 1508976)
2019-03-05 22:42:15 +02:00
Jan Henning ae8ca78a46 Bug 1525662 - Part 5: Turn on word wrapping by default for plain text documents on mobile. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D19308

--HG--
extra : moz-landing-system : lando
2019-03-05 18:01:23 +00:00
Nick Alexander 4e61bae5d6 Bug 1508976 - Post: Don't include architecture in multi-architecture GeckoView artifactId. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15772

--HG--
extra : moz-landing-system : lando
2019-03-05 17:48:35 +00:00
Nick Alexander 5854b41436 Bug 1508976 - Produce a multi-architecture GeckoView "fat AAR". r=snorp,agi,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15771

--HG--
extra : moz-landing-system : lando
2019-03-05 17:52:54 +00:00
Petru-Mugurel Lingurar 2583a1b4d3 Bug 1507427 - Apply size restrictions for the largeIcon used in NotificationClient; r=JanH
There are crash reports for large heap allocations for Bitmaps from the
NotificationClient#add method.
As more of a speculative fix this patch introduces bitmap size constraints for
the largeIcon of the notification this method posts. Previously the app would
happily load any image from the passed in image URL even though the maximum
size the largeIcon can be is 256x256 pixels.

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

--HG--
extra : moz-landing-system : lando
2019-03-04 17:39:53 +00:00
Jan Henning ccccbd6aa6 Bug 1525662 - Part 6: Turn on word wrapping by default for plain text documents on mobile. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D19308

--HG--
extra : rebase_source : a794e2ceb960a100847520b03638c2a53dac0637
extra : amend_source : 632898d49006e7d6e0739931ca8cac1c1578ead2
extra : source : dcca155d1dd6a18930ea76dbd1048006435e5840
2019-02-10 14:28:35 +01:00
Jan Henning d40c7a2617 Bug 1525662 - Part 5: Use smaller image for Geckoview tests. r=snorp
The animation is cute, but one test is effectively treating the image data as a
text file, and displaying the whole file as text leads to *very* long loading
times on the ARM emulator when word-wrapping is turned on, especially when using
a debug build.

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

--HG--
extra : rebase_source : 796bd5eea8cfa2c5f23aaa0ed663114b2c0573e8
extra : amend_source : e28fb8981acba33a8b3ea6ae14eddae0c7292164
extra : source : 69dfaab9947c0c4b5e5b965abe9b26d0f054ef88
2019-03-11 20:18:54 +01:00
Makoto Kato c5697e457b Bug 1495985 - Restart input method to remove composition on some IMEs. r=geckoview-reviewers,esawin
When removing composing text, we call
`InputMethodManager.updateSelection(start, end, -1, -1)`.
But ATOK (Japanese input method by Justsystem) series do nothing. So, shadow
text and current text becomes mismatched.

As workaround, we need call `restartInput` to remove composing text if using
ATOK series.

According to ATOK team, ATOK has several packages name since they release
several customize version.

- `com.justsystems.atokmobile.*` (ATOK, ATOK subscription and etc)
- `com.atok.mobile.*` (OEM version)

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

--HG--
extra : amend_source : 3380064eef826666d11c34c303bf1a493750c28e
extra : histedit_source : 6038cbccc76cc7295abc5f961745070335e8dcdf
2019-02-21 17:27:07 +09:00
Emily Toop 02ade4a8a2 Bug 1462018 - Add API for taking screenshot of visible page.
Invert screen pixels in `nsWindow`.

Update `RequestScreenPixels` in `nsWindow` to accept a `GeckoResult` as an argument and save as a `GlobalRef`.
Update `RecvScreenPixels` in `nsWindow` in order to invert the image before sending over JNI rather than requiring callers to invert the image themselves.
Complete the `GeckoResult` if there is one in `RecvScreenPixels` instead of making a callback to the compositor.

Remove `RecvScreenPixels` from `GeckoSession` and `GeckoSession.Compositor`.
Move `RecvScreenPixels` and `getPixels` to `GeckoDisplay`
Rename `getPixels` to `capturePixels`

Return Bitmap from `RecvScreenPixels`.

Return `GeckoResult` from `capturePixels`.

Add doc comments to new methods and classes.
Update FennecNativeDriver to use `GeckoView` and `GeckoResult`.

Update API docs and Changelog

Add tests

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

--HG--
extra : moz-landing-system : lando
2019-03-02 10:09:08 +00:00
Razvan Maries c51046f730 Merge mozilla-inbound to mozilla-central a=merge 2019-03-02 11:41:18 +02:00
Dorel Luca fec4bbc689 Backed out changeset 85fce02180b6 (bug 1531632) for android failures 2019-03-02 01:53:39 +02:00
Mike Hommey 8955f8be1d Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-01 15:23:57 +00:00
Francesco Lodolo (:flod) cb56495da3 Bug 1531751 - Correct search parameter for mapy.cz searchplugin used in Czech (cs) version of Firefox and Firefox for Android r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D21690

--HG--
extra : moz-landing-system : lando
2019-03-01 17:09:58 +00:00
Gurzau Raul 82ce1d37c4 Backed out changeset 6c1f943e591c (bug 1462018) for robocop failures FennecNativeDriver.java on a CLOSED TREE.
--HG--
extra : rebase_source : 638605fe9606fd84271ba6aa02fda70daead7642
extra : histedit_source : 5c6c2c8161bb3ef5e16463aef62332ceed263a3f
2019-03-01 12:48:27 +02:00
Emily Toop 6337b6bf45 Bug 1462018 - Add API for taking screenshot of visible page. r=snorp,geckoview-reviewers
Invert screen pixels in `nsWindow`.

Update `RequestScreenPixels` in `nsWindow` to accept a `GeckoResult` as an argument and save as a `GlobalRef`.
Update `RecvScreenPixels` in `nsWindow` in order to invert the image before sending over JNI rather than requiring callers to invert the image themselves.
Complete the `GeckoResult` if there is one in `RecvScreenPixels` instead of making a callback to the compositor.

Remove `RecvScreenPixels` from `GeckoSession` and `GeckoSession.Compositor`.
Move `RecvScreenPixels` and `getPixels` to `GeckoDisplay`
Rename `getPixels` to `capturePixels`

Return Bitmap from `RecvScreenPixels`.

Return `GeckoResult` from `capturePixels`.

Add doc comments to new methods and classes.
Update FennecNativeDriver to use `GeckoView` and `GeckoResult`.

Update API docs and Changelog

Add tests

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

--HG--
extra : moz-landing-system : lando
2019-03-01 08:45:09 +00:00
Randall Barker 0c5a05c19a Bug 1529101 - Move GeckoVRManager to org.mozilla.geckoview package r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D20857

--HG--
extra : moz-landing-system : lando
2019-02-28 21:07:11 +00:00
Lee Salzman 0c46a0c440 Bug 1530471 - remove prefs for related to SkiaGL canvas r=jrmuizel
Depends on D21055

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

--HG--
extra : moz-landing-system : lando
2019-02-28 15:00:36 +00:00
Alphan Chen 6d33e62c06 Bug 1497147 - Rewrite "mapFrameTree" implementation to C++ r=peterv
Get rid of mapFrameTree() implementation

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

--HG--
extra : moz-landing-system : lando
2019-02-28 13:09:54 +00:00
Boris Zbarsky 9c5da5f234 Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D17327

--HG--
rename : dom/html/test/browser_refresh_wyciwyg_url.js => dom/html/test/browser_refresh_after_document_write.js
rename : dom/html/test/file_refresh_wyciwyg_url.html => dom/html/test/file_refresh_after_document_write.html
extra : moz-landing-system : lando
2019-02-28 01:09:48 +00:00
Jonathan Kingston f6680698bd Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-27 23:42:27 +00:00
Jonathan Kingston dd4c731d8c Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:54 +00:00
John Lin a5439ce1e3 Bug 1510340 - p1: reduce ExoPlayer default buffer size. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D20419

--HG--
extra : moz-landing-system : lando
2019-02-26 14:57:02 +00:00
Julian Descottes cdbf93e9a7 Bug 1528276 - Set DebuggerServer.keepAlive for RemoteDebugger and GeckoViewRemoteDebugger;r=ochameau
Depends on D20831

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

--HG--
extra : moz-landing-system : lando
2019-02-27 17:09:05 +00:00
James Willcox 61ca9441b1 Bug 1525959 - Skip some mochitests tests under GeckoView r=geckoview-reviewers,esawin
There are few things that are either Fennec-specific or don't work
currently under GeckoView w/ e10s under TestRunnerActivity. Disable
these so we can get some testing going in automation.

This also replaces 'isFennec' with the more correct 'is_fennec'.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 15:01:43 +00:00
Oana Pop Rus eda7a08ec6 Backed out changeset b63cae045a63 (bug 1462018) for geckoview failures 2019-02-27 14:42:59 +02:00
Emily Toop c616a388d1 Bug 1462018 - Add API for taking screenshot of visible page. r=geckoview-reviewers,snorp
Invert screen pixels in `nsWindow`.

Update `RequestScreenPixels` in `nsWindow` to accept a `GeckoResult` as an argument and save as a `GlobalRef`.
Update `RecvScreenPixels` in `nsWindow` in order to invert the image before sending over JNI rather than requiring callers to invert the image themselves.
Complete the `GeckoResult` if there is one in `RecvScreenPixels` instead of making a callback to the compositor.

Remove `RecvScreenPixels` from `GeckoSession` and `GeckoSession.Compositor`.
Move `RecvScreenPixels` and `getPixels` to `GeckoDisplay`
Rename `getPixels` to `capturePixels`

Return Bitmap from `RecvScreenPixels`.

Return `GeckoResult` from `capturePixels`.

Add doc comments to new methods and classes.
Update FennecNativeDriver to use `GeckoView` and `GeckoResult`.

Update API docs and Changelog

Add tests

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

--HG--
extra : moz-landing-system : lando
2019-02-26 10:51:02 +00:00
Makoto Kato f6085c16d6 Bug 1524926 - Move some CSS files from mobile/android to toolkit. r=geckoview-reviewers,snorp
Although about.css, aboutMemory.css and aboutSupport.css are mobile-specific
style, these CSS files are used in toolkit, not mobile/android.
Since GeckoView doesn't has chrome.jar, these files are missing. So we should
move these CSS files to toolkit since we have mobile theme in toolkit.

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

--HG--
rename : mobile/android/themes/core/about.css => toolkit/themes/mobile/global/about.css
rename : mobile/android/themes/core/aboutMemory.css => toolkit/themes/mobile/global/aboutMemory.css
rename : mobile/android/themes/core/aboutSupport.css => toolkit/themes/mobile/global/aboutSupport.css
extra : moz-landing-system : lando
2019-02-26 14:54:45 +00:00
Jan Henning 2a0386d4c6 Bug 1529367 - Part 2: Minor intent processing optimisation. r=snorp
The extension is only ever used for local files, so don't bother retrieving it
otherwise.

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

--HG--
extra : moz-landing-system : lando
2019-02-26 14:54:27 +00:00
Jan Henning 8ff617cb88 Bug 1529367 - Part 1: Don't send MIME type when querying external apps for non-local HTML documents. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D20861

--HG--
extra : moz-landing-system : lando
2019-02-25 20:07:55 +00:00
Jan Henning eb564828c4 Bug 1529258 - Part 2: Catch apps that register only generic HTTPS handlers, too. r=geckoview-reviewers,snorp
While it's not clear how many apps might still have a generic HTTP-only intent-
filter at this stage, we only collect that information once per session, so to
be on the safe side we still check both schemes separately and merge the data.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 19:46:28 +00:00
Jan Henning c8ba1b3b0c Bug 1529258 - Part 1: Slightly modernise HelperApps.jsm r=geckoview-reviewers,agi
Use the more concise way of defining functions and more arrow functions.
Also use a class to define "App" objects.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 18:50:11 +00:00
Eitan Isaacson f663d791e3 Bug 1524476 - Don't set the screen origin from synthesized MotionEvents. r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D20702

--HG--
extra : moz-landing-system : lando
2019-02-22 14:11:32 +00:00
Kris Maglione 39c294db57 Bug 1524688: Part 52 - Convert WebVTT components to static registration. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D18462

--HG--
rename : dom/media/webvtt/WebVTTParserWrapper.js => dom/media/webvtt/WebVTTParserWrapper.jsm
extra : rebase_source : 15b0b5dc533b7f9341498264cbf3ca36cff8e746
extra : source : 11f6682d9d9eedc6edcb2b8a496ae34501360c13
2019-01-30 11:31:25 -08:00
Kris Maglione 84e34e774b Bug 1524688: Part 28 - Convert SecurityReporter to static registration. r=johannh
--HG--
rename : toolkit/components/securityreporter/SecurityReporter.js => toolkit/components/securityreporter/SecurityReporter.jsm
extra : rebase_source : 30838ee2381b97fc5cc46cb9552d34005bf205a8
extra : source : 04b48bed408898fc4711a08fc66ecc9868486682
2019-03-01 12:55:54 -08:00
Petru Lingurar 5349aa6e59 Bug 1507531 - FilePicker will request WRITE_EXTERNAL_STORAGE; r=JanH
"Prior to Android 8.0 (API level 26), if an app requested a permission at
runtime and the permission was granted, the system would also incorrectly
grant the app the rest of the permissions that belonged to the same permission
group, and that were registered in the manifest.

For apps targeting Android 8.0, this behavior has been corrected. The app is
granted only the permissions it has explicitly requested. However, once the
user grants a permission to the app, all subsequent requests for permissions
in that permission group are automatically granted."
https://developer.android.com/about/versions/oreo/android-8.0-changes#rmp

Our FilePicker can delegate other applications to record media files
(photo/audio/video) which are then to be sent to websites. They must be saved
locally before the upload, scenario that wasn't possible anymore on Oreo+
because of the change in how Android handles runtime permissions.

As a way to get around this one could grant the "Storage" permission from
System Settings which would grant the app both READ and WRITE access.
But for actually being prepared to handle all situations our FilePicker must
ask for the WRITE_EXTERNAL_STORAGE permission at runtime.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 15:43:13 +00:00
Thomas Wisniewski 19cbb97ab8 Bug 1488845 - Add an about:compat page to the Webcompat GoFaster addon. r=denschub,kmag,Pike
Add an about:compat page to the Webcompat GoFaster addon.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 23:10:41 +00:00
Noemi Erli 7e23372938 Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
extra : rebase_source : de8796d5d7d7079af1b895a2f537371885f8cc6c
2019-02-26 00:09:40 +02:00
Christoph Kerschbaumer c8bb3d7749 Bug 1529869: Remove the 2 from speculate speculative(Anonymous)Connect2 within nsISpeculativeConnect.idl. r=valentin 2019-02-24 20:26:56 +01:00
Agi Sferro ee86fd5efc Bug 1518841 - Allow embedders to load WebExtensions in GeckoView. r=snorp,esawin
Depends On D16913

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

--HG--
extra : moz-landing-system : lando
2019-02-25 17:00:18 +00:00
Andreea Pavel f49b3214e3 Backed out changeset 51467afba450 (bug 1518841) for failing eslint at GeckoViewWebExtension.jsm on a CLOSED TREE 2019-02-25 18:53:15 +02:00
Agi Sferro 9ccb6c983d Bug 1518841 - Allow embedders to load WebExtensions in GeckoView. r=snorp,esawin
Depends On D16913

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:46 +00:00
Agi Sferro d6b900089c Bug 1522137 - Make resource://android return a nsIJARURI. r=snorp,mayhemer,bzbarsky
resource://android URIs always point to a "jar:" URI so it doesn't make sense
that the returned URL object implements nsIFileURL.

This also makes it so extensions can be loaded from a resource://android URI.

Audited all places where we use `nsIJARURI` and check for places where we
assume it looks like `jar:`: the only (!) place where we do that is here:

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/dom/xhr/XMLHttpRequestMainThread.cpp#1852

Where we have special handling for `jar:` URIs. It looks like we would have
less special handling for such a request to a `resource://android` and it could
be fixed by just checking for the interface instead, but that's what's already
happening today so it should work. That code is never reached for
`resource://android` URIs as `mIsMappedArrayBuffer` is false for those URIs
(see #2822). And the code is consistent in checking for the scheme instead of
the interface (the other check is here:
https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/dom/xhr/XMLHttpRequestMainThread.cpp#2822)

Audited all places where we do `EqualsLiteral("jar")`:
https://searchfox.org/mozilla-central/search?q=.EqualsLiteral%28%22jar%22%29&path=

`SubstituteRemoteChannel`: looks interesting, but uses
`nsISubstitutingProtocolHandler::ResolveURI` to first get the real URI (which
is a `jar:`) so it works for our case.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/protocol/res/ExtensionProtocolHandler.cpp#414

`SubstitutingProtocolHandler.cpp`

This case is explicitly fixed by this change, making it account for both
`"jar"` and `"resource"`.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/protocol/res/SubstitutingProtocolHandler.cpp#299

`ReadSourceFromFileName`: this also looks interesting, but uses the channel to
get the URI which returns the real `"jar"` URI and not the mapped `"resource"`.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/js/xpconnect/src/XPCJSRuntime.cpp#2837

`nsStringBundle.cpp`

Accounts for both `"jar"` and `"resource"`, so it should work the same.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/intl/strres/nsStringBundle.cpp#437

Audited all places where we use `nsINestedURI` to make sure they would work for
a `nsIJARURI` which does not implement `nsINestedURI`.

`BrowserContentHandler.jsm`

Uses `nsINestedURI` to figure out if a URI is local or not and then it checks
whether it's a `"file"`, `"resource"` or `"chrome"` URI, for a `nsIJARURI &
nsINestedURI` it would return a `"file"` which passes the test, for a
`nsIJARURI` alone it would return `"resource"` which is also considered local
by this code, so the result wouldn't change.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/browser/components/BrowserContentHandler.jsm#395-399

`nsScriptSecurityManager.cpp`

`GetOriginFromURI`: This is the reason why `SubstitutingJARURI` doesn't
implement `nsINestedURI`, the origin is computed starting from the innermost
URI, which in our case would be a file. The behavior in our case is that the
origin from a `resource://android` URI behaves like other `resource://` URIs,
which is what we expect.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/caps/nsScriptSecurityManager.cpp#169

`CheckLoadURIWithPrincipal`: for `nsIJARURI & nsINestedURI` this code will only
allow pages from the same jar to be in the same origin (which is correct), for
`nsIJARURI` this code is unreachable and it would allow every
`resource://android` to load every other `resource://android` URI (which is
essentially the same thing).

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/caps/nsScriptSecurityManager.cpp#874-876

`nsDocShell.cpp`

`DisplayLoadError`: Just looping through the nested URI chain to build an error
message, no concerns here (it would just ignore the `jar:` part, which is
fine).

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/docshell/base/nsDocShell.cpp#3986

`DoURILoad`: Looking for `view-source`, no concerns for `resource://android`.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/docshell/base/nsDocShell.cpp#9645

`nsObjectLoadingContent.cpp`

Also looking for `view-source`, no concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/dom/base/nsObjectLoadingContent.cpp#2004

`nsIconURI.cpp`/`nsIconURI.h`

Exposing `nsINestedURI`. No concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/image/decoders/icon/nsIconURI.cpp#58

`nsJARURI.cpp`/`nsJARURI.h`

Exposing `nsINestedURI`, the subject of this audit.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/modules/libjar/nsJARURI.cpp#45

`nsIOService.cpp`

`URIChainHasFlags`: This code looks at the chain of nested URIs to figure out
if the chain of protocols has a certain flags. for `nsIJARURI & nsINestedURI`
it would look at both `jar:` and `file:` protocols, while in `nsIJARURI` it
would only look at the `resource:` protocol, which is our intention, since we
want this URI to be treated like a `resource:` URI and nothing else. Note the
`resource:` URI is always local (enforced by `NewURI`), so this should be ok.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/base/nsIOService.cpp#1494

`nsNetUtil.cpp`/`nsNetUtil.h`

Implementation of `NS_ImplGetInnermostURI`, which wouldn't work for `nsIJARURI`
alone, as expected.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/base/nsNetUtil.h#704

`nsSimpleNestedURI.cpp`/`nsSimpleNestedURI.h`

Implementing `nsINestedURI` for `nsSimpleNestedURI`, no concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/base/nsSimpleNestedURI.cpp#19

`nsViewSourceHandler.cpp`

Looking at `view-source` inner URI to get the flags, no concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/protocol/viewsource/nsViewSourceHandler.cpp#49

`nsHtml5StreamParser.cpp`/`nsHtml5TreeOpExecutor.cpp`

More `view-source` handling code. No concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/parser/html/nsHtml5StreamParser.cpp#310

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/parser/html/nsHtml5TreeOpExecutor.cpp#884

`DownloadPlatform.cpp`

`IsURLPossiblyFromWeb`: This line is unreachable as the method would return
true because resource has `URI_IS_UI_RESOURCE`.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/components/downloads/DownloadPlatform.cpp#314

`getAnonymizedPath`: This code looks a little scary, and it's the first one
that seems to conflate the fact that `jar: == nsINestedURI`.

On the android case (line 2130) this code manually replaces the
`resource://android` URI with a `jar:` URI, so it wouldn't matter whether
`resource://android` implements `nsINestedURI` or not.

Actually this code could be a lot easier by using
`nsISubstitutingURL::resolveURI`, maybe I should open a bug.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/components/search/SearchService.jsm#2148

`getRemoteTypeForURIObject`: This also looks interesting. The switch at line
157 would go straight to line 218 for `resource:` URIs (irrespective of
`nsINestedURI`) and then for `nsINestedURI` we would look at the `jar:` URI
(and eventually the `file:` URI). While for not `nsINestedURI` we would call
straight to `validatedWebRemoteType`. This might return `WEB_REMOTE_TYPE`
instead of `FILE_REMOTE_TYPE`, but since it's already happening it should be ok
(`resource://android` maps _today_ to a `jar:` file that return
`WEB_RETURN_TYPE`)

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/modules/E10SUtils.jsm#150

`getURIHost`:

This is another piece of code that benefits from not implementing
`nsINestedURI` as the host would be correctly `"android"` instead of the apk
path.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/mozapps/downloads/DownloadUtils.jsm#390

`initDialog`:

Download dialog would show the `resource://android` URI instead of the actual
`jar:` URI, kind of expected.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/mozapps/downloads/HelperAppDlg.jsm#423

There are no places in the codebase where we do `== "jar"`. Looks like I've
already looked at all hits for "jar" too.

Checked for `"jar:` too and It looks like they are all from code that tries to
build a `jar:` URI manually which is fine for this change.

Audited all `schemeIs("jar")` occurrences:
https://searchfox.org/mozilla-central/search?q=schemeIs(%22jar%22)&path=

`browser-identity.js`

Uses the channel URI which is always resolved to `jar:`, so that works
regardless.  See also:
https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/protocol/res/SubstitutingProtocolHandler.cpp#229

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/browser/base/content/browser-siteIdentity.js#812

`tabbrowser.js`

Only for `scheme == "about"` URIs.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/browser/base/content/tabbrowser.js#789

`HelperAppDialog.js`

Treats "jar:" and "resource" the same way.

https://searchfox.org/mozilla-central/rev/dc0adc07db3df9431a0876156f50c65d580010cb/mobile/android/components/HelperAppDialog.js#63

`WebNavigationContent.js`

This code checks if the scheme is "jar" and if the original URI is "resource"
it will use that instead, so in our case it will use the "resource" URI either
way.

https://searchfox.org/mozilla-central/rev/dc0adc07db3df9431a0876156f50c65d580010cb/toolkit/modules/addons/WebNavigationContent.js#158

Depends on D18740

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:33 +00:00
Agi Sferro 3ba359e0a9 Bug 1522137 - Move resource://android handler to C++. r=mayhemer
This is needed to make the handler to avoid race conditions where some code
tries to access a resource://android URI before the handler has been
registered.

Depends on D18739

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:21 +00:00
Agi Sferro 31607a16bb Bug 1522137 - Fix HasSubstitution for special cases. r=bzbarsky
Before this change, HasSubstitution would return false for "gre" or "app" which
is incorrect, since these handlers exist.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:08 +00:00
Christoph Kerschbaumer 90e6dc3e93 Bug 1518454: Part 3, mobile changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=snorp 2019-02-12 10:34:24 +01:00
Kartikaya Gupta b3227123e2 Bug 1500941 - Add searchfox task for Android (ARMv7/API16). r=nalexander
The bulk of this is copy/pasted from a standard android-api-16 debug
build. The only changes are a few extra environment variables in the
taskcluster config, the subconfig file, and the mozconfig, as well as
the --enable-mozsearch-plugin flag in the mozconfig.

Depends on D20766

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

--HG--
extra : moz-landing-system : lando
2019-02-22 11:31:58 +00:00
Matthew Noorenberghe 004fdc8088 Bug 1474143 - Switch earlyformsubmit pwmgr observers to DOMFormBeforeSubmit listeners. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16652

--HG--
extra : moz-landing-system : lando
2019-02-23 00:24:12 +00:00
James Willcox 6f4446a1d8 Bug 1529297 - Make GeckoWebExecutor.resolve() fail with UnknownHostException r=geckoview-reviewers,esawin
Also clean up some doc strings.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 14:23:37 +00:00
James Willcox f2d0270ef5 Bug 1526327 - Add GeckoWebExecutor.FETCH_FLAGS_NO_REDIRECT r=geckoview-reviewers,droeh,esawin
Using this flag will cause GeckoWebExecutor.fetch() to not automatically
follow redirects, which is the default behavior if no flag is specified.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 21:46:14 +00:00
James Willcox b90839887f Bug 1522705 - Add streaming response support to GeckoWebExecutor r=esawin,agi
Differential Revision: https://phabricator.services.mozilla.com/D19504

--HG--
extra : moz-landing-system : lando
2019-02-22 21:46:05 +00:00
James Willcox 58a8fb5571 Bug 1522705 - Add /data/<count> path to HttpBinHandler r=geckoview-reviewers,esawin
This simply lets you request 'count' random bytes. A SHA-256 digest is
included for verifying the integrity of the response.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 21:45:57 +00:00
Ciure Andrei f7412ac1f2 Backed out 10 changesets (bug 1474143) for perma failing browser_markup_events_01.js CLOSED TREE
Backed out changeset 1b5d04866585 (bug 1474143)
Backed out changeset 78bfb4dd1f6a (bug 1474143)
Backed out changeset 85ec4f1f5f60 (bug 1474143)
Backed out changeset 5c112b77e489 (bug 1474143)
Backed out changeset 5d35599598bb (bug 1474143)
Backed out changeset 9fd0d7a7946f (bug 1474143)
Backed out changeset 1a83be7a75ca (bug 1474143)
Backed out changeset 2fc9b13171d0 (bug 1474143)
Backed out changeset 3983d7b6d9ad (bug 1474143)
Backed out changeset 9fe55dd58cd8 (bug 1474143)

--HG--
rename : browser/actors/FormValidationChild.jsm => browser/actors/FormSubmitChild.jsm
rename : toolkit/components/satchel/FormSubmitChild.jsm => toolkit/components/satchel/formSubmitListener.js
2019-02-22 21:16:49 +02:00
Matthew Noorenberghe 24787216b4 Bug 1474143 - Switch earlyformsubmit pwmgr observers to DOMFormBeforeSubmit listeners. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16652

--HG--
extra : moz-landing-system : lando
2019-02-22 15:12:48 +00:00
Matthew Noorenberghe 6a9cc09d37 Bug 1304001 - Stop passing the top window to LoginManagerContent. r=sfoster
It wasn't clear in callee code that the window was the top-window and it wasn't necessary in many cases. Relying on the top-window would also cause problems with Fission if the windows are in separate processes.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 15:41:35 +00:00
Jan Henning e0451dd1a3 Bug 1528715 - Work around problems with forcing the autocomplete result's capitalisation. r=geckoview-reviewers,m_kato
Even though using text.replace() is supposed to keep the existing spans intact,
in practice the composition spans still get lost, even when the replacement text
is identical (because there was in fact no capitalisation difference between
user-entered text and autocomplete result).

One approach to fix this would be to manually save the composition spans and
subsequently restore them afterwards, like we already do this a few lines
further down below, in the other major code path through onAutocomplete().
However while trying to generalise that approach, the most natural approach for
the caller to specify which spans it wanted to save was to pass a Predicate
lambda to the state saving function, which for some reason led to strange
"Didn't find class" errors.

So instead, we just restart input for affected IMEs (i.e. Sony's keyboard) to
get them back into sync with the new contents of the EditText.

To avoid unnecessarily calling restartInput(), though, we only do this if the
user-entered text (which at this stage is known to correspond to the auto-
complete result when compared case-*insensitively*) actually differs from the
autocomplete result.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 13:11:32 +00:00
Agi Sferro 4b7a2d663a Bug 1529632 - Add links to CHANGELOG.md. r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D20691

--HG--
extra : moz-landing-system : lando
2019-02-22 14:13:14 +00:00
Bogdan Tara de6fb7d842 Backed out 5 changesets (bug 1304001) for dom/html/test/test_bug430351.html failures CLOSED TREE
Backed out changeset 275c3744e059 (bug 1304001)
Backed out changeset c9628639b5e1 (bug 1304001)
Backed out changeset 7d8f97779a35 (bug 1304001)
Backed out changeset a5644de3c2f5 (bug 1304001)
Backed out changeset e23ef4dbbc7f (bug 1304001)
2019-02-22 05:05:56 +02:00
Bogdan Tara 826f142a88 Backed out 3 changesets (bug 1526327, bug 1522705) for WebExecutorSupport.cpp caused Android build bustages CLOSED TREE
Backed out changeset 11f1c1b18d28 (bug 1526327)
Backed out changeset 194be6b55fc4 (bug 1522705)
Backed out changeset d116b3721569 (bug 1522705)
2019-02-22 01:56:07 +02:00
Matthew Noorenberghe fc3ea21215 Bug 1304001 - Stop passing the top window to LoginManagerContent. r=sfoster
It wasn't clear in callee code that the window was the top-window and it wasn't necessary in many cases. Relying on the top-window would also cause problems with Fission if the windows are in separate processes.

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

--HG--
extra : moz-landing-system : lando
2019-02-21 20:19:16 +00:00
James Willcox 0809c64d52 Bug 1526327 - Add GeckoWebExecutor.FETCH_FLAGS_NO_REDIRECT r=geckoview-reviewers,droeh,esawin
Using this flag will cause GeckoWebExecutor.fetch() to not automatically
follow redirects, which is the default behavior if no flag is specified.

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

--HG--
extra : moz-landing-system : lando
2019-02-21 18:15:42 +00:00
James Willcox f4c323650d Bug 1522705 - Add streaming response support to GeckoWebExecutor r=esawin,agi
Differential Revision: https://phabricator.services.mozilla.com/D19504

--HG--
extra : moz-landing-system : lando
2019-02-21 18:15:02 +00:00
James Willcox b8f76d07c5 Bug 1522705 - Add /data/<count> path to HttpBinHandler r=geckoview-reviewers,esawin
This simply lets you request 'count' random bytes. A SHA-256 digest is
included for verifying the integrity of the response.

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

--HG--
extra : moz-landing-system : lando
2019-02-21 18:14:53 +00:00
Eitan Isaacson bf64f6d78e Bug 1525470 - Include description in accessible hints. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D19870

--HG--
extra : moz-landing-system : lando
2019-02-21 17:45:17 +00:00
Vlad Baicu 3753e60bbd Bug 1527648 - Uid deeplink nullpointer check. r=petru
Patch from bug 1519418 introduced a regression by removing line separators from
the uid parameter contained within deeplinks. However, not all deeplinks are
mandatory to contain the uid parameter. Added a null check before replacing the
line separators.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 16:59:07 +00:00
Cosmin Sabou 9f8b29287b Merge mozilla-central to autoland. 2019-02-21 05:43:34 +02:00
Cosmin Sabou f3db52f4cf Merge mozilla-inbound to mozilla-central. a=merge 2019-02-21 05:42:03 +02:00
Eugen Sawin 1fc5f0ebdc Bug 1526981 - [2.4] Simplify JSM module logger initialization and ensure compatibility with ES6. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D19580

--HG--
extra : moz-landing-system : lando
2019-02-20 16:11:57 +00:00
Eugen Sawin 01058ecf82 Bug 1526981 - [1.1] Remove obsolete module import. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D19579

--HG--
extra : moz-landing-system : lando
2019-02-20 16:17:56 +00:00
Kartikaya Gupta bab1ffc031 Bug 1428158 - Enable static analysis on Android. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D20402

--HG--
extra : moz-landing-system : lando
2019-02-20 20:03:52 +00:00
Noemi Erli 7c565dc045 Backed out 6 changesets (bug 1304001) for mochitest failures in test_bug430351.html CLOSED TREE
Backed out changeset 5fafa838de11 (bug 1304001)
Backed out changeset d75340a9a264 (bug 1304001)
Backed out changeset ed7ae6b877df (bug 1304001)
Backed out changeset 93bd4d634b14 (bug 1304001)
Backed out changeset e41015881591 (bug 1304001)
Backed out changeset 6346331d934d (bug 1304001)
2019-02-21 04:04:47 +02:00
Michael Kaply 918805dafb Bug 1522151 - Use correct region for regionOverrides. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D17379

--HG--
extra : moz-landing-system : lando
2019-02-20 19:44:05 +00:00
Matthew Noorenberghe e8404f39c5 Bug 1304001 - Stop passing the top window to LoginManagerContent. r=sfoster
It wasn't clear in callee code that the window was the top-window and it wasn't necessary in many cases. Relying on the top-window would also cause problems with Fission if the windows are in separate processes.

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

--HG--
extra : moz-landing-system : lando
2019-02-20 17:59:59 +00:00
Agi Sferro a5313e6c73 Bug 1512997 - Add GeckoSession.getDefaultUserAgent API. r=nalexander,rbarker
Differential Revision: https://phabricator.services.mozilla.com/D19813

--HG--
extra : moz-landing-system : lando
2019-02-20 18:11:27 +00:00
Agi Sferro 085d28afff Bug 1514374 - Remove workaround for accessibility-test-framework. r=nalexander,geckoview-reviewers,snorp
Looks like accessibility-test-framework was added to maven central so we can
remove this.

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

--HG--
extra : moz-landing-system : lando
2019-02-20 17:44:23 +00:00
Geoff Brown ac3c0e4b5d Bug 1501562 - Enable remote debugging in TRA;
Differential Revision: https://phabricator.services.mozilla.com/D20568

--HG--
extra : moz-landing-system : lando
2019-02-20 21:44:34 +00:00
Dorel Luca 0c4863aaf0 Backed out changeset ac4f1b5527fd (bug 1525470) for failures in geckoview in org.mozilla.geckoview.test.AccessibilityTest.testCheckbox. CLOSED TREE 2019-02-20 02:53:14 +02:00
Eitan Isaacson 2ba937125b Bug 1525470 - Include description in accessible hints. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D19870

--HG--
extra : moz-landing-system : lando
2019-02-19 18:56:30 +00:00
Jonathan Kingston cf14643de4 Bug 1521549 - Move (de)serializePrincipal from sessionstore Utils to E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17261

--HG--
extra : moz-landing-system : lando
2019-02-19 02:34:09 +00:00
Petru Lingurar 60f4606fbe Bug 1511946 - Hint about "Switch to tab" option for AwesomeScreen's stream items; r=JanH
The behaviour of switching to an already opened tab for an item in the stream
list was already in place, this patch just modifies the item's layout by
adding a text hint about this possibility - "Switch to tab", dynamically,
depending on if a tab is already opened or not in the current session.

Each stream item will implement `Tabs.OnTabsChangedListener` and check if the
changed Tab had stream's Url.
If so it will pass this event to the list's Adapter which will refresh the
stream item's layout.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 11:03:48 +00:00
Andrei Lazar a53a4ff68a Bug 1521476 Crash in java.lang.IllegalStateException: at org.mozilla.gecko.GeckoApplication.createShortcut(GeckoApplication.java) r=petru
Removed intended throw of IllegalStateException for Nightly when a page was not considered safe as a PWA.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 09:42:43 +00:00
Petru-Mugurel Lingurar ca5b6837e1 Bug 1503978 - Force fullscreen after PiP only if media is playing; r=JanH
Otherwise the user should see and be able to interact with the whole page.

Refactored `PictureInPictureController` to check the media playing status for
only the current tab, the one the user has in front and for which we may allow
PiP because `GeckoMediaControlAgent.isMediaPlaying()` would give us false
positives in the case where the current Tab is in fullscreen but not playing
media, while at the same time a background Tab is playing media.

BrowserApp will only force fullscreen after returning from PiP if media
playback has ended, but will keep fullscreen for playing/paused media.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 17:32:42 +00:00
Coroiu Cristina e6520f0a4d Merge inbound to mozilla-central a=merge 2019-02-16 11:36:46 +02:00
Natalia Csoregi e97ac2b1fe Bug 1519591 - Disable org.mozilla.geckoview.test.SessionLifecycleTest.readFromParcel_closedSessionAfterReadParcel on OPT platforms. r=gbrown 2019-02-16 05:54:32 +02:00
Cosmin Sabou 8cb8ef3973 Merge mozilla-central to autoland. 2019-02-15 20:50:34 +02:00
Petru-Mugurel Lingurar 5f459bf6b4 Bug 1525796 - Ignore close tab action if user is moving the item; r=JanH
Using an ItemTouchHelper for various motion actions means it will have a
strong reference to that item's layout and prevent it from being destroyed when
the adapter tries to remove it before the animations are finished - the item
will be removed from RecyclerView's Adapter but the item's layout will still
remain on screen.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 08:18:33 +00:00
Jesse Schwartzentruber a359caba44 Bug 1527896 - Increase Gradle heaps to handle large assets. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D19792

--HG--
extra : moz-landing-system : lando
2019-02-14 18:21:13 +00:00
Razvan Maries 2fb9019d41 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-02-15 11:59:08 +02:00
Daniel Varga 1e9aa9e1fc Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 03:51:05 +02:00
Jan Henning 6ae3b86617 Bug 1460874 - Part 12: Enforce sensible API usage for manual font size settings. r=snorp
Modifying the manual font size settings while the GeckoFontScaleListener is
active is theoretically possible, but probably not the most sensible way of
using that API. Therefore, we prohibit it and throw an exception in that case.

There is one complication, though: The very same API is used by the font scale
listener itself in order to modify the font size settings according to the
system font scale. Therefore, we have to move the GeckoFontScaleListener into
the GeckoView package itself, so that we can provide a package-private internal
API that bypasses the above usage checks.

This means that going forward, Fennec needs to use the official GeckoView API
to communicate with the font scale listener, too. As we've moved out the Shared-
Preferences watching  in part 5, this doesn't pose any insurmountable
difficulties.

Because for a short while I encountered some strange crashes where getRuntime()
in GeckoApplication apparently returned null while trying to initialise the
listener, I'm tying its initialisation to creation of the runtime, just to be on
the safe side.

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

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoFontScaleListener.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoFontScaleListener.java
extra : moz-landing-system : lando
2019-02-14 20:43:25 +00:00
Jan Henning c5a86e4d1f Bug 1460874 - Part 11: Allow toggling font scale listener via GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17751

--HG--
extra : moz-landing-system : lando
2019-02-14 20:44:19 +00:00
Jan Henning e24f654f52 Bug 1460874 - Part 10: Set font size settings in listener using GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17750

--HG--
extra : moz-landing-system : lando
2019-02-14 20:43:09 +00:00
Jan Henning 711b987266 Bug 1460874 - Part 9: Expose font size/inflation options via GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Some callers might prefer to manually set the font size in analogy to WebView's
WebSettings.setTextZoom(), respectively allow their users to do so.

Subsequently, we're also going to switch the GeckoFontScaleListener to operate
on those settings.

Because the effects of font inflation are more difficult to quantify than a
plain text zoom, we just check that operating the runtime setting sets the
corresponding Gecko pref. Besides, there already are further platform (ref)tests
checking the actual operation of font inflation itself.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:43:06 +00:00
Jan Henning a2454b987a Bug 1460874 - Part 8: Allow setting prefs via GeckoRuntimeSettings in Fennec, too. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17748

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:51 +00:00
Jan Henning 51fe895ba7 Bug 1460874 - Part 7: Automatically attach GeckoFontScaleListener through GeckoRuntime. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17747

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:44 +00:00
Jan Henning 4b59a86921 Bug 1460874 - Part 6: Move GeckoFontScaleListener into GeckoView. r=snorp
With the dependencies on Fennec's GeckoPreferences and GeckoSharedPrefs gone, we
can now move the class into GeckoView in preparation for hooking it up to the
GeckoViewRuntimeSettings.

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

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoFontScaleListener.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoFontScaleListener.java
extra : moz-landing-system : lando
2019-02-14 20:42:37 +00:00
Jan Henning b3ee3af690 Bug 1460874 - Part 5: Move out SharedPreferences watching. r=geckoview-reviewers,snorp
For easier testing in Fennec, we want to continue watching the respective
SharedPreferences key and toggle the listener in response to *that* instead of
directly wiring it into our Settings menu (GeckoPreferences), however because
that functionality is Fennec-specific, we move that logic out of the font scale
listener itself.

In conjunction with this, we also decouple the enabled state of the listener
from its attached state.
The enabled state can now be toggled at all times, but unless the listener is
also attached to a context, it simply won't have any practical effect.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:30 +00:00
Jan Henning 2b75da3bc6 Bug 1460874 - Part 4: Clean up threading assumptions. r=snorp
In practice, everything in the GeckoFontScaleListener will run on the UI thread,
so get rid of the `synchronized` methods and just enforce the threading
assumptions in the public API.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:23 +00:00
Jan Henning 34aef44d69 Bug 1460874 - Part 3: Rename initalize() method for more clarity. r=geckoview-reviewers,snorp
Going forward, we want to be able to toggle the enabled state at all times, and
being able to do this before calling initialize() seems a bit inconsistent.
Hence, we rename it to the more neutral-sounding attachToContext().

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:16 +00:00
Jan Henning b0ce764ff2 Bug 1460874 - Part 2: Rename instance variables to better match GeckoView code style. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17744

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:08 +00:00
Jan Henning f83531d710 Bug 1460874 - Part 1: Cleanups. r=geckoview-reviewers,snorp
The GeckoFontScaleListener is intended to live as long as the app (and there-
fore Gecko) remains alive and consequently keeps a reference to the
*application* context, so the linter warning can be safely suppressed.

Also reorder imports to match coding style.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:01 +00:00
Randall Barker ed2e78aef0 Bug 1508372 - Add scrollTo and scrollBy to PanZoomController r=geckoview-reviewers,snorp,esawin
The scrollTo() and scrollBy() functions in the PanZoomController may be
used to scroll the root document in GeckoView.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 19:04:06 +00:00
James Willcox 1e0e61116d Bug 1526322 - Ensure GeckoWebExecutor doesn't clobber the Content-Type header. r=csadilek
Differential Revision: https://phabricator.services.mozilla.com/D19506

--HG--
extra : moz-landing-system : lando
2019-02-14 16:35:27 +00:00
Randall Barker 0ded0d1e19 Bug 1522324 - Update GeckoView API to match current Gecko autoplay implementation r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D19209

--HG--
extra : moz-landing-system : lando
2019-02-14 01:38:54 +00:00
Brindusan Cristian a98117f137 Backed out 12 changesets (bug 1460874) for geckoview failures at geckoview.test.RuntimeSettingsTest.automaticFontSize.
Backed out changeset 593a2316ac28 (bug 1460874)
Backed out changeset 3d4297e781cb (bug 1460874)
Backed out changeset 2020cb134d1f (bug 1460874)
Backed out changeset 9fc145133f20 (bug 1460874)
Backed out changeset 17fbff3da236 (bug 1460874)
Backed out changeset 1026b786e779 (bug 1460874)
Backed out changeset 78f59df737fc (bug 1460874)
Backed out changeset 81c4e88003a5 (bug 1460874)
Backed out changeset 02f24dec5ae4 (bug 1460874)
Backed out changeset c7fce6c79bef (bug 1460874)
Backed out changeset d42e39761eb8 (bug 1460874)
Backed out changeset 2d5e902b5b88 (bug 1460874)

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoFontScaleListener.java => mobile/android/base/java/org/mozilla/gecko/GeckoFontScaleListener.java
2019-02-13 23:37:14 +02:00
Jan Henning 0edccec6b6 Bug 1460874 - Part 12: Enforce sensible API usage for manual font size settings. r=snorp
Modifying the manual font size settings while the GeckoFontScaleListener is
active is theoretically possible, but probably not the most sensible way of
using that API. Therefore, we prohibit it and throw an exception in that case.

There is one complication, though: The very same API is used by the font scale
listener itself in order to modify the font size settings according to the
system font scale. Therefore, we have to move the GeckoFontScaleListener into
the GeckoView package itself, so that we can provide a package-private internal
API that bypasses the above usage checks.

This means that going forward, Fennec needs to use the official GeckoView API
to communicate with the font scale listener, too. As we've moved out the Shared-
Preferences watching  in part 5, this doesn't pose any insurmountable
difficulties.

Because for a short while I encountered some strange crashes where getRuntime()
in GeckoApplication apparently returned null while trying to initialise the
listener, I'm tying its initialisation to creation of the runtime, just to be on
the safe side.

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

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoFontScaleListener.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoFontScaleListener.java
extra : moz-landing-system : lando
2019-02-13 20:11:22 +00:00
Jan Henning 7ba904e7d6 Bug 1460874 - Part 11: Allow toggling font scale listener via GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17751

--HG--
extra : moz-landing-system : lando
2019-02-13 20:11:15 +00:00
Jan Henning 7212b5e62f Bug 1460874 - Part 10: Set font size settings in listener using GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17750

--HG--
extra : moz-landing-system : lando
2019-02-13 20:10:59 +00:00
Jan Henning 9bcb8939ad Bug 1460874 - Part 9: Expose font size/inflation options via GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Some callers might prefer to manually set the font size in analogy to WebView's
WebSettings.setTextZoom(), respectively allow their users to do so.

Subsequently, we're also going to switch the GeckoFontScaleListener to operate
on those settings.

Because the effects of font inflation are more difficult to quantify than a
plain text zoom, we just check that operating the runtime setting sets the
corresponding Gecko pref. Besides, there already are further platform (ref)tests
checking the actual operation of font inflation itself.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 20:10:57 +00:00