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

23917 Коммитов

Автор SHA1 Сообщение Дата
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
Brindusan Cristian e17de7336e Backed out 4 changesets (bug 1515774) for mochitest failrues at test_group_touchevents-3.html and test_touch_action.html.
Backed out changeset 45c6f07160d9 (bug 1515774)
Backed out changeset 3d97f1e46c1a (bug 1515774)
Backed out changeset 69c8787c67d6 (bug 1515774)
Backed out changeset 8e17cc234256 (bug 1515774)
2019-01-30 04:39:55 +02:00
Eitan Isaacson d7b9a2b61f 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-29 23:18:41 +00:00
Dennis Schubert 222824c1b3 Bug 1522755 - Ship eBay Scroll Anchoring intervention to Fennec. r=rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D17600

--HG--
extra : moz-landing-system : lando
2019-01-29 17:36:56 +00:00
Eugen Sawin c987c1aee1 Bug 1515728 - [2.0] Add smoke test for parcelable support. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17424

--HG--
extra : moz-landing-system : lando
2019-01-29 15:08:25 +00:00
Eugen Sawin 540d235551 Bug 1515728 - [1.5] Add support for nested runtime settings. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15130

--HG--
extra : moz-landing-system : lando
2019-01-29 15:07:12 +00:00
Cosmin Sabou 599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Sebastian Hengst b78e4e8667 Merge mozilla-central to mozilla-inbound
--HG--
rename : browser/components/urlbar/tests/legacy/browser_urlbar_search_no_speculative_connect_with_client_cert.js => browser/components/urlbar/tests/browser/browser_urlbar_speculative_connect_not_with_client_cert.js
2019-01-29 02:55:55 +02:00
Kris Maglione fb4e709471 Bug 1514594: Follow-up: Fix ESLint error. r=bustage CLOSED TREE
--HG--
extra : amend_source : d3daee4392d23a2f512a5d1da7b85ac1ece4e44f
2019-01-28 16:30:26 -08:00
Razvan Maries c88bd55f59 Merge mozilla-inbound to mozilla-central a=merge 2019-01-28 23:46:39 +02:00
James Willcox 84984eac60 Bug 1515789 - Ensure nsILoadURIDelegate::loadURI() is only called for toplevel redirects. r=smaug,geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D16990

--HG--
extra : moz-landing-system : lando
2019-01-28 15:35:17 +00:00
Ehsan Akhgari 310750fd8b Bug 1522630 - Report content blocking status notifications from the idle event queue; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17554
2019-01-28 10:05:58 -05:00
Coroiu Cristina 2206b6473a Backed out changeset 5c956ce0000a (bug 1522630) for build bustage at /builds/worker/workspace/build/src/dom/base/nsGlobalWindowOuter.cpp on a CLOSED TREE 2019-01-28 16:41:07 +02:00
Ehsan Akhgari 1cd3fb5bcc Bug 1522630 - Report content blocking status notifications from the idle event queue; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17554
2019-01-28 09:22:07 -05:00
Ciure Andrei 849dbde8e4 Backed out 2 changesets (bug 1507286, bug 1497146) for causing multiple crashes in nsFocusManager::GetRedirectedFocus a=backout
Backed out changeset 0509a9edc58a (bug 1507286)
Backed out changeset 21ad3aeb636f (bug 1497146)
2019-01-26 15:09:03 +02:00
Petru Lingurar b3453b3fbb Bug 1498911 - FindInPageBar will now handle `Enter` and `Shift+Enter`; r=JanH
`Enter` will search for the next occurrence of the "Find" string.
`Shift+Enter` will search for the previous occurrence of the "Find" string.

For this, FindInPageBar will intercept all `onKey` events and
- on `KeyEvent.ACTION_DOWN` will consume `Shift+Enter` which would otherwise
insert a newline character in the search box
- on `KeyEvent.ACTION_UP` will do a new next/previous search depending on the
keys pressed.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 07:28:05 +00:00
Alphan Chen 0022290b4b Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-25 10:19:04 +00:00
Narcis Beleuzu dcd0b9d50a Merge inbound to mozilla-central. a=merge 2019-01-25 06:28:32 +02:00
Eugen Sawin 750397ffaf Bug 1517641 - [2.0] Rename blocklist names to use a three-part naming scheme. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D17523

--HG--
extra : moz-landing-system : lando
2019-01-24 20:04:02 +00:00
arthur.iakab a5462dcda4 Backed out changeset a6cc9b15b1e3 (bug 1497146)for hazard build bustage on sessionstore/SessionStoreUtils.cpp CLOSED TREE 2019-01-24 16:56:32 +02:00
Alphan Chen ea7eaa36e4 Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-24 12:53:28 +00:00
Ciure Andrei c035ee7d3a Merge inbound to mozilla-central. a=merge 2019-01-24 05:44:33 +02:00
Eitan Isaacson e63779903d Bug 1520611 - Prune children in Android. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D16743

--HG--
extra : moz-landing-system : lando
2019-01-24 00:23:45 +00:00
Sebastian Hengst 725402f21f Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 02:05:49 +02:00
Jan Henning 24c879e19f Bug 1510029 - Correctly set desktop mode viewport when creating a tab. r=esawin
The desktopMode property on Fennec's tab object is already being correctly being
preserved when (re)creating a tab [1], but we don't propagate its state to the
content window's desktop viewport mode setting.

[1] When restoring into a fresh tab, the session restore code passes the stored
desktopMode flag to addTab, whereas zombifying an existing tab destroys its
<browser>, but leaves the tab object's properties intact, so we merely need to
re-set the desktop viewport mode on the new <browser>'s content window.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 21:01:55 +00:00
Alphan Chen e6cc4bf7ca Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-28 19:44:03 +00:00
Jan Henning 696af8e1a4 Bug 1518226 - Request foreground service permission. r=snorp
We use foreground services, so this is necessary in order to be able to target
Android P.

The GeckoView example app needs it for the crash handling service.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:32:20 +00:00
Jan Henning 879d1a037c Bug 1503455 - Part 4: Compile with SDK28. r=nalexander,snorp
android.test.* is no longer part of the main framework, so as per
https://developer.android.com/training/testing/set-up-project,
- we must no longer declare them as a *required* dependency in our manifests
- we must explicitly include a dependency on them in our build config

This will temporarily break running tests depending on android.test.* (i.e.
mainly Robocop) on devices using P or newer until we also start targeting P as
well.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:32:11 +00:00
Jan Henning 110351a055 Bug 1503455 - Part 3: Filter classpath for SDK bindings generation. r=nalexander
Once we start compiling with API28, android.test.* is no longer part of the main
framework JAR and will be included from separate libraries instead.
Those additional JARs will then subsequently show up on the class path in
Gradle, too.

Because our SDKProcessor is currently set up to process only one JAR at a time
and because we don't actually need to generate bindings for those test classes,
we simply filter them out again.

We explicitly only filter the android.test.* JARs and use findAll so that if the
android classpath unexpectedly gains another member, we're alerted to that fact
and can consciously take a decision on whether to ignore it as well or not.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:32:04 +00:00
Jan Henning f04abdeceb Bug 1503455 - Part 1: Update some test library versions. r=nalexander
Not strictly required, but since we're in the area anyway...

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:31:50 +00:00
Nick Alexander dc88caf991 Bug 1520226 - Make GeckoView set permanentKey on <browser> elements for Marionette. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D17577

--HG--
extra : moz-landing-system : lando
2019-01-28 18:35:45 +00:00
Timothy Guan-tin Chien d59f80985c Bug 1507895 - Part I, Remove the videocontrols binding r=smaug
This patch removes the XBL videocontrols binding and make <video>
to always use the UA Widget to generate controls.

DevTools tests that look for NAC is switched to use <input type=file>.

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

--HG--
extra : moz-landing-system : lando
2019-01-25 13:12:26 +00:00
Eugen Sawin effaab9cc0 Bug 1522228 - [1.0] Add baseUri to ContextElement and enforce absolute URI for linkUri. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D17567

--HG--
extra : moz-landing-system : lando
2019-01-28 18:28:19 +00:00
Francesco Lodolo (:flod) 2bf51c86b5 Bug 1523243 - Update URLs in LEO searchplugin, remove Romansh variant r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D17803

--HG--
extra : moz-landing-system : lando
2019-01-28 16:54:41 +00:00
Jan Henning 348e2d672b Bug 1497460 - Remove reflection usage in ShortcutUtils. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17775

--HG--
extra : moz-landing-system : lando
2019-01-28 15:38:09 +00:00
John Lin 8143268e96 Bug 1517252 - p2: convert out-of-memory error to playback error to avoid crash. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D16710

--HG--
extra : moz-landing-system : lando
2019-01-18 01:51:53 +00:00
Jan Henning d9d4a111f8 Bug 1521600 - Clarify how the ViewportMode API actually works. r=geckoview-reviewers,snorp
VIEWPORT_MODE_DESKTOP *forces* the desktop mode viewport everywhere, whereas
VIEWPORT_MODE_MOBILE merely enables <meta> viewport support for pages that have
that tag defined, but still uses the desktop mode viewport for all other pages.

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

--HG--
extra : moz-landing-system : lando
2019-01-23 21:06:06 +00:00
Dylan Roeh 978362d8c2 Bug 1382637 - Zombify tabs in onDestroy to ensure video/audio recording ends when Fennec is swipe-to-killed. r=snorp 2019-01-23 11:41:01 -06:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
James Willcox e6c4c5d1ed Bug 1517160 - Use correct icon path for internal about pages r=geckoview-reviewers,esawin#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D16991

--HG--
extra : moz-landing-system : lando
2019-01-21 09:50:16 +00:00
Cosmin Sabou 951d31e64d Merge mozilla-inbound to mozilla-central. a=merge 2019-01-22 05:56:10 +02:00
Petru-Mugurel Lingurar d587b36c42 Bug 1520520 - Part 2 - Refactor testTrackingProtection to listen for ContentBlockingEvent; r=esawin,ehsan
After the changes from bug 1514340 the app is now informed about tracking with
Content:ContentBlockingEvent instead of Content:SecurityChange
Also initialized mLastTracking with unknown as that is the default value
when no tracking event has been received (eg: no tracking elements on the page)

Depends on D16822

Differential Revision: https://phabricator.services.mozilla.com/D16823
2019-01-21 10:03:52 -05:00
Petru-Mugurel Lingurar 095fa60743 Bug 1520520 - Part 1 - Update UI with tracking events from ContentBlockingEvent; r=esawin,ehsan
onSecurityChange from browser.js will not send information about tracking
anymore to Java (because it doesn't know about that anymore).

onContentBlocking from browser.js will be responsible for this from now on.

    is called after onSecurityChange which will have created a SiteIdentity()

for that tab in Java

    is informed only about tracking status which it caches to only send updates

downstream to Java. Will not propagate identical events one after the other.

    will not fire for websites which do not contains any tracking elements

A Content:ContentBlockingEvent received in Java will update the tracking
property of SiteIdentity and finally update the UI with
ToolbarDisplayLayout#updateSiteIdentity().

Differential Revision: https://phabricator.services.mozilla.com/D16822
2019-01-21 10:02:16 -05:00
Ehsan Akhgari 4137a92662 Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Ryan Hunt 58a87fc778 Bug 1515946 - Let scroll anchoring ride the trains on everything except Fennec. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D17086

--HG--
extra : moz-landing-system : lando
2019-01-21 01:58:34 +00:00
Cosmin Sabou 7ccc9d8b0b Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
Nick Alexander ca38eefc15 Bug 901059 - Clean up old unused mobile/android package-manifest.in references. r=agi,froydnj
I'm taking an old ticket number just to close it.  The files removed
no longer exist in the tree; the NSS option exists and probably
shouldn't -- but that's for another day, so let's just make it not
warn for now.

Depends on D15016

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

--HG--
extra : moz-landing-system : lando
2019-01-21 17:35:53 +00:00
Andreea Pavel 9e68056ef2 Backed out changeset 9c8923903d73 (bug 1508279) because peculative fix submitted had no effect on the bug 2019-01-19 03:03:59 +02:00
Vlad Baicu 8019353a1d Bug 1508279 - Use the correct intent for GeckoServicesCreatorService. r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D16998

--HG--
extra : moz-landing-system : lando
2019-01-18 18:14:44 +00:00
Vlad Baicu d5df4978ad Bug 1519418 - Retrieve LP debug id for local uid on debug builds. r=petru
On debug builds whenever we would attempt to retrieve the value of localUid it
would be null because the LP debug id is never persisted.

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

--HG--
extra : moz-landing-system : lando
2019-01-16 16:24:40 +00:00
Vlad Baicu 64bef38d0f Bug 1515651 - Open LP URLs specifically in Fennec. r=sdaswani
Created a new "open" deeplink to open pages directly in Fennec.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 18:08:39 +00:00
James Willcox 6d9e3d0034 Bug 1521087 - Enable process hang monitor in GeckoView r=geckoview-reviewers,droeh#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D16979

--HG--
extra : moz-landing-system : lando
2019-01-18 16:08:28 +00:00
Margareta Eliza Balazs ec14417cc3 Merge inbound to mozilla-central. a=merge 2019-01-18 11:40:07 +02:00
alwu 2e0847eade Bug 1520663 - enable blocking autoplay with user-gesture-activation model on Fennec. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D16773

--HG--
extra : moz-landing-system : lando
2019-01-17 22:24:37 +00:00
Bogdan Tara cc6a6c8063 Backed out changeset f57051371bf0 (bug 1517641) for apilint bustage CLOSED TREE 2019-01-18 01:30:58 +02:00
Eugen Sawin 5114dc76d2 Bug 1517641 - [1.0] Add experimental ad-blocking category to the Tracking Protection API. r=snorp,geckoview-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D16700

--HG--
extra : moz-landing-system : lando
2019-01-17 23:06:55 +00:00
Matt Brubeck f659fdfbdf Bug 1510705 - Fix infinite loop in tests waiting for pending callbacks. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D16733

--HG--
extra : moz-landing-system : lando
2019-01-17 19:14:06 +00:00
Dylan Roeh 44dab4cd06 Bug 1514364 - Add appendRawFilter to nsIFilePicker to expose actual accept filters to GV for onFilePrompt. r=snorp, smaug 2019-01-24 10:21:05 -06:00
Michal Novotny fcbc8b9cd2 Bug 1455723 - Firefox59 does not properly honor cache size set in autoconfig files, r=mayhemer
We keep old cache code in the tree only because of offline cache. We no longer allow using old disk or memory cache. This patch removes all preferences manipulation from old cache code that isn't used by offline cache. It removes also some related code (e.g. everything smart size related, unused defines etc.), but the goal wasn't to remove all unused code from the old cache.
2019-01-14 06:47:00 +02:00
Eitan Isaacson 83c7d95900 Bug 1519997 - Exclusively use cache for actions and events. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D16499

--HG--
extra : moz-landing-system : lando
2019-01-17 17:01:09 +00:00
Alphan Chen 58400124a1 Bug 1497146 part 2 - Convert FormData.jsm to C++ [collect() part] r=nika,peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12112

--HG--
extra : moz-landing-system : lando
2019-01-17 14:56:51 +00:00
Alphan Chen 5d28867416 Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

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

--HG--
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-17 14:58:31 +00:00
James Willcox 269f751ce7 Bug 1514253 - Create PanZoomController immediately in GeckoSession r=geckoview-reviewers,droeh#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D14562

--HG--
extra : moz-landing-system : lando
2019-01-17 14:17:50 +00:00
Julian Descottes 1a1601ba70 Bug 1495383 - Add Worker, ServiceWorker and Process support on android debugger server;r=daisuke,ochameau
I quickly tested on Fennec with the whole stack and I am able to list workers, inspect workers etc...
Could not see any issue at first glance.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 07:58:57 +00:00
arthur.iakab 48fa943d27 Merge inbound to mozilla-central a=merge 2019-01-17 06:21:08 +02:00
Sebastian Hengst 3dc0a3b83a Bug 1520470 - Update metadata for related Bugzilla product and component for geckoview. r=snorp DONTBUILD
Reviewers: snorp

Tags: #secure-revision

Bug #: 1520470

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

--HG--
extra : rebase_source : 61edc61854b0c74f492e9ee97b075a74d6efe8dd
extra : amend_source : b31c3975770475dd835f97d2272b1028c0f3e23d
2019-01-16 16:18:45 +02:00
Sylvestre Ledru 47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Agi Sferro ab3bb69820 Bug 1520490 - Add title to GeckoView's CHANGELOG.md. r=fluffyemily
This makes the page's HTML title be:

```
API Changelog | geckoview
```

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

--HG--
extra : moz-landing-system : lando
2019-01-16 15:38:50 +00:00