Commit Graph

28154 Commits

Author SHA1 Message Date
James Willcox
cdb58ae6cf Bug 1522451 - Add ContentDelegate.onWebAppManifest() r=geckoview-reviewers,agi,droeh
This delivers a parsed and validated Web App Manifest to the
application, if present, during the page load process.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 14:44:22 +00:00
James Willcox
c54e1232f7 Bug 1522451 - Add asset support to HttpBin r=geckoview-reviewers,agi
This lets us request, e.g. '/assets/www/hello.html'.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 14:43:21 +00:00
Petru Lingurar
bee3c060d4 Bug 1534213 - Reduce the number of WebpageItemRow layout refreshes; r=JanH
Previously, WebpageItemRow's layout would be updated everytime a new Tab for
it's url would be ADDED/CLOSED/LOCATION_CHANGED to force a recheck of the need
to show the "Switch to tab hint".
To prevent multiple layout refreshes for every such event we will check the
current display status of the "Switch to tab hint" against the newly computed
value after an ADDED/CLOSED/LOCATION_CHANGED event was received.
Eagerly changing the value for 'switchToTabHintShown' along with informing
about the need for layout refresh to prevent any race conditions between
receiving more events and actualy refreshing the layout.
(In my tests I saw ADDED/LOCATION_CHANGE refreshing the same layout needlessly)

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

--HG--
extra : moz-landing-system : lando
2019-03-19 22:02:30 +00:00
Mike Shal
ad14ed9471 Bug 632954 - Add Android PGO mozconfigs; r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22819

--HG--
extra : source : 503bcac735831eea887393d4759358220bcb6d99
2019-03-18 23:52:43 +00:00
Noemi Erli
b61340c4b0 Backed out 12 changesets (bug 632954) for causing Android Bpgo(run) pending jobs CLOSED TREE
Backed out changeset 429c96e4de32 (bug 632954)
Backed out changeset de8beacc5eb4 (bug 632954)
Backed out changeset c151ebf303ca (bug 632954)
Backed out changeset b96dd954a456 (bug 632954)
Backed out changeset 26031d362333 (bug 632954)
Backed out changeset 097f141a499d (bug 632954)
Backed out changeset 6f5fc0d644dd (bug 632954)
Backed out changeset 53d3443e55d9 (bug 632954)
Backed out changeset 503bcac73583 (bug 632954)
Backed out changeset 142ae187478d (bug 632954)
Backed out changeset 0615c775a0cf (bug 632954)
Backed out changeset 3dfc0e4f8e7c (bug 632954)
2019-03-20 11:58:18 +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
Jan Henning
733d636e57 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-13 20:10:42 +00:00
Jan Henning
c3c38646d3 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-13 20:10:36 +00:00
Jan Henning
94e9d90551 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-13 20:10:29 +00:00
Jan Henning
0193d1216d 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-13 20:10:23 +00:00
Jan Henning
b48182d534 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-13 20:10:17 +00:00
Jan Henning
686b43fbbf 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-13 20:10:11 +00:00
Jan Henning
4ecf427f0a 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-13 20:10:04 +00:00
Jan Henning
410fcb203e 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-13 20:09:58 +00:00
Andreea Pavel
e8262ba210 Backed out changeset f145dfc61991 (bug 1522324) for android crashtest and gv-junit failures on a CLOSED TREE 2019-02-13 01:50:30 +02:00
Andreea Pavel
7b1605af56 Backed out 3 changesets (bug 1525959, bug 1526002) for failing android
Backed out changeset de0efca1118e (bug 1526002)
Backed out changeset 503cbc86e442 (bug 1525959)
Backed out changeset 33ea61c54aea (bug 1525959)
2019-02-12 23:53:05 +02:00
Randall Barker
e6f371e96c 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-12 20:25:52 +00:00
Eitan Isaacson
29d41d67a1 Bug 1527176 - Check each child has current parent before adding it. r=geckoview-reviewers,snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D19454

--HG--
extra : moz-landing-system : lando
2019-02-12 19:22:02 +00:00
Jan Henning
acccbca0a8 Bug 1526775 - Removed unused ui.bookmark.mobilefolder.enabled pref. r=snorp
It's only being referenced in these two lines in mobile.js, but nowhere else
anymore.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 18:13:24 +00:00
Jonathan Kingston
3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
James Willcox
c7a8bf9699 Bug 1526002 - Replace 'isFennec' with 'is_fennec' in mochitest.ini r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D19038

--HG--
extra : moz-landing-system : lando
2019-02-10 19:07:57 +00:00
Nick Alexander
983818cf9e Bug 1525661 - Avoid profile directories that can't be written by GeckoView. r=geckoview-reviewers,snorp
This manifests as silent child process crashes; let's try to avoid
that when we can.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 22:22:39 +00:00
Nick Alexander
4bef3af91a Bug 1524673 - Make Marionette part of remote debugging within GeckoView. r=whimboo,snorp
Functionally, we want Marionette to be enabled whenever remote
debugging enabled and disabled whenever remote debugging is enabled.

That's not particularly well supported by Gecko prefs, so we don't try
to handle all situations.  We force the Marionette pref whenever the
remote debugging pref changes; if consumers get themselves into a bad
state by fiddling the Marionette pref independently, that's fine:
GeckoView will take back control eventually.

There are a couple of wrinkles here.  The first is that GeckoView and
Marionette race to set themselves up in "profile-after-change".  We
ensure that both are configured before GeckoView notifies
"marionette-startup-requested".  The second is that the initial value
of the Marionette pref is taken from the environment variable
MOZ_MARIONETTE; therefore, we set that variable when starting the
Gecko thread.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 19:35:30 +00:00
Nick Alexander
40d0ac4ef0 Bug 1524673 - Pre: Allow to toggle remote debugging in the GeckoView example. r=snorp
This is just a testing convenience.  Remote debugging is engine-wide,
not session-wide, so it doesn't fit the other actions _exactly_; but
the "multiprocess" option is also somewhat engine-wide, so it doesn't
seem wildly out of place.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 19:35:30 +00:00
Andrew Erickson
cbb252c256 Bug 1519489 - remove the android 7.0 arm emulator r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D19095

--HG--
extra : moz-landing-system : lando
2019-02-08 01:26:25 +00:00
Gijs Kruitbosch
bb91abcfd1 Bug 1252831 - remove 30boxes webcal handler as both possible and default handler, r=paolo,Dolske
Differential Revision: https://phabricator.services.mozilla.com/D18073

--HG--
extra : moz-landing-system : lando
2019-02-10 21:28:20 +00:00
shindli
326271039b Backed out changeset b3bcf26d4dad (bug 1252831) for xpcshell failures in uriloader/exthandler/tests/unit/test_handlerService.js CLOSED TREE 2019-02-08 22:57:20 +02:00
Yuan Cheng
7be13dade4 Bug 1519923 - Migrate about:rights to Fluent, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D17731

--HG--
extra : moz-landing-system : lando
2019-02-08 17:36:15 +00:00
Gijs Kruitbosch
dcea4f2a22 Bug 1252831 - remove 30boxes webcal handler as both possible and default handler, r=paolo,Dolske
Differential Revision: https://phabricator.services.mozilla.com/D18073

--HG--
extra : moz-landing-system : lando
2019-02-08 19:04:53 +00:00
Kris Maglione
22b7edd20c Bug 1524688: Part 56 - Convert contentAreaDropsListener to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18466

--HG--
rename : dom/base/contentAreaDropListener.js => dom/base/ContentAreaDropListener.jsm
extra : source : 230d2feaf941443d88f9f5f65048c53d70e59b86
2019-01-30 11:37:53 -08:00
Kris Maglione
66da04bfe0 Bug 1524688: Part 55 - Convert BrowserElementParent to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18465

--HG--
rename : dom/browser-element/BrowserElementParent.js => dom/browser-element/BrowserElementParent.jsm
extra : source : 6c63bc2409729cf175b319cfb7cd95850aa1ab46
2019-01-30 11:36:13 -08:00
Kris Maglione
465465bbf9 Bug 1524688: Part 54 - Convert ConsoleAPIStorage to static registration. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D18464

--HG--
rename : dom/console/ConsoleAPIStorage.js => dom/console/ConsoleAPIStorage.jsm
extra : source : 0ad5465eace1f9294f87ae8c705db322d5cfe953
2019-01-30 11:34:41 -08:00
Kris Maglione
61c60113b7 Bug 1524688: Part 53 - Convert htmlMenuBuilder to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18463

--HG--
rename : dom/html/htmlMenuBuilder.js => dom/html/HTMLMenuBuilder.jsm
extra : source : 1e75ce91029b4eb030071e9802cd0bdbad59b9cf
2019-01-30 11:33:07 -08:00
Kris Maglione
6a5bace8f9 Bug 1524688: Part 51 - Convert NotificationStorage to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18461

--HG--
rename : dom/notification/NotificationStorage.js => dom/notification/NotificationStorage.jsm
extra : source : 34a978503b1d411bcd1483b142fa8260d94d5870
2019-01-30 11:27:51 -08:00
Kris Maglione
580a4759d6 Bug 1524688: Part 50 - Convert PresentationNetworkHelper to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18460

--HG--
rename : dom/presentation/PresentationNetworkHelper.js => dom/presentation/PresentationNetworkHelper.jsm
extra : source : 183602e8a30b527608f2c862601abd83f275e636
2019-01-30 11:24:40 -08:00
Kris Maglione
b1c612399e Bug 1524688: Part 49 - Convert AndroidCastDataProvider to static registration. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D18459

--HG--
rename : dom/presentation/provider/AndroidCastDeviceProvider.js => dom/presentation/provider/AndroidCastDeviceProvider.jsm
extra : source : 12a9135dc005ca160564e968d7628803579ce2c9
2019-01-30 11:22:18 -08:00
Kris Maglione
7feb0bdc5c Bug 1524688: Part 48 - Convert PresentationControlService to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18458

--HG--
rename : dom/presentation/provider/PresentationControlService.js => dom/presentation/provider/PresentationControlService.jsm
extra : source : 978ef5dac9db2c03f10ef68d093c8780538b995e
2019-01-30 11:19:47 -08:00
Kris Maglione
7592818b2d Bug 1524688: Part 46 - Convert DNSServiceDiscovery to static registration. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D18456

--HG--
rename : netwerk/dns/mdns/libmdns/nsDNSServiceDiscovery.js => netwerk/dns/mdns/libmdns/DNSServiceDiscovery.jsm
extra : source : a9fb74beaf2b79c1a291dc223154815884fcb721
2019-01-30 11:12:55 -08:00
Kris Maglione
acfa5d8a90 Bug 1524688: Part 45 - Convert network HTTP JS components to static registration. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D18455

--HG--
rename : netwerk/protocol/http/UAOverridesBootstrapper.js => netwerk/protocol/http/UAOverridesBootstrapper.jsm
rename : netwerk/protocol/http/WellKnownOpportunisticUtils.js => netwerk/protocol/http/WellKnownOpportunisticUtils.jsm
extra : source : fe106b369a722814e2cfa3597ba1295f6deeae9e
2019-01-30 11:09:50 -08:00
Kris Maglione
4149db0e14 Bug 1524688: Part 44 - Convert FxAccountsPush to static registration. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D18454

--HG--
rename : services/fxaccounts/FxAccountsPush.js => services/fxaccounts/FxAccountsPush.jsm
extra : source : e657e77d427124d39a80fa5418a76bbba02d479c
2019-01-30 11:06:04 -08:00
Kris Maglione
74a17cf9c5 Bug 1524688: Part 43 - Convert RemoteSettingsComponents to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18453

--HG--
rename : services/settings/RemoteSettingsComponents.js => services/settings/RemoteSettingsComponents.jsm
extra : source : 09f626870ad036d0fcce32337ea1670dd96f7ef1
2019-01-30 11:03:10 -08:00
Kris Maglione
a7b5f739c2 Bug 1524688: Part 42 - Convert nsAsyncShutdown to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18452

--HG--
rename : toolkit/components/asyncshutdown/nsAsyncShutdown.js => toolkit/components/asyncshutdown/nsAsyncShutdown.jsm
extra : source : fe9b6695212ec3960ab9e730ccc446a8c3da9375
2019-01-30 11:00:27 -08:00
Kris Maglione
5af0afb5b4 Bug 1524688: Part 41 - Convert BHRTelemetry to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18451

--HG--
rename : toolkit/components/backgroundhangmonitor/BHRTelemetryService.js => toolkit/components/backgroundhangmonitor/BHRTelemetryService.jsm
extra : source : 995ea188bc31942f9f34e156c098e69a9fe3e1a4
2019-01-30 10:52:24 -08:00
Kris Maglione
ba80257e6d Bug 1524688: Part 40 - Convert CaptiveDetect to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18450

--HG--
rename : toolkit/components/captivedetect/captivedetect.js => toolkit/components/captivedetect/CaptiveDetect.jsm
extra : source : 01c4d3edb1b036819a562ab10844c9cb9f28dd9e
2019-01-30 10:48:56 -08:00
Kris Maglione
4a20166afb Bug 1524688: Part 39 - Convert ClearDataService to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18449

--HG--
rename : toolkit/components/cleardata/ClearDataService.js => toolkit/components/cleardata/ClearDataService.jsm
extra : source : 1bb7dfbb9f48342377604a309ef4cdfcc21f8e13
2019-01-30 10:46:37 -08:00
Kris Maglione
cff53ab02c Bug 1524688: Part 38 - Convert ContentPrefService2 to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18448

--HG--
rename : toolkit/components/contentprefs/ContentPrefService2.js => toolkit/components/contentprefs/ContentPrefService2.jsm
extra : source : 56c61e0a1f45442c854424598801d5616009621c
2019-01-30 10:45:03 -08:00
Kris Maglione
2fb5e69cda Bug 1524688: Part 35 - Convert DownloadLegacy to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18445

--HG--
rename : toolkit/components/downloads/DownloadLegacy.js => toolkit/components/downloads/DownloadLegacy.jsm
extra : source : 517838ee0c3cb67ecba24d826179dce8a367e628
2019-01-30 10:38:55 -08:00
Kris Maglione
9433ffae82 Bug 1524688: Part 33 - Convert mozIntl to static registration. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D18443

--HG--
rename : toolkit/components/mozintl/mozIntl.js => toolkit/components/mozintl/mozIntl.jsm
extra : source : 56f5c8f0d708a356efc8ecac09993216e73ae539
2019-01-30 10:34:41 -08:00
Kris Maglione
a2faf2c5c8 Bug 1524688: Part 32 - Convert mozProtocolHandler to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18442

--HG--
rename : toolkit/components/mozprotocol/mozProtocolHandler.js => toolkit/components/mozprotocol/MozProtocolHandler.jsm
extra : source : 5746311ef859095112efbc8a6b782eb3665d9102
2019-01-30 10:31:13 -08:00
Kris Maglione
551222a78a Bug 1524688: Part 29 - Convert RemoteWebNavigation to static registration. r=mconley
--HG--
rename : toolkit/components/remotebrowserutils/RemoteWebNavigation.js => toolkit/components/remotebrowserutils/RemoteWebNavigation.jsm
extra : source : 2bd48db9cd0f95047e38cb64746ed07191c052c8
2019-01-30 10:24:11 -08:00
Kris Maglione
45f284a401 Bug 1524688: Part 27 - Convert TelemetryStartup to static registration. r=gfritzsche
--HG--
rename : toolkit/components/telemetry/TelemetryStartup.js => toolkit/components/telemetry/TelemetryStartup.jsm
extra : source : ff120b4eeb79dac8a4d69168521386947ac3de83
2019-01-29 21:29:25 -08:00
Kris Maglione
6273e7bb62 Bug 1524688: Part 24 - Convert UpdateTimerManager to static registration. r=aswan
--HG--
rename : toolkit/components/timermanager/nsUpdateTimerManager.js => toolkit/components/timermanager/UpdateTimerManager.jsm
extra : source : f4eaebbe2e0f424d9063dae50158bf53cb32781f
2019-01-29 21:21:39 -08:00
Kris Maglione
15c7300c5e Bug 1524688: Part 23 - Convert TooltipTextProvider to static registration. r=mconley
--HG--
rename : toolkit/components/tooltiptext/TooltipTextProvider.js => toolkit/components/tooltiptext/TooltipTextProvider.jsm
extra : source : bf6b18e23f69cfc3b29560ae39cbd58e6b16ea6c
2019-01-29 21:19:27 -08:00
Kris Maglione
020583d8bd Bug 1524688: Part 22 - Convert URLFormatter to static registration. r=aswan
--HG--
rename : toolkit/components/urlformatter/nsURLFormatter.js => toolkit/components/urlformatter/URLFormatter.jsm
extra : source : dd89eb7e9b0d03d762b6bec4e90f5a956cdbe803
2019-01-29 21:17:26 -08:00
Kris Maglione
08feb841d8 Bug 1524688: Part 21 - Convert XULStore to static registration. r=mconley
--HG--
rename : toolkit/components/xulstore/XULStore.js => toolkit/components/xulstore/XULStore.jsm
extra : source : 4cbbb367ba0b558299e7a8fcb0bea092223cc831
2019-01-29 21:14:53 -08:00
Kris Maglione
bc32f210bf Bug 1524688: Part 20 - Convert URILoader components to static registration. r=smaug
--HG--
rename : uriloader/exthandler/nsWebHandlerApp.js => uriloader/exthandler/WebHandlerApp.jsm
extra : source : 4ed0cf6be580167cfa4203a916179eb9e63f177c
2019-01-29 21:06:18 -08:00
Kris Maglione
014309e14d Bug 1524688: Part 18 - Convert presentation data channel stuff to static registration. r=smaug
--HG--
rename : dom/presentation/PresentationDataChannelSessionTransport.js => dom/presentation/PresentationDataChannelSessionTransport.jsm
extra : source : ea347d57d73aca17f002b7d2ad9419175f889fb6
2019-01-29 20:56:00 -08:00
Kris Maglione
24376c36fa Bug 1524688: Part 17 - Convert NetworkGeolocationProvider to static registration. r=jdm
--HG--
rename : dom/system/NetworkGeolocationProvider.js => dom/system/NetworkGeolocationProvider.jsm
extra : source : 911689ef9f33dbe026bad0c7e3d6ed4f030d6f29
2019-01-29 20:53:13 -08:00
Kris Maglione
9bbd5b753d Bug 1524688: Part 16 - Convert push components to static registration. r=baku
--HG--
rename : dom/push/Push.js => dom/push/Push.jsm
rename : dom/push/PushComponents.js => dom/push/PushComponents.jsm
extra : source : 28670fdc418d846f6cd9fcfeeff5f54d86efd9f8
2019-01-29 20:50:16 -08:00
Kris Maglione
4a6f1e935d Bug 1524688: Part 14 - Convert SimpleServices to static registration. r=aswan
--HG--
rename : toolkit/components/utils/simpleServices.js => toolkit/components/utils/SimpleServices.jsm
extra : source : 35a5f031dd1e63869a24f64d555743b85b5c1e83
2019-01-29 20:23:24 -08:00
Kris Maglione
67d05bba35 Bug 1524688: Part 13 - Convert satchel to static registration. r=MattN
--HG--
rename : toolkit/components/satchel/nsFormAutoComplete.js => toolkit/components/satchel/FormAutoComplete.jsm
rename : toolkit/components/satchel/FormHistoryStartup.js => toolkit/components/satchel/FormHistoryStartup.jsm
rename : toolkit/components/satchel/nsInputListAutoComplete.js => toolkit/components/satchel/InputListAutoComplete.jsm
extra : source : b586d55d76d5012f0e4a471f4c207a8ae09cc393
2019-01-29 20:17:06 -08:00
Kris Maglione
0c73d9a3c9 Bug 1524688: Part 11 - Convert search service to static registration. r=mikedeboer
--HG--
rename : toolkit/components/search/nsSearchService.js => toolkit/components/search/SearchService.jsm
rename : toolkit/components/search/nsSearchSuggestions.js => toolkit/components/search/SearchSuggestions.jsm
rename : toolkit/components/search/nsSidebar.js => toolkit/components/search/Sidebar.jsm
extra : source : 9895239d8ac64bef30e5f6390f18456ffe209e4e
2019-01-29 20:00:19 -08:00
Kris Maglione
b4b561b027 Bug 1524688: Part 10 - Convert password manager to static registration. r=MattN
--HG--
rename : toolkit/components/passwordmgr/nsLoginInfo.js => toolkit/components/passwordmgr/LoginInfo.jsm
rename : toolkit/components/passwordmgr/nsLoginManager.js => toolkit/components/passwordmgr/LoginManager.jsm
rename : toolkit/components/passwordmgr/nsLoginManagerPrompter.js => toolkit/components/passwordmgr/LoginManagerPrompter.jsm
extra : source : 25f982fd53bdbe1cf0b497fe7cc989928b9b0ac8
2019-01-29 19:44:47 -08:00
Kris Maglione
64a55fa4a5 Bug 1524688: Part 9 - Convert AddonManager components to static registration. r=aswan
--HG--
rename : toolkit/mozapps/extensions/amContentHandler.js => toolkit/mozapps/extensions/amContentHandler.jsm
rename : toolkit/mozapps/extensions/amInstallTrigger.js => toolkit/mozapps/extensions/amInstallTrigger.jsm
rename : toolkit/mozapps/extensions/amWebAPI.js => toolkit/mozapps/extensions/amWebAPI.jsm
extra : source : 4fb0f0a59fe22e150f1217d5558fed909f98259a
2019-01-29 18:58:05 -08:00
Kris Maglione
da054397cd Bug 1524688: Part 8 - Convert URL classifier to static registration r=Ehsan
--HG--
rename : toolkit/components/url-classifier/nsUrlClassifierHashCompleter.js => toolkit/components/url-classifier/UrlClassifierHashCompleter.jsm
rename : toolkit/components/url-classifier/nsUrlClassifierLib.js => toolkit/components/url-classifier/UrlClassifierLib.jsm
rename : toolkit/components/url-classifier/nsUrlClassifierListManager.js => toolkit/components/url-classifier/UrlClassifierListManager.jsm
extra : source : fdc6c4ed241a50b756e77560bc22d2cbd13c684e
2019-01-29 18:41:19 -08:00
Kris Maglione
f34cca34b0 Bug 1524688: Part 7 - Convert process singletons to static registration r=mconley
--HG--
rename : toolkit/components/processsingleton/ContentProcessSingleton.js => toolkit/components/processsingleton/ContentProcessSingleton.jsm
rename : toolkit/components/processsingleton/MainProcessSingleton.js => toolkit/components/processsingleton/MainProcessSingleton.jsm
extra : source : 5ce5986068f031ac17eb43ff278d30b81acdb73c
2019-01-29 18:32:37 -08:00
Kris Maglione
6ebfea8015 Bug 1524688: Part 4 - Convert UpdateService to static registration r=mhowell
--HG--
rename : toolkit/mozapps/update/nsUpdateService.js => toolkit/mozapps/update/UpdateService.jsm
rename : toolkit/mozapps/update/nsUpdateServiceStub.js => toolkit/mozapps/update/UpdateServiceStub.jsm
extra : source : 6b3684e7d8f95c7d028fcf27d1570675a8ccbbef
2019-01-29 17:46:17 -08:00
Kris Maglione
cda73836d1 Bug 1524688: Part 3 - Convert PeerConnection to static registration r=jib
--HG--
rename : dom/media/PeerConnection.js => dom/media/PeerConnection.jsm
extra : source : ee28258a5724d708770adb03e5f31b37f7abcab2
2019-01-29 17:44:56 -08:00
Kris Maglione
bb97eb4646 Bug 1524688: Part 2 - Convert BrowserGlue and friends to static registration. r=mconley
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
rename : browser/components/nsBrowserGlue.js => browser/components/BrowserGlue.jsm
rename : browser/components/protocolhandler/WebProtocolHandlerRegistrar.js => browser/components/protocolhandler/WebProtocolHandlerRegistrar.jsm
extra : source : 9201a7ea3c543310df1612b57ab72b883c94e07e
2019-01-29 17:44:35 -08:00
Jan Henning
5ca29b004c Bug 1496684 - Dispatch commonly expected startup notifications when opening a GeckoView window. r=snorp
Once a webextension using a blocking WebRequest listener has started loading,
all network connections covered by the extension's manifest are held until the
extension is ready the process them.
One condition for the extension being ready apparently includes browser startup
having progressed far enough, as signified by "browser-delayed-startup-finished"
having been dispatched.
Therefore, we have to start sending that notification when opening a new Gecko-
View window, too, and copy Fennec's InitLater() system for that.

Unlike Fennec, we cannot tie registration of those InitLater() runnables to the
initial content load having progressed far enough because of
a) e10s, which makes that approach neither easily possible nor really sensible,
   as content will load in a different process in that case, and
b) because we're racing with extension startup here - if extensions are loaded
   quick enough to block even the initial page load, we'd be deadlocked: We
   cannot send the notification until the page finishes loading, but the page
   cannot load until we send the notification. Fennec isn't affected by the
   latter problem because "sessionstore-windows-restored", which Fennec will
   send in any case, serves as an alternative pathway for completing extension
   startup.

And unlike Desktop, we don't really have any chrome content to paint, so we
cannot tie delayed initialisation to a paint listener for that, either.

Therefore, we simply fire off a runnable at the *end* of geckoview.js's
startup() method, which should give more pressing initialisation tasks enough of
a headstart.

For completeness, we're also adding the "browser-idle-startup-tasks-finished"
notification and thereby solve bug 1465832 as well, allowing the ScriptPreloader
to detect which scripts are commonly loaded during GeckoView startup and to
start caching and pre-parsing them.

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

--HG--
rename : mobile/android/modules/DelayedInit.jsm => mobile/android/modules/geckoview/DelayedInit.jsm
extra : moz-landing-system : lando
2019-02-07 20:41:16 +00:00
Jan Henning
3bbd53dc47 Bug 1524857 - Part 2: Use display URI's base domain for domain highlighting. r=snorp
That way, domain highlighting (and therefore the URL justification code that
right-justifies the TLD within the URL bar) can run even on error pages.

This also means that the workaround from bug 1479311 for blocking javascript:
URIs from being highlighted in ToolbarDisplayLayout is no longer required -
the base domain for domain highlighting is now being generated from the same
URI that actually ends up being displayed in the URL bar, and as such the
existing checks in browser.js for only generating a base domain for HTTP(S)/
FTP-URIs, but not any other schemes, finally work the way they are intended.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 19:21:45 +00:00
Jan Henning
40a3a5ea2e Bug 1524857 - Part 1: Separate base domain for doorhangers from base domain used for domain highlighting. r=Gijs
Currently, the Android front-end uses a tab's base domain both for permission
prompt doorhangers, as well as for doing domain highlighting in the URL bar. The
base domain in turn is based on the document's nodePrincipal's URI.

As per bug 1325955, the nodePrincipal is the right choice for permission
prompts, but it causes some problems for domain highlighting instead: For error
pages for example, the nodePrincipal's URI will be some variety of
about:neterror, which means that the front-end won't be able to do any domain
highlighting based on that, since
a) we don't generate any baseDomain anyway because the URI's scheme isn't
   HTTP(S)/FTP, and
b) even if we did, the nodePrincipal's baseDomain won't match the contents of
   the URI displayed in the URL bar.

Therefore, we want to separate these two concerns, and generate two baseDomains:
One based on the nodePrincipal for use in permission prompts, and one based on
the display URI, which going forward will power our domain highlighting.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 19:23:47 +00:00
Jan Henning
6a3ce29d7f Bug 1524857 - Part 0: Use short form where possible for defining properties. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18585

--HG--
extra : moz-landing-system : lando
2019-02-07 19:21:27 +00:00
Oana Pop Rus
4663ddb53a Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-07 11:57:33 +02:00
Delphine Lebédel
19173cb6db Bug 1521687 - Update Danawa search URL on Firefox for Android r=flod
MozReview-Commit-ID: 1EhapeyUskz

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

--HG--
extra : moz-landing-system : lando
2019-02-07 06:40:38 +00:00
Zibi Braniecki
614ca1e082 Bug 1523194 - Remove XPIDL for DOMLocalization and use do_ImportModule instead. r=jfkthame,kmag
Differential Revision: https://phabricator.services.mozilla.com/D17780

--HG--
extra : moz-landing-system : lando
2019-02-07 01:52:45 +00:00
prathiksha
763eb39bf4 Bug 1189524 - Provide visual feedback to the user when login fields are autofilled and autocompleted. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D18153

--HG--
extra : transplant_source : %B6%06%3A%9B%99%FBhi%06_%93%EC%1C%89%EE%D8%C8%C6%D0%96
2019-02-06 23:50:04 -08:00
Andrew Swan
ee2283d446 Bug 1523980 Revoke special testpilot permissions r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18768

--HG--
extra : moz-landing-system : lando
2019-02-06 22:21:01 +00:00
Jan Henning
68bf77cc33 Bug 1525666 - Fix typo in distribution parsing code. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D18864

--HG--
extra : moz-landing-system : lando
2019-02-06 19:45:08 +00:00
Eugen Sawin
71786b1864 Bug 1525388 - [1.0] Set URL classifier update prefs to enable list updates and remove previous workaround. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D18736

--HG--
extra : moz-landing-system : lando
2019-02-06 07:23:39 +00:00
Eugen Sawin
f2ed06603f Bug 1525155 - [1.0] Use explicit constants to set catch-all values. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D18619

--HG--
extra : moz-landing-system : lando
2019-02-06 02:41:57 +00:00
Agi Sferro
50f180bb27 Bug 1525324 - [geckoview] Use default theme for CHANGELOG. r=fluffyemily
Differential Revision: https://phabricator.services.mozilla.com/D18711

--HG--
extra : moz-landing-system : lando
2019-02-05 18:12:45 +00:00
Bogdan Tara
bf74bf6bc1 Merge inbound to mozilla-central. a=merge 2019-02-04 19:37:46 +02:00
Petru Lingurar
03d0745a08 Bug 1498911 - Allow cycling through search results when keeping the buttons pressed; r=JanH
Summary:
For every `Enter` or `Shift+Enter` ACTION_DOWN event a new next/previous search
will be made.
Keeping the buttons pressed will cycle through all the search results endlessly.

Depends on D17133

Reviewers: JanH

Reviewed By: JanH

Bug #: 1498911

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

--HG--
extra : histedit_source : 626b863aa35e63e113be81deecadd8193f1e1c01
2019-02-04 10:00:39 +02:00
Andrei Lazar
b758ae2eaa Bug 1502817 Crash in java.lang.NullPointerException: at org.mozilla.gecko.ChromeCastPlayer.toBundle(ChromeCastPlayer.java) r=sdaswani
Replaced deprecated method which returns null if device is on an IPv6-only network with a newer one that can return IPv6 address.

Depends on D18324

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

--HG--
extra : moz-landing-system : lando
2019-02-01 18:36:10 +00:00
Andrei Lazar
9ddd6f263c Bug 1524529 Update Play Services Cast to 16.0.0 r=VladBaicu
Updated play-services-cast to 16.0.0 in order to benefit from the IPv6 and other features.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 12:44:13 +00:00
Mike de Boer
481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Makoto Kato
b93b9a8c45 Bug 1515004 - Move --with-android-sdk to moz.configure. r=nalexander
Since ./mach bootstrap installs Android SDK into ~/.mozbuild, we should detect
this location as default SDK install path.

Also, --with-android-max-sdk and --with-android-min-sdk are still in android.m4
because confvars.sh sets MOZ_ANDROID_MIN_SDK_VERSION.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 21:12:51 +00:00
Vlad Baicu
e8663334b6 Bug 1516665 - Part 3: Additional logging. r=JanH
Added additional logging. In case the agent is not attached but we are not on a
release or beta build, allow createNotification to be called with a null context
so that we may be able to gather more information from the reports.

Depends on D18115

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

--HG--
extra : moz-landing-system : lando
2019-02-01 15:51:27 +00:00
Vlad Baicu
8938560671 Bug 1516665 - Part 2: Cleanup. r=JanH
Some code cleanup.

Depends on D17391

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

--HG--
extra : moz-landing-system : lando
2019-02-01 15:08:00 +00:00
Vlad Baicu
e55eb8e3c9 Bug 1516665 - Prevent MediaControlService NPE. r=JanH
Use MediaControlService's context when creating the notification in order to
prevent a NPE.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 15:07:29 +00:00
Dylan Roeh
c8d8aee4ef Bug 1522153 - Pass an empty list rather than null to onChoicePrompt when no choices are present. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D18261

--HG--
extra : moz-landing-system : lando
2019-01-31 23:48:47 +00:00
shindli
d6dd350c66 Merge inbound to mozilla-central. a=merge 2019-02-01 05:56:53 +02:00
Mike Conley
c2ea02dd67 Bug 1522546 - Make GeckoView use browser.remoteType instead of getting at the attribute directly. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D18225

--HG--
extra : moz-landing-system : lando
2019-01-31 19:54:21 +00:00
Eitan Isaacson
35028de560 Bug 1515774 - Pass current GeckoView position with touch events to APZC. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17044

--HG--
extra : moz-landing-system : lando
2019-01-31 16:46:15 +00:00
Petru Lingurar
49da2e4c53 Bug 1521675 - Use a timeout before testing the tracking events; r=Ehsan
There can be a slight delay (in rapport with actually loading the page) until
the ContentBlockingEvent is received.
To account for this, we'll use an overly generous 500ms timeout before
actually checking if we have the right tracking status.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 06:40:21 +00:00
Dylan Roeh
add93d33eb Bug 1382637 - Backing out patch due to breakage (see: 1532161, 1532157). r=me 2019-01-31 13:58:54 -06:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Andrei Lazar
94c81d7d12 Bug 1523572 Increment Leanplum's version r=sdaswani
Incremented Leanplum's version to 3.0.2

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

--HG--
extra : moz-landing-system : lando
2019-01-29 18:29:09 +00:00
Eugen Sawin
d27cb22d1b Bug 1499214 - [3.0] Fix changelog version numbers for latest commits.
Differential Revision: https://phabricator.services.mozilla.com/D18080

--HG--
extra : moz-landing-system : lando
2019-01-30 15:17:11 +00:00
Ryan Hunt
cc32ace0f3 Bug 1522964 - Re-enable scroll anchoring on Fennec with gofaster intervention. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D17677

--HG--
extra : moz-landing-system : lando
2019-01-25 21:08:44 +00:00
Eugen Sawin
d7a16382fe Bug 1499214 - [2.0] Update content blocking tests and GVE. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D16605

--HG--
extra : moz-landing-system : lando
2019-01-30 14:25:40 +00:00
Eugen Sawin
dfe7344df0 Bug 1499214 - [1.6] Add Content Blocking API. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15140

--HG--
rename : mobile/android/modules/geckoview/GeckoViewTrackingProtection.jsm => mobile/android/modules/geckoview/GeckoViewContentBlocking.jsm
extra : moz-landing-system : lando
2019-01-30 14:24:29 +00:00
Vlad Baicu
842499d64b Bug 1519418 - Replace line separators from the uid parameter received from the deeplink intent. r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D17959

--HG--
extra : moz-landing-system : lando
2019-01-29 18:28:48 +00:00