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

29773 Коммитов

Автор SHA1 Сообщение Дата
Dylan Roeh 9541273b5d Bug 1619798 - Move GeckoView onLoadRequest calls to DocumentLoadListener.cpp r=snorp,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69594

--HG--
extra : moz-landing-system : lando
2020-04-10 16:38:48 +00:00
James Willcox 9b0c905638 Bug 1620657 - Add a native impl of nsIExternalHelperAppService for Android r=mattwoodrow,geckoview-reviewers,droeh
This is needed in order to implement `CreateListener()`, which is used
when DocumentChannel is enabled.

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

--HG--
extra : moz-landing-system : lando
2020-04-10 15:53:19 +00:00
James Willcox bdfa09611f Bug 1628449 - Dispatch `onLoadRequest()` return values immediately r=geckoview-reviewers,agi,aklotz
This is a very performance-critical path, so we want to avoid
dispatching the value listener on a future loop iteration.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 20:35:15 +00:00
Dragana Damjanovic dbea95392b Bug 1628460 - Turn off qpack dynamic table. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D70244

--HG--
extra : moz-landing-system : lando
2020-04-08 19:46:11 +00:00
Emilio Cobos Álvarez e16c569957 Bug 1627886 - Fix android system color array. r=snorp
textColor was never in the C++ side of things...

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:53:31 +00:00
Randall E. Barker 1dde134b0f Bug 1626979 - Add GeckoView API for appending app notes to crash report. r=geckoview-reviewers,snorp,droeh
Differential Revision: https://phabricator.services.mozilla.com/D69662

--HG--
extra : moz-landing-system : lando
2020-04-07 23:42:42 +00:00
Kristen Wright 4a3747126f Bug 1626388 - Convert layout.framevisibility.numscrollportwidths/heights to static prefs r=njn
Converts layout.framevisibility.numscrollportwidths and layout.framevisibility.numscrollportheights to static prefs.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 20:16:38 +00:00
Nika Layzell 0799ca4e5c Bug 1616353 - Part 7.5: Pass nsOpenWindowInfo through Geckoview, r=geckoview-reviewers,esawin,agi
The interface changes which GeckoViewNavigation.jsm is being updated for are
performed in earlier parts. This patch just covers the required changes to
frontend code to propagate this information down to the nsFrameLoader when it is
created.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:39 +00:00
Nika Layzell dd1ef62596 Bug 1616353 - Part 3: Use an attribute to set geckoViewUserContextId on a browser, r=geckoview-reviewers,esawin
This is necessary to avoid the use of setOriginAttributesBeforeLoading, which is
being removed in this patch set.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:04 +00:00
Aaron Klotz 6c60e366a0 Bug 1627782: Enable the process priority manager in GeckoView; r=agi
Differential Revision: https://phabricator.services.mozilla.com/D69859

--HG--
extra : moz-landing-system : lando
2020-04-07 14:40:52 +00:00
Emilio Cobos Álvarez c5991fc6cc Bug 1579824 - Stop overriding system colors via prefs. r=snorp
Depends on D69938

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:54:41 +00:00
sonakshi 9272fc9645 Bug 1595611 - Cache ConnectivityManager in GeckoAppShell r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D69627

--HG--
extra : moz-landing-system : lando
2020-04-07 15:00:37 +00:00
owlishDeveloper 29de48a946 Bug 1621480 - Separate progress delegate and history delegate while avoiding race conditions r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D69753

--HG--
extra : moz-landing-system : lando
2020-04-07 02:00:04 +00:00
Mike Hommey b4e38723ff Bug 1627163 - Use generator expressions instead of itertools.imap. r=firefox-build-system-reviewers,rstewart
Also remove unused import of itertools.ifilterfalse.

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

--HG--
extra : moz-landing-system : lando
2020-04-05 08:51:20 +00:00
Agi Sferro a4cb5f4bab Bug 1627797 - Add UA String override to GVE. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D69864

--HG--
extra : moz-landing-system : lando
2020-04-06 20:42:05 +00:00
Aaron Klotz f89f996931 Bug 1620145: Part 1 - Support content process prioritization in GeckoView; r=geckoview-reviewers,agi
We change a few things in this patch:

* We modify `ServiceAllocator` to support multiple bindings:
    * Since Android distinguishes unique bindings via unique `ServiceConnection`
      objects, we add a `Binding` class that provides that bare-bones
      distinction but just forwards the `ServiceConnection` callbacks to its
      `InstanceInfo` owner.
    * Each `InstanceInfo` represents one content process instance, and it holds
      references to between 0 and 3 `Binding` objects, one for each possible
      priority level.
    * After changing the current priority level of an `InstanceInfo`, we call
      the `updateBindings` method to add or drop bindings as necessary to
      effect the correct level.
    * We add code to support the new `Context.updateServiceGroup` API starting
      with Android 10. Essentially it describes to Android the relative
      importance of multiple services running within the same priority level
      (think of it like how we rank our P2 bugs).
* We add `GeckoProcessManager.setProcessPriority` to receive prioritization
  changes from Gecko and wire that into the `ServiceAllocator`. We start new
  processes with `PriorityLevel.BACKGROUND` and then Gecko subsequently adjusts
  as necessary.
* Once this lands we must also set `dom.ipc.processPriorityManager.enabled=true`
  to experiment with e10s-multi.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 18:10:15 +00:00
Aaron Klotz 914c70e06f Bug 1627354: Part 4 - Update junit tests to reflect changes caused by the upgrade to platform 29; r=agi
Differential Revision: https://phabricator.services.mozilla.com/D69634

--HG--
extra : moz-landing-system : lando
2020-04-04 03:15:57 +00:00
Aaron Klotz f826c80377 Bug 1627354: Part 2 - Update gradle files to set buildToolsVersion; r=nalexander
Per https://developer.android.com/studio/releases/build-tools, the default
version of the build tools used is internal to the Gradle plugin for Android,
which in the current version of Gradle is 28. To use 29, we need to explicitly
specify that in `.gradle` files using `buildToolsVersion`.

We also change the specification of `compileSdkVersion` to obtain that
information from the build configuration.

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

--HG--
extra : moz-landing-system : lando
2020-04-04 03:15:56 +00:00
Cosmin Sabou aefb5f9c88 Backed out 24 changesets (bug 1616353) for fission assertion failures nsGlobalWindowOuter.cpp.
Backed out changeset 3a43210e4900 (bug 1616353)
Backed out changeset cb77e9149cf8 (bug 1616353)
Backed out changeset 3aacc7cfe33f (bug 1616353)
Backed out changeset c026b06063a5 (bug 1616353)
Backed out changeset 580e790c5d17 (bug 1616353)
Backed out changeset 6f09bc1c476d (bug 1616353)
Backed out changeset 6955906262c0 (bug 1616353)
Backed out changeset a7700472807a (bug 1616353)
Backed out changeset a4735096e01b (bug 1616353)
Backed out changeset bd1706c57d91 (bug 1616353)
Backed out changeset 363c13296fda (bug 1616353)
Backed out changeset e414df387524 (bug 1616353)
Backed out changeset 765d3364cca0 (bug 1616353)
Backed out changeset 8a13355b4ac4 (bug 1616353)
Backed out changeset ada17fb8fca7 (bug 1616353)
Backed out changeset 6b6b99af186d (bug 1616353)
Backed out changeset ea966e78b296 (bug 1616353)
Backed out changeset cb88e0bbb3b9 (bug 1616353)
Backed out changeset f89a89015114 (bug 1616353)
Backed out changeset ae6058552969 (bug 1616353)
Backed out changeset f42bb5b48c1b (bug 1616353)
Backed out changeset 1ab9d22c73bb (bug 1616353)
Backed out changeset 2692c2c1396b (bug 1616353)
Backed out changeset 11a279c8da08 (bug 1616353)
2020-04-06 20:03:02 +03:00
Nika Layzell 3fed0a8e02 Bug 1616353 - Part 7.5: Pass nsOpenWindowInfo through Geckoview, r=geckoview-reviewers,esawin,agi
The interface changes which GeckoViewNavigation.jsm is being updated for are
performed in earlier parts. This patch just covers the required changes to
frontend code to propagate this information down to the nsFrameLoader when it is
created.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 14:30:09 +00:00
Nika Layzell e1bf02fc4f Bug 1616353 - Part 3: Use an attribute to set geckoViewUserContextId on a browser, r=geckoview-reviewers,esawin
This is necessary to avoid the use of setOriginAttributesBeforeLoading, which is
being removed in this patch set.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 14:29:35 +00:00
Makoto Kato 960c0aa620 Bug 1625843 - Set TYPE_TEXT_FLAG_CAP_SENTENCES for textarea and contenteditable. r=geckoview-reviewers,snorp
This is a regression by bug 1509527.

I should set TYPE_TEXT_FLAG_CAP_SENTENCES for `textarea` element and
contenteditable again.

Also, Gecko doesn't set valid type hint for input element yet. So I add a
workaround to test file. It will be fixed by bug 1424284. And this fix removes
unused condition for` textarea`.

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

--HG--
extra : moz-landing-system : lando
2020-04-02 18:03:57 +00:00
Agi Sferro 80bc78ccf4 Bug 1535365 - Enable the extension process. r=snorp,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D69596

--HG--
extra : moz-landing-system : lando
2020-04-03 20:55:25 +00:00
Agi Sferro b0fbb7d7e1 Bug 1627106 - Add test for extension pages navigation history. r=droeh
This test verifies that history is preserved when navigating from an extension
page to a web content page.

Today this involves going from the main process to the content process, but
when we enable remote extensions this will involve going from one content
process (the extension process) to another content process (the web process) so
to avoid forgetting about this we can introduce a test now that should still
pass in both scenarios.

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

--HG--
extra : moz-landing-system : lando
2020-04-03 20:22:40 +00:00
Eitan Isaacson dbdae4f810 Bug 1617436 - Reset caret before doing another find in page test. r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D69229

--HG--
extra : moz-landing-system : lando
2020-04-01 16:18:50 +00:00
Nathan Froyd ab612badd3 Bug 1626932 - delete LD_LIBRARY_PATH before invoking gradle; r=firefox-build-system-reviewers,rstewart
It started, as most things do, with a software upgrade.

Upgrading the Android SDK version produced mysterious build errors:

```
java.lang.RuntimeException: ... Error while executing process /builds/worker/fetches/android-sdk-linux/build-tools/29.0.3/aidl ...
```

Looking a little further back in the log, one found the mysterious
error:

```
/builds/worker/fetches/android-sdk-linux/build-tools/29.0.3/aidl: error while loading shared libraries: /builds/worker/fetches/clang/lib/libc++.so: file too short
```

And when one investigated that file, one found that all `libc++.so` contained
was:

```
INPUT(libc++.so.1 -lc++abi)
```

which was obviously not any kind of loadable shared library.

The `libc++.so` file was meant as a redirect, an artifact placed so people
could say `-lc++` on their compiler command lines and things would Just Work.
The intent was that programs would link to `libc++.so.1` (or whatever other
soversion was in use) and that they wouldn't have to worry about `-lc++abi` or
any other private implementation details of libc++.  Why, then, was `aidl`
linking to `libc++.so`?

Looking at `ldd aidl` on a local machine says:

```
...
libc++.so => $HOME/.mozbuild/android-sdk-linux/build-tools/29.0.3/./lib64/libc++.so (0x00007f8b4b2d1000)
...
```

and poking at `aidl` with `readelf --dynamic -W` indicated a partial solution
to the problem:

```
...
0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN/../lib64:$ORIGIN/lib64]
...
```

`aidl` contained a `DT_RUNPATH` entry for `libc++.so` that specified to the
linker "find my `libc++.so` at a path relative to my current binary location."
Presumably this was done so that `aidl` would link to a specific `libc++.so`
and not pick up a random `libc++.so` from the system on which `aidl` was
running.

...Except that setting `LD_LIBRARY_PATH`, which we specify during our builds for
various reasons, takes precedence over `DT_RUNPATH`.  So invoking `aidl` was
looking for `libc++.so` along `LD_LIBRARY_PATH`, finding this linker script
that was meant to be used only by the compiler, and attempting to use it like
a real shared library.

Great, we understand the problem now; what do we do about it?

Unwinding our use of `LD_LIBRARY_PATH` is an involved task.  One further
wrinkle that wasn't mentioned above is that not every Android build that we
run failed after the SDK update: our x86-64 fuzzing build was fine, as was the
ARM PGO instrumentation build.  Presumably, those builds set `LD_LIBRARY_PATH`
in slightly different ways compared to our other builds, and those differences
in setting `LD_LIBRARY_PATH` contribute to `aidl` somehow not getting invoked
with `LD_LIBRARY_PATH` set.  It is not obvious to me how difficult getting a
consistent `LD_LIBRARY_PATH` setting is.

This next part is conjecture -- informed conjecture, but conjecture
nonetheless.  When we invoke gradle for the first time, a separate daemon
process is started, presumably to make various Java startup problems go away.
What we would like to have happen, and what appears to happen, is that
everything that gradle does is actually spawned from the daemon itself, not
from the invoked gradle process.  So if we could get the daemon invoked with
the correct environment (i.e. no `LD_LIBRARY_PATH` present), everything would
just work, because `aidl` would be launched from an environment that will
respect its `DT_RUNPATH` setting.

This change assumes that gradle does not invoke things that depend on
`LD_LIBRARY_PATH`, which is not at all clear; I think there are cases where we
can go `mach -> gradle -> mach -> ... -> clang`.  But those cases don't seem
to come up in automation (perhaps due to every build being a clobber), and if
they come up on local developer machines, local developer machines seem
unlikely to have `LD_LIBRARY_PATH` set (mandatory invocation of xkcd#1172).

All of that is to say that this patch takes a semi-hacky approach to the
problem: when we invoke gradle, we make sure that we're invoking it with an
environment that doesn't contain `LD_LIBRARY_PATH`.  And doing so avoids all
of the problems outlined above.

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

--HG--
extra : moz-landing-system : lando
2020-04-02 17:32:21 +00:00
Agi Sferro a5635944c9 Bug 1626421 - Add setting for Preferred Color Scheme to GVE. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D69101

--HG--
extra : moz-landing-system : lando
2020-04-02 15:48:02 +00:00
Dorel Luca 818e917108 Backed out changeset 29cb45e9cdfc (bug 1626421) for liting failure. CLOSED TREE 2020-04-02 18:44:04 +03:00
Agi Sferro e42dac456e Bug 1626421 - Add setting for Preferred Color Scheme to GVE. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D69101

--HG--
extra : moz-landing-system : lando
2020-04-02 14:59:29 +00:00
Sebastian Hengst 2fbcddc03d Bug 1620842 - change Firefox for Android bugzilla components to GeckoView. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D65895

--HG--
extra : moz-landing-system : lando
2020-03-17 18:36:33 +00:00
James Willcox 6a931b4d99 Bug 1626670 - Don't build with MOZ_UPDATER=1 for GeckoView nightlies r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D69231

--HG--
extra : moz-landing-system : lando
2020-04-01 18:06:14 +00:00
aarushivij 639634aa2b Bug 1626575 - Remove Loader.jsm exceptions from Android allowed-dupes.mn. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D69248

--HG--
extra : moz-landing-system : lando
2020-04-01 18:04:15 +00:00
David Major 4dacf8bfd0 Bug 1626340 - Fix some mozconfigs where mozconfig.common.override is not at the end r=rstewart
mozconfig.common.override is supposed to be a way for try pushes to change any options that may have been previously set. To do this effectively, it needs to be the last thing in the mozconfig.

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

--HG--
extra : moz-landing-system : lando
2020-04-01 14:22:35 +00:00
Tim Nguyen e783637467 Bug 1626023 - Remove some unused allowed-dupes.mn entries. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D68846

--HG--
extra : moz-landing-system : lando
2020-03-31 23:38:29 +00:00
sonakshi a6f08454e0 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 18:47:30 +00:00
Tim Nguyen 6d163a0309 Bug 1626007 - Stop including XUL widget theme files on Android. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D68841

--HG--
extra : moz-landing-system : lando
2020-03-31 14:37:25 +00:00
Brendan Dahl c3eca02a86 Bug 1624724 - Fix startup crash tracking in GeckoView. r=geckoview-reviewers,aklotz,snorp
Gecko uses a canary file to determine if the last startup was succesful or
not and subsequently uses that status to determine if the startup cache
should be used. The file should be deleted either on a clean
exit or after the browser has succesfully started after a delay. On
android there will never be a clean exit and file was not manually being
deleted after startup. To fix this, delete the file after all the idle
startup tasks finish.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 18:16:36 +00:00
Tim Nguyen 9f4dbeaf3c Bug 1625982 - Rename textbox.js and textbox.css to moz-input-box.js and search-textbox.css. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D68829

--HG--
rename : toolkit/content/widgets/textbox.js => toolkit/content/widgets/moz-input-box.js
rename : toolkit/themes/linux/global/textbox.css => toolkit/themes/linux/global/search-textbox.css
rename : toolkit/themes/osx/global/textbox.css => toolkit/themes/osx/global/search-textbox.css
rename : toolkit/themes/windows/global/textbox.css => toolkit/themes/windows/global/search-textbox.css
extra : moz-landing-system : lando
2020-03-30 18:22:56 +00:00
Henri Sivonen 71bdd2ccaf Bug 1625465 - Hack GeckoViewUtils not to read activeWindow. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D68565

--HG--
extra : moz-landing-system : lando
2020-03-30 16:10:41 +00:00
Dão Gottwald bb5b482bc6 Bug 1625896 - Rename scrollbox.css to arrowscrollbox.css. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D68777

--HG--
rename : toolkit/themes/shared/scrollbox.css => toolkit/themes/shared/arrowscrollbox.css
extra : moz-landing-system : lando
2020-03-30 11:49:31 +00:00
Makoto Kato fa2df28a49 Bug 1618754 - Part 2. Unnecessary to use equalsIgnoreCase for inputmode. r=geckoview-reviewers,agi
`inputmode` is lower case except to `mozAwesomebar`. So it is unnecessary to
use `equalsIgnoreCase`.

Also, `mozAwesomebar` is for `inputmode`, not `type`. So this changeset has
this fix.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 18:16:38 +00:00
Makoto Kato 86298c9983 Bug 1618754 - Part 1. Support inputmode=none to hide software keyboard. r=geckoview-reviewers,snorp
`inputmode=none` has to close software keyboard. `inputmode` value is lower
case except to `mozAwesomebar` by bug 1618763, so we don't have to use
`equalsIgnoreCase` for `inputmode`.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 18:22:47 +00:00
MahakBansal b51565663a Bug 1622600 - Replace URIParams with nsIURI in PBrowser.ipdl.r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D66888

--HG--
extra : moz-landing-system : lando
2020-03-29 13:56:16 +00:00
Agi Sferro 9c1b77d7d1 Bug 1624675 - Add isDirectNavigation to LoadRequest. r=snorp,droeh
This flag allows embedders to know when a onLoadRequest call is generated by
the app or not. Embedders can use this to skip expensive checks in
app-generated onLoadRequest calls.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:54 +00:00
Agi Sferro 1d3050571c Bug 1624675 - Remove unused org.mozilla.gecko.permissions. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68442

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:57 +00:00
Agi Sferro 0e8f4a8961 Bug 1624675 - Remove unused org.mozilla.gecko.sqlite r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68441

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:59 +00:00
Agi Sferro bf487f84b3 Bug 1624675 - Remove ContextUtils and inline only caller. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68440

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:44 +00:00
Agi Sferro 7918d390b6 Bug 1624675 - Remove dead code around profiles. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68439

--HG--
extra : moz-landing-system : lando
2020-03-28 02:01:45 +00:00
Agi Sferro 981033e460 Bug 1624675 - Remove dead code in HardwareUtils. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68438

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:44 +00:00
Agi Sferro 8fcd23f36a Bug 1624675 - Remove obsolete code in AndroidGamepadManager. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68437

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:45 +00:00
Agi Sferro 2917e0f13b Bug 1624675 - Remove dead code from ThreadUtils.java. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D68436

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:47 +00:00
Agi Sferro 9743ad186f Bug 1624675 - Remove unused UIAsyncTask. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68435

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:50 +00:00
Agi Sferro c61cb429dc Bug 1624675 - Don't post on UI thread if already on the UI thread. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68434

--HG--
extra : moz-landing-system : lando
2020-03-27 22:03:52 +00:00
Bogdan Tara 6b0b300cc5 Backed out 3 changesets (bug 1620145) for lints failure and Android bustages CLOSED TREE
Backed out changeset eee5907efc81 (bug 1620145)
Backed out changeset 80acd7d7bc10 (bug 1620145)
Backed out changeset f07bb47f20b3 (bug 1620145)
2020-03-28 01:36:27 +02:00
Aaron Klotz b7bfd543a2 Bug 1620145: Part 1 - Support content process prioritization in GeckoView; r=geckoview-reviewers,agi
We change a few things in this patch:

* We modify `ServiceAllocator` to support multiple bindings:
    * Since Android distinguishes unique bindings via unique `ServiceConnection`
      objects, we add a `Binding` class that provides that bare-bones
      distinction but just forwards the `ServiceConnection` callbacks to its
      `InstanceInfo` owner.
    * Each `InstanceInfo` represents one content process instance, and it holds
      references to between 0 and 3 `Binding` objects, one for each possible
      priority level.
    * After changing the current priority level of an `InstanceInfo`, we call
      the `updateBindings` method to add or drop bindings as necessary to
      effect the correct level.
    * We add code to support the new `Context.updateServiceGroup` API starting
      with Android 10. Essentially it describes to Android the relative
      importance of multiple services running within the same priority level
      (think of it like how we rank our P2 bugs).
* We add `GeckoProcessManager.setProcessPriority` to receive prioritization
  changes from Gecko and wire that into the `ServiceAllocator`. We start new
  processes with `PriorityLevel.BACKGROUND` and then Gecko subsequently adjusts
  as necessary.
* Once this lands we must also set `dom.ipc.processPriorityManager.enabled=true`
  to experiment with e10s-multi.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 22:41:25 +00:00
Aaron Klotz fa8d4a5ee5 Bug 1620145: Part 0 - Set compileSdkVersion to use ANDROID_TARGET_SDK; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D68612

--HG--
extra : moz-landing-system : lando
2020-03-27 22:52:30 +00:00
Ciure Andrei 00c3cac8c7 Backed out 3 changesets (bug 1620145) for causing bustages CLOSED TREE
Backed out changeset 31e174d8cdba (bug 1620145)
Backed out changeset 84ee808383ae (bug 1620145)
Backed out changeset 32a639056a5f (bug 1620145)
2020-03-28 00:38:13 +02:00
Aaron Klotz 0c282fd4a1 Bug 1620145: Part 1 - Support content process prioritization in GeckoView; r=geckoview-reviewers,agi
We change a few things in this patch:

* We modify `ServiceAllocator` to support multiple bindings:
    * Since Android distinguishes unique bindings via unique `ServiceConnection`
      objects, we add a `Binding` class that provides that bare-bones
      distinction but just forwards the `ServiceConnection` callbacks to its
      `InstanceInfo` owner.
    * Each `InstanceInfo` represents one content process instance, and it holds
      references to between 0 and 3 `Binding` objects, one for each possible
      priority level.
    * After changing the current priority level of an `InstanceInfo`, we call
      the `updateBindings` method to add or drop bindings as necessary to
      effect the correct level.
    * We add code to support the new `Context.updateServiceGroup` API starting
      with Android 10. Essentially it describes to Android the relative
      importance of multiple services running within the same priority level
      (think of it like how we rank our P2 bugs).
* We add `GeckoProcessManager.setProcessPriority` to receive prioritization
  changes from Gecko and wire that into the `ServiceAllocator`. We start new
  processes with `PriorityLevel.BACKGROUND` and then Gecko subsequently adjusts
  as necessary.
* Once this lands we must also set `dom.ipc.processPriorityManager.enabled=true`
  to experiment with e10s-multi.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 21:58:48 +00:00
Aaron Klotz e350b4fef4 Bug 1620145: Part 0 - Set compileSdkVersion to use ANDROID_TARGET_SDK; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D68612

--HG--
extra : moz-landing-system : lando
2020-03-27 21:58:36 +00:00
Bogdan Tara b7f4ccb775 Backed out 10 changesets (bug 1624675) for lints failure CLOSED TREE
Backed out changeset 42f9061d299a (bug 1624675)
Backed out changeset 839dc1384f95 (bug 1624675)
Backed out changeset 2df39ae63e81 (bug 1624675)
Backed out changeset 2e5e33501074 (bug 1624675)
Backed out changeset 0588bd37cf89 (bug 1624675)
Backed out changeset d10bf633fdac (bug 1624675)
Backed out changeset 61f4496d0745 (bug 1624675)
Backed out changeset 4b50bc44475c (bug 1624675)
Backed out changeset 14ef2c4ea463 (bug 1624675)
Backed out changeset 287ebe964741 (bug 1624675)
2020-03-28 00:00:36 +02:00
Agi Sferro dc343cf57e Bug 1624675 - Add isDirectNavigation to LoadRequest. r=snorp,droeh
This flag allows embedders to know when a onLoadRequest call is generated by
the app or not. Embedders can use this to skip expensive checks in
app-generated onLoadRequest calls.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 21:18:54 +00:00
Agi Sferro 94059c6d87 Bug 1624675 - Remove unused org.mozilla.gecko.permissions. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68442

--HG--
extra : moz-landing-system : lando
2020-03-27 21:19:06 +00:00
Agi Sferro cf8805ecf1 Bug 1624675 - Remove unused org.mozilla.gecko.sqlite r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68441

--HG--
extra : moz-landing-system : lando
2020-03-27 21:19:14 +00:00
Agi Sferro 010ced6c1c Bug 1624675 - Remove ContextUtils and inline only caller. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68440

--HG--
extra : moz-landing-system : lando
2020-03-27 21:19:16 +00:00
Agi Sferro 629b1526e5 Bug 1624675 - Remove dead code around profiles. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68439

--HG--
extra : moz-landing-system : lando
2020-03-27 21:19:24 +00:00
Agi Sferro a234c36ad9 Bug 1624675 - Remove dead code in HardwareUtils. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68438

--HG--
extra : moz-landing-system : lando
2020-03-27 21:19:26 +00:00
Agi Sferro 36484178dc Bug 1624675 - Remove obsolete code in AndroidGamepadManager. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68437

--HG--
extra : moz-landing-system : lando
2020-03-27 21:23:24 +00:00
Agi Sferro 737defdc2d Bug 1624675 - Remove dead code from ThreadUtils.java. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D68436

--HG--
extra : moz-landing-system : lando
2020-03-27 16:59:46 +00:00
Agi Sferro 0a2c50bc1c Bug 1624675 - Remove unused UIAsyncTask. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68435

--HG--
extra : moz-landing-system : lando
2020-03-27 21:20:12 +00:00
Agi Sferro acf3564168 Bug 1624675 - Don't post on UI thread if already on the UI thread. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68434

--HG--
extra : moz-landing-system : lando
2020-03-27 21:20:19 +00:00
Bogdan Tara 2a170da7ed Backed out 3 changesets (bug 1620145) for toolchains bustage complaining about SelectionActionDelegateTest.kt CLOSED TREE
Backed out changeset 4614b6ccb155 (bug 1620145)
Backed out changeset 72d548277bd9 (bug 1620145)
Backed out changeset 4f3ee911b5c7 (bug 1620145)
2020-03-27 22:24:56 +02:00
Aaron Klotz 5c2cb5ba90 Bug 1620145: Part 1 - Support content process prioritization in GeckoView; r=geckoview-reviewers,agi
We change a few things in this patch:

* We modify `ServiceAllocator` to support multiple bindings:
    * Since Android distinguishes unique bindings via unique `ServiceConnection`
      objects, we add a `Binding` class that provides that bare-bones
      distinction but just forwards the `ServiceConnection` callbacks to its
      `InstanceInfo` owner.
    * Each `InstanceInfo` represents one content process instance, and it holds
      references to between 0 and 3 `Binding` objects, one for each possible
      priority level.
    * After changing the current priority level of an `InstanceInfo`, we call
      the `updateBindings` method to add or drop bindings as necessary to
      effect the correct level.
    * We add code to support the new `Context.updateServiceGroup` API starting
      with Android 10. Essentially it describes to Android the relative
      importance of multiple services running within the same priority level
      (think of it like how we rank our P2 bugs).
* We add `GeckoProcessManager.setProcessPriority` to receive prioritization
  changes from Gecko and wire that into the `ServiceAllocator`. We start new
  processes with `PriorityLevel.BACKGROUND` and then Gecko subsequently adjusts
  as necessary.
* Once this lands we must also set `dom.ipc.processPriorityManager.enabled=true`
  to experiment with e10s-multi.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 19:59:13 +00:00
Aaron Klotz 6a3d3ec104 Bug 1625310: Change WebExtensionTest to use the session rule for creating its GeckoSession objects; r=agi
Differential Revision: https://phabricator.services.mozilla.com/D68461

--HG--
extra : moz-landing-system : lando
2020-03-26 21:35:45 +00:00
Aaron Klotz 94a256a521 Bug 1625217: Minor bug fixes to TestCrashHandler service binding; r=geckoview-reviewers,agi
`ServiceConnection.onServiceDisconnected` is not called if
`Context.unbindService` finished cleanly. We should be clearing `mService` in
that case.

Furthermore, if the service did die unexpectedly and
`ServiceConnection.onServiceDisconnected` was called, we need to explicitly
unbind so that Android does not automatically reconnect the binding.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 18:07:33 +00:00
owlishDeveloper 7671f3baf7 Bug 1510615 - Replace hardcoded /data/data paths or supress lint warning where not replaceable r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D67980

--HG--
extra : moz-landing-system : lando
2020-03-26 17:26:21 +00:00
Bob Clary 50e014c6a6 Bug 1624715 - Remove network assertion introduced in Bug 1622816, r=snorp.
Differential Revision: https://phabricator.services.mozilla.com/D68097

--HG--
extra : moz-landing-system : lando
2020-03-24 21:44:49 +00:00
Agi Sferro d18bce9af5 Bug 1623758 - Don't compress omni.ja in examples. r=snorp
The omni.ja file contains all the javascript code that GeckoView uses
internally. Right now the omni.ja file is compressed in the APK which causes
GeckoView to uncompress the omni.ja file in memory before it can start doing
anything else. This takes a long time, on some profiles it delays startup by
about 400ms.

Storing the omni.ja uncompressed allows GeckoView to just map it in memory
bypassing the uncompress step.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 20:38:37 +00:00
Kristen Wright 656a5d7c45 Bug 1622111 - Convert four security.mixed_content.* prefs in nsMixedContentBlocker r=njn
Converts `security.mixed_content.block_object_subrequest`, `security.mixed_content.block_display_content`, `security.mixed_content.upgrade_display_content`, and `security.mixed_content.block_active_content` to static prefs.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:54:29 +00:00
Botond Ballo cb71f443fb Bug 1623476 - Use initial-scale=1 in clickToReload.html. r=snorp
This ensures that CSS coordinates (which is what the synthesizeTap test case
passes to GeckoSessionTestRule.synthesizeTap()) are equal to Screen coordinates
(which is what that function expects).

An alternative approach would be to query the resolution and convert from CSS
to Screen coordinates, either in the test case or inside synthesizeTap().

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

--HG--
extra : moz-landing-system : lando
2020-03-23 22:22:19 +00:00
Tomislav Jovanovic f96f3422db Bug 1316748 - Move Port messaging off MessageChannel r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D67302

--HG--
extra : moz-landing-system : lando
2020-03-21 00:02:20 +00:00
James Willcox 8d1a2b702d Bug 1622816 - Ensure network is always available in TestRunnerActivity r=geckoview-reviewers,agi
When running mochitests on real hardware, we sometimes lose the network,
causing strange timeouts. It's better if we crash immediately in those
situations to avoid confusion.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 18:26:21 +00:00
Agi Sferro 773f537bd6 Bug 1623712 - Actually pass flags when calling reload. r=rbarker
We also don't pass `BYPASS_LOAD_URI_DELEGATE` since it's ignored anyway for
reloads.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 16:56:20 +00:00
Kartikaya Gupta b256cfe15f Bug 1623708 - Remove unused pref. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D67618

--HG--
extra : moz-landing-system : lando
2020-03-20 14:21:40 +00:00
Petru-Mugurel Lingurar 23e7aab874 Bug 1622781 - Canonicalize filenames from content providers; r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D66974

--HG--
extra : moz-landing-system : lando
2020-03-20 12:59:59 +00:00
Oana Pop Rus a99e2b3ec2 Backed out changeset 502775f3a9cf (bug 1622816) for android Bpgo(run) exceptions 2020-03-20 01:06:37 +02:00
James Willcox 4ccf12cecf Bug 1622816 - Ensure network is always available in TestRunnerActivity r=geckoview-reviewers,agi
When running mochitests on real hardware, we sometimes lose the network,
causing strange timeouts. It's better if we crash immediately in those
situations to avoid confusion.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 20:38:15 +00:00
Sylvestre Ledru be18fd4dba Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D67319

--HG--
extra : moz-landing-system : lando
2020-03-19 13:47:51 +00:00
Emilio Cobos Álvarez 7d6d772dee Bug 1622894 - Don't force-focus the input when we're force-showing the virtual keyboard. r=m_kato
When you type in a textarea, and zoom to position the caret, then click, we'll
scroll all the way to the top of the textarea, via:

  IMEStateManager::OnClickInEditor -> SetIMEState -> SetInputContext -> mEditable->NotifyIME(EditableListener::NOTIFY_IME_OPEN_VKB);

Even if the keyboard was already displayed. In this case, we're not moving
focus, and panning to the start causes more issues than it fixes. Prevent
zooming to the start of the input in this case, but still do it if we get the
resize event (and thus toggle the keyboard).

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

--HG--
extra : moz-landing-system : lando
2020-03-19 09:18:37 +00:00
Agi Sferro a4ed37be73 Bug 1622926 - Don't restore scrolldata and form data when switching processes. r=droeh
That data is not the right one anyway, since it comes from the previous page
rather than the current one.

Note: this is also broken on desktop too. It will be fixed once we move to main
process history (hopefully?).

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:57:10 +00:00
Stefan Hindli 5f419e4b50 Backed out 9 changesets (bug 1622111) for causing mochitest failures in dom/animation/test/mozilla/test_restyles.html CLOSED TREE
Backed out changeset c244160797f8 (bug 1622111)
Backed out changeset dd9209f6bd8b (bug 1622111)
Backed out changeset d694c9e7061f (bug 1622111)
Backed out changeset 486aae809f6d (bug 1622111)
Backed out changeset 709266168c41 (bug 1622111)
Backed out changeset ca0d47bb86a8 (bug 1622111)
Backed out changeset caa735c8bb91 (bug 1622111)
Backed out changeset 12397711ab25 (bug 1622111)
Backed out changeset b66002fd1480 (bug 1622111)
2020-03-19 02:47:51 +02:00
Kristen Wright edf4e23c7d Bug 1622111 - Convert four security.mixed_content.* prefs in nsMixedContentBlocker r=njn
Converts `security.mixed_content.block_object_subrequest`, `security.mixed_content.block_display_content`, `security.mixed_content.upgrade_display_content`, and `security.mixed_content.block_active_content` to static prefs.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 23:25:13 +00:00
Agi Sferro 8f8a01c7b7 Bug 1621966 - Don't crash when the dynamic toolbar is bigger than the screen. r=botond,snorp
There are cases when GV is being animated and it ends up being smaller than the
dynamic toolbar for a few frames. When that happens we really don't want to
crash and we can just ignore it.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 20:29:27 +00:00
William Lachance e4da848fd8 Bug 1623132 - Rewrite printconfigsetting to use configparser, python 3 r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D67210

--HG--
extra : moz-landing-system : lando
2020-03-18 15:07:24 +00:00
Sylvestre Ledru c696c4cabf Bug 1622328 - geckoview: Add the license r=snorp
Depends on D66832

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

--HG--
extra : moz-landing-system : lando
2020-03-16 15:28:29 +00:00
Brendan Dahl c60611731c Bug 1623155 - Fix which extension is registered after update. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D67196

--HG--
extra : moz-landing-system : lando
2020-03-17 19:22:43 +00:00
James Willcox e09b890d7b Bug 1616613 - Remove unused SQLiteBridge r=glandium
This abomination was only used in Fennec.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 18:44:10 +00:00
James Willcox d2d9cdb5ac Bug 1611270 - Delete unused NSSBridge r=glandium,geckoview-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D64810

--HG--
extra : moz-landing-system : lando
2020-03-16 18:44:10 +00:00
James Willcox 257fd28a5f Bug 1621476 - Disable WebAuthn on GeckoView r=jcj,smaug
We'll enable it once it's actually supported.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 15:29:52 +00:00
Marco Bonardo 2dc20c6432 Bug 1621328 - Move CreateExposableURI into nsIOService. r=Gijs,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D66269

--HG--
extra : moz-landing-system : lando
2020-03-13 12:44:36 +00:00
Makoto Kato edc87f1d99 Bug 1613804 - InputConnection.finishComposingText should commit composition text. r=geckoview-reviewers,snorp
Gecko don't commit composition when software keyboard calls
InputConnection.finishComposingText. It is incompatible with Blink's behaviour.

BaseInputConnection.finishComposingText() implementation is the following.

1. Begin batch edit.
2. Remove all composition span flag.
3. End batch edit.

So if no composition after batch edit is finished, we should commit it on Gecko
to synchronize composition state.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 18:01:50 +00:00