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

30070 Коммитов

Автор SHA1 Сообщение Дата
Narcis Beleuzu de7afe990b Backed out 2 changesets (bug 1638724, bug 1640418) for build bustages on WebExtensionTest.kt. CLOSED TREE
Backed out changeset ca9ad40caa79 (bug 1638724)
Backed out changeset 8824d1cadb7a (bug 1640418)
2020-07-07 21:47:40 +03:00
Agi Sferro 18cef8bb4b Bug 1638724 - Check for extension id instead of extension. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D82443
2020-07-07 16:57:01 +00:00
Agi Sferro c4f94e2e85 Bug 1640418 - Fix onBeforeUnload intermittent. r=esawin
The problem here is that sometimes the test clicks on the two links too quickly
and only the second click goes through the onBeforeUnload path and the first
one is ignored.

Differential Revision: https://phabricator.services.mozilla.com/D82442
2020-07-07 16:57:09 +00:00
Dylan Roeh 76475c8adb Bug 1646392 - Do not report tracking content as loaded simply because it has matched tracking lists. r=esawin,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82379
2020-07-07 16:05:56 +00:00
Makoto Kato 558d46bd36 Bug 1633621 - Synchronize Java text and Gecko text at force when getting focus. r=geckoview-reviewers,agi
If client script wants to commit composition string per input, it sometimes
use the following script.

```
let input = document.getElementById('input');
input.addEventListener('input', () => {
  input.blur();
  input.focus();
});
```

Since `blur` will commit composition string, this script can commit text. But
since Gecko has an optimization for this situation, focus won't be lost
completely.

Although GeckoView synchronizes Java text and selection with Gecko text when
getting focus, this sample may be failed due to timing issue. `blur` tries to
commit string, but result is never returned since focus is lost as temporary
(although text is finally committed in Gecko.). Then, GeckoView are waiting
for result that is never returned forever, So this synchronization is failed.

When getting focus again, we should synchronize it at force.

Differential Revision: https://phabricator.services.mozilla.com/D80147
2020-07-06 16:26:08 +00:00
Andreea Pavel 180da3b45b Bug 1640418 - disable PromptDelegateTest.onBeforeUnloadTest on opt r=geckoview-reviewers,jmaher,agi
Differential Revision: https://phabricator.services.mozilla.com/D82258
2020-07-05 14:43:56 +00:00
John Lin 1c858f5365 Bug 1640369 - always close memory files in case GC doesn't. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82056
2020-07-02 21:34:58 +00:00
Brindusan Cristian 05dbb8981f Backed out changeset f8d39b8ed5dc (bug 1640369) for android lint failure on SamplePool.java. CLOSED TREE 2020-07-02 22:37:00 +03:00
John Lin 755140cbbf Bug 1640369 - always close memory files in case GC doesn't. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82056
2020-07-02 17:35:37 +00:00
Aaron Klotz b14bb7b621 Bug 1649530: Deprecate GeckoRuntimeSettings for toggling multiprocess; r=geckoview-reviewers,agi
I intend to uplift this patch to v79, so the changelog references 79 and the
version for removal is indicated as v82.

Differential Revision: https://phabricator.services.mozilla.com/D82033
2020-07-02 17:19:38 +00:00
Aaron Klotz 70c0911d49 Bug 1649529: Deprecate GeckoSession parcelability; r=geckoview-reviewers,agi
Note: These comments reference GeckoView 82 instead of GeckoView 83 because I
plan to uplift this to GeckoView 79. Ditto for the changelog entry.

Tests that use the parcelable functionality are flagged to ignore deprecation
warnings.

Differential Revision: https://phabricator.services.mozilla.com/D81768
2020-07-02 15:10:56 +00:00
Csoregi Natalia 8bfee7f962 Backed out changeset 624547a0b29c (bug 1649529) for linting failure on GeckoSession.java. CLOSED TREE 2020-07-02 17:55:21 +03:00
Aaron Klotz 5782994db0 Bug 1649529: Deprecate GeckoSession parcelability; r=geckoview-reviewers,agi
Note: These comments reference GeckoView 82 instead of GeckoView 83 because I
plan to uplift this to GeckoView 79. Ditto for the changelog entry.

Tests that use the parcelable functionality are flagged to ignore deprecation
warnings.

Differential Revision: https://phabricator.services.mozilla.com/D81768
2020-07-02 14:27:15 +00:00
Gerald Squelart 56736f31c3 Bug 1648507 - Distinguish pausing sampling only from pausing the whole profiler - r=canaltinova,perftest-reviewers,geckoview-reviewers,agi
The profiler can be "paused", which stops sampling, and since bug 1578329 stops markers as well.

Some test suites use pausing between tests (to better differentiate the tests, to keep the profiler ready to run, and to lower the amount of recorded data). But this causes problems with some tracing markers, as their matching ends have not been recorded (e.g., an end marker is missing), which show up as very loooong markers.
To solve this, we need to be able to pause sampling only, but keep recording markers.
But we still need to be able to pause the whole profiler, in particular before capturing, to avoid recording anything around that time.

This big patch is mostly mechanical changes: Wherever there are "Pause" and "Unpause/Resume" profiler functions, we add matching "PauseSampling" and "UnpauseSampling/ResumeSampling" functions that only impact the periodic sampling loop; And existing "Pause/Unpause/Resume" imply pausing sampling as well.
Exceptions and extra work:
- nsIProfiler (the JS API) already had `Pause/ResumeSampling()`, which misleadingly paused everything! Now they do the right thing, and we have `Pause/Resume()` as well.
- All tests using `Pause/ResumeSampling()` now use `Pause/Resume()`, except for Talos tests that only pause sampling between tests; Added some extra `Pause()` calls to pause everything before capturing profiles.
- GeckoJavaSampler doesn't handle pausing/resuming everything, this should be done in a follow-up bug.
- Sampling-only pauses are not streamed into JSON. If needed, we should follow-up, with potential work on the front-end to deal with these.

Differential Revision: https://phabricator.services.mozilla.com/D81492
2020-07-02 01:36:27 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Mike Hommey 9c264b7cf2 Bug 1240930 - Move jar_maker to the misc tier. r=firefox-build-system-reviewers,geckoview-reviewers,rstewart,agi
Because jar_maker is not in the libs tier, we also rename the libs-%
targets for l10n repacks to l10n-%, which make it clearer what they are
for.

And because multilocale.txt is both a GeneratedFile and a file that is
generated (and installed) via manual build rules, keeping it in the misc
target actually breaks building in toolkit/locales during l10n repacks,
so move it to libs for now.

Differential Revision: https://phabricator.services.mozilla.com/D81766
2020-06-30 21:34:32 +00:00
Aaron Klotz 8676c67cef Bug 1647883: Part 2 - Update junit tests to transfer a WebExtension.Port between sessions; r=geckoview-reviewers,agi
The only fallout from part 1 is a single test where we run `evaluateJS` on a session, serialize it to a `Parcel`,
deserialize it to new, distinct `GeckoSession` object, and then perform additional `evaluateJS` on the latter.

Since the deserialization of the `Parcel` transferred the session's contents from the original session to the new
session, we also need to transfer the `WebExtension.Port` used by `evaluateJS` to the new session.

Note that this fix is kind of hacky, but because we are going to deprecate the parcelability of `GeckoSession`, I
do not believe that it is worth the effort to implement a "perfect" fix; that would likely involve adding new APIs
to support another API that we are going to deprecate anyway.

Depends on D81746

Differential Revision: https://phabricator.services.mozilla.com/D81748
2020-06-30 20:14:08 +00:00
Aaron Klotz c5f4368518 Bug 1647883: Part 1 - Remove hashCode and equals overrides from GeckoSession in favour of new, package-scoped GeckoSession.equalsId method; r=geckoview-reviewers,agi
Because `GeckoSession`'s overrides of `hashCode` and `equals` look solely at session ID, this may cause
strange behaviors if a `GeckoSession` is reloaded with session state from a previous instance, and the
previous instance still exists. For example, suppose the previous instance is closed and the new instance is
open. As far as the Android runtime is concerned, both objects are equivalent. Trying to insert both objects
into the same container will not work as expected.

In this patch, we revert those overrides. To ensure that we still have a short-circuit path in
`GeckoView.restoreSession`, we add and utilize a new, `package`-scoped, `equalsId` method.

Differential Revision: https://phabricator.services.mozilla.com/D81746
2020-06-30 20:22:55 +00:00
Cosmin Sabou 03146c715b Backed out 2 changesets (bug 1647883) for gecko decision task issues. CLOSED TREE
Backed out changeset a3cc583cc2ba (bug 1647883)
Backed out changeset d98ba38985bb (bug 1647883)
2020-07-01 00:18:43 +03:00
Aaron Klotz c886426e49 Bug 1647883: Part 2 - Update junit tests to transfer a WebExtension.Port between sessions; r=geckoview-reviewers,agi
The only fallout from part 1 is a single test where we run `evaluateJS` on a session, serialize it to a `Parcel`,
deserialize it to new, distinct `GeckoSession` object, and then perform additional `evaluateJS` on the latter.

Since the deserialization of the `Parcel` transferred the session's contents from the original session to the new
session, we also need to transfer the `WebExtension.Port` used by `evaluateJS` to the new session.

Note that this fix is kind of hacky, but because we are going to deprecate the parcelability of `GeckoSession`, I
do not believe that it is worth the effort to implement a "perfect" fix; that would likely involve adding new APIs
to support another API that we are going to deprecate anyway.

Depends on D81746

Differential Revision: https://phabricator.services.mozilla.com/D81748
2020-06-30 20:14:08 +00:00
Aaron Klotz 2790f076d6 Bug 1647883: Part 1 - Remove hashCode and equals overrides from GeckoSession in favour of new, package-scoped GeckoSession.equalsId method; r=geckoview-reviewers,agi
Because `GeckoSession`'s overrides of `hashCode` and `equals` look solely at session ID, this may cause
strange behaviors if a `GeckoSession` is reloaded with session state from a previous instance, and the
previous instance still exists. For example, suppose the previous instance is closed and the new instance is
open. As far as the Android runtime is concerned, both objects are equivalent. Trying to insert both objects
into the same container will not work as expected.

In this patch, we revert those overrides. To ensure that we still have a short-circuit path in
`GeckoView.restoreSession`, we add and utilize a new, `package`-scoped, `equalsId` method.

Differential Revision: https://phabricator.services.mozilla.com/D81746
2020-06-30 20:22:55 +00:00
Agi Sferro a39f7c1e96 Bug 1582562 - Do not build/install geckoview_example.test. r=nalexander,owlish
We don't use it and causes confusion when `mach install` fails because the
signature of `geckoview_example.test` doesn't match.

Differential Revision: https://phabricator.services.mozilla.com/D81606
2020-06-29 23:28:02 +00:00
chocos 10fddf998d Bug 1648959 - Done internal linking in docs in mobile Directory.r=championshuttler,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D81462
2020-06-29 21:04:48 +00:00
Mike Hommey 382cebd8f2 Bug 1648575 - Fix Android artifact builds after bug 1645986. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D81240
2020-06-25 22:31:02 +00:00
Nazım Can Altınova eb7c6e7a4c Bug 1624993 - Expose a GeckoView API for Gecko Profiler markers r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D79125
2020-06-25 14:30:48 +00:00
Nazım Can Altınova 43599d0362 Bug 1624993 - Add a marker API inside the non-public Android Java sampler. r=geckoview-reviewers,julienw,esawin
Differential Revision: https://phabricator.services.mozilla.com/D79123
2020-06-25 14:42:45 +00:00
Rob Wu 1ce5630b47 Bug 1645264 - Add test for redirect to web_accessible_resources r=agi,geckoview-reviewers
In bug 1645264, extension resources could not be loaded when extensions
were loaded through the deprecated `registerWebExtension` method,
because the base URL of such extensions were not correctly resolved.
This does work as expected with the new `installBuiltin` method because
that relies on the AddonManager, which internally does resolve the URL
as expected.

This patch does not fix the bug because the deprecated method is going
to be removed, but introduces a regression test to make sure that this
functionality continues to work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D80300
2020-06-22 22:50:02 +00:00
Mitchell Hentges a16c5f70d6 Bug 1644553: Don't enable profile use for artifact builds r=glandium,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D80565
2020-06-24 16:57:36 +00:00
Emilio Cobos Álvarez 24e9f0cd8e Bug 1647871 - Fix a typo in a dynamic toolbar unit test. r=geckoview-reviewers,agi
No behavior change actually (as instant is the default behavior), but I
just noticed it while debugging these.

Depends on D80723

Differential Revision: https://phabricator.services.mozilla.com/D80724
2020-06-24 13:18:50 +00:00
Agi Sferro a6bb2f24f2 Bug 1635564 - Implement ensureBuiltIn. r=droeh,aklotz
Verified locally that reading the manifest does not affect performance in Fenix
(which uses 5 different built-in extensions) for google.com.

79.0.20200617184425 - Don't parse manifest

fully-drawn : avg: 2030 ± 11 stddev: 112 n=101
about:blank : avg: 2775 ± 26 stddev: 265 n=101
page loaded : avg: 3922 ± 50 stddev: 503 n=101

79.0.20200617205116 - Parse manifest

fully-drawn : avg: 2025 ± 13 stddev: 130 n=89
about:blank : avg: 2761 ± 24 stddev: 232 n=89
page loaded : avg: 3866 ± 39 stddev: 377 n=89

Differential Revision: https://phabricator.services.mozilla.com/D80567
2020-06-23 19:03:50 +00:00
Makoto Kato f823fd996a Bug 1645725 - Remove chatsetMenu.properties l10n resource from GeckoView. r=geckoview-reviewers,Pike,snorp
`charsetMenu.properies` was for "Text Encoding" menu in Fennec (bug 611580).
EN was off as default, but some language such JA turned on this menu.

Since Fennec is gone, it is unnecessary now, so let's remove this resource.

Differential Revision: https://phabricator.services.mozilla.com/D79634
2020-06-22 09:00:40 +00:00
Makoto Kato 8dbe6d9df4 Bug 1490661 - Part 6. Add geckoview-junit test for enterkeyhint. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79647
2020-06-23 06:38:18 +00:00
Makoto Kato 426de38712 Bug 1490661 - Part 5. Implement current spec of enterkeyhint on Android backend. r=geckoview-reviewers,agi
When using `enterkeyhint` attribute, key event must be be fired as enter key.
So by previous changeset, I change action type to `maybenext` if inferring
action type without `enterkeyhint`.

Also, `enterkeyhint` can have additional values (enter and previous), so Android
back end should support it.

Differential Revision: https://phabricator.services.mozilla.com/D79646
2020-06-23 06:38:10 +00:00
Butkovits Atila 6b3af0dbd0 Backed out changeset 0238d868b580 (bug 1645725) for build bustage at FuzzyLayer.cpp. CLOSED TREE 2020-06-23 08:48:30 +03:00
Makoto Kato f1375a999d Bug 1645725 - Remove chatsetMenu.properties l10n resource from GeckoView. r=geckoview-reviewers,Pike,snorp
`charsetMenu.properies` was for "Text Encoding" menu in Fennec (bug 611580).
EN was off as default, but some language such JA turned on this menu.

Since Fennec is gone, it is unnecessary now, so let's remove this resource.

Differential Revision: https://phabricator.services.mozilla.com/D79634
2020-06-22 09:00:40 +00:00
Gijs Kruitbosch d523471eac Bug 1644863 - fix trailing whitespace in browser/toolkit/devtools/mobile frontend code files, r=mossop,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79201
2020-06-17 22:40:53 +00:00
Mitchell Hentges 58848678dc Bug 1644794: Improve "missing JDK" error message and docs r=rstewart,geckoview-reviewers,agi
Additionally, recommends the installation of AdoptOpenJDK instead of the Oracle JDK.
This required a different "JAVA_HOME" detection mechanism, which is implemented in this revision.

Differential Revision: https://phabricator.services.mozilla.com/D79547
2020-06-17 12:17:48 +00:00
Kris Maglione 3bda67deab Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-17 17:17:16 +00:00
Alessio Placitelli 978c11c581 Bug 1620656 - Remove 'geckoview' telemetry support. r=chutten,geckoview-reviewers,aklotz
This removes the support for the 'geckoview' telemetry in
the core and in the JSM files. It also cleans up testing
and the configurations.

Differential Revision: https://phabricator.services.mozilla.com/D79521
2020-06-16 12:22:55 +00:00
dpk 214e706476 Bug 1637431 - Gives meaningful tabs.query error message. r=robwu,geckoview-reviewers,agi
***
Bug 1637431 - Gives meaningful tabs.query error message. r=robwu

Differential Revision: https://phabricator.services.mozilla.com/D78466
2020-06-16 11:47:14 +00:00
Simon Giesecke 3ada66891d Bug 1645339 - Use range-based for with nsTObserverArray in mobile/android. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79504
2020-06-16 10:16:43 +00:00
Butkovits Atila 29b9d8b25a Backed out 3 changesets (bug 1620656) for causing bustage at TestGeckoView. CLOSED TREE
Backed out changeset af6b36a497e8 (bug 1620656)
Backed out changeset f0b502580ef0 (bug 1620656)
Backed out changeset dd0ce5e4a1bf (bug 1620656)
2020-06-16 13:22:04 +03:00
Alessio Placitelli 96574abcf1 Bug 1620656 - Remove 'geckoview' telemetry support. r=chutten,geckoview-reviewers,aklotz
This removes the support for the 'geckoview' telemetry in
the core and in the JSM files. It also cleans up testing
and the configurations.

Differential Revision: https://phabricator.services.mozilla.com/D79521
2020-06-16 08:49:12 +00:00
Nika Layzell cde53b3bec Bug 1508306 - Part 1: Migate the Large-Allocation handler to DocumentLoadListener, r=mattwoodrow,necko-reviewers,geckoview-reviewers,agi,valentin
This removes the diagnostic warnings which used to be logged when the
Large-Allocation header was present, but failed to switch into a
Large-Allocation process. Due to the low adoption of the header, this shouldn't
be too large of a problem, but we can look into re-adding the diagnostics if
needed in the future.

The new codepath no longer performs multiple network requests for
Large-Allocation resources, and now relies on the battle-tested
DocumentLoadListener codepath for process switching.

Differential Revision: https://phabricator.services.mozilla.com/D78998
2020-06-15 23:24:07 +00:00
Nicholas Nethercote a15b81b965 Bug 1572508 - Convert `ui.touch.*` and `ui.mouse.*` VarCache prefs to static prefs. r=KrisWright,kats,geckoview-reviewers,agi.
This is a weird conversion because the existing VarCache mirror prefs are in a
two static structs, one for touch prefs and one for the equivalent mouse prefs,
and we dynamically select the appropriate struct in `GetPrefsFor()`.

(But note that `ui.mouse.radius.reposition` and
`ui.mouse.radius.inputSource.touchOnly` do not have corresponding `touch`
prefs! For touch events they are always considered to be false.)

The commit make the following changes.
- It makes the prefs into static prefs.
- It moves the code in `GetPrefsFor()` into a constructor for
  `EventRadiusPrefs`, and copies the pref values into a temporary object of
  that type. Those copied values are then used by the subsequent code.
- It removes the two static `EventRadiusPrefs` structs.
- It renames some fields in `EventRadiusPrefs` to make them more closely match
  the pref names.

Differential Revision: https://phabricator.services.mozilla.com/D79405
2020-06-15 06:23:48 +00:00
Narcis Beleuzu a8dde16e58 Backed out 10 changesets (bug 1508306, bug 1640019) for bc failures on browser_autoOpen.js . CLOSED TREE
Backed out changeset 8844170ff408 (bug 1508306)
Backed out changeset b750f1d873cf (bug 1508306)
Backed out changeset c7170e76e676 (bug 1640019)
Backed out changeset 5905995e4815 (bug 1640019)
Backed out changeset 7bf86513348e (bug 1640019)
Backed out changeset f7d0605295f7 (bug 1640019)
Backed out changeset 521b4d5a9a89 (bug 1640019)
Backed out changeset 8542edc564bc (bug 1640019)
Backed out changeset 4f6a03152526 (bug 1640019)
Backed out changeset 30d2bf04719b (bug 1640019)
2020-06-12 22:47:50 +03:00
Nika Layzell 47c0aeb539 Bug 1508306 - Part 1: Migate the Large-Allocation handler to DocumentLoadListener, r=mattwoodrow,necko-reviewers,geckoview-reviewers,agi,valentin
This removes the diagnostic warnings which used to be logged when the
Large-Allocation header was present, but failed to switch into a
Large-Allocation process. Due to the low adoption of the header, this shouldn't
be too large of a problem, but we can look into re-adding the diagnostics if
needed in the future.

The new codepath no longer performs multiple network requests for
Large-Allocation resources, and now relies on the battle-tested
DocumentLoadListener codepath for process switching.

Differential Revision: https://phabricator.services.mozilla.com/D78998
2020-06-12 16:52:13 +00:00
Eugen Sawin e047f641f7 Bug 1644447 - [1.0] Remove deprecated telemetry snapshot API. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D78909
2020-06-12 12:02:11 +00:00
Eugen Sawin e888fdae80 Bug 1643928 - [1.0] Assert for extension IDs instead of comparing instances. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79158
2020-06-10 18:06:23 +00:00
Bogdan Tara 2b80bfb16b Backed out changeset 61bdbb94ab7a (bug 1637431) for browser_ext_tabs_cookieStoreId.js failures CLOSED TREE 2020-06-11 07:36:35 +03:00
dpk 43998630ac Bug 1637431 - Gives meaningful tabs.query error message. r=robwu,geckoview-reviewers,agi
***
Bug 1637431 - Gives meaningful tabs.query error message. r=robwu

Differential Revision: https://phabricator.services.mozilla.com/D78466
2020-06-11 03:44:23 +00:00
Mihai Alexandru Michis 9167a29a3a Backed out changeset 436777b95e22 (bug 1637431) for causing bc failures in browser_ext_tabs_cookieStoreId.js
CLOSED TREE
2020-06-11 06:35:23 +03:00
dpk 21f99d2072 Bug 1637431 - Removed a comment line, rev approved. r=robwu,geckoview-reviewers,agi
***
Bug 1637431 - Gives meaningful tabs.query error message. r=robwu

Differential Revision: https://phabricator.services.mozilla.com/D78466
2020-06-11 02:33:11 +00:00
James Willcox f48f8ed0ee Bug 1643129 - Add a reload to GV auth prompt test r=geckoview-reviewers,aklotz
This is needed in order to catch certain problems with LoginStorage.jsm.

Differential Revision: https://phabricator.services.mozilla.com/D78142
2020-06-10 05:44:48 +00:00
Eugen Sawin 3834bcff96 Bug 1638311 - [1.1] Ignore input type=hidden elements for autofill. r=geckoview-reviewers,MattN,agi
Differential Revision: https://phabricator.services.mozilla.com/D78557
2020-06-09 20:34:18 +00:00
Agi Sferro f0ab43adb7 Bug 1644297 - Re enable old browser.storage.sync on Android. r=rpl,snorp
This also adds a smoke test which runs on all platforms to avoid regressions.

Differential Revision: https://phabricator.services.mozilla.com/D78987
2020-06-10 17:19:56 +00:00
Mitchell Hentges b341f73995 Bug 1632874: Update docs since mozconfig file is automatically created r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D79002
2020-06-10 01:13:13 +00:00
Emilio Cobos Álvarez 4e88a12703 Bug 1643656 - Fix GeckoRuntimeSettings color scheme configuration. r=geckoview-reviewers,snorp
So as to not use a pref with an invalid value, which I would've changed
the behavior of with the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D78957
2020-06-09 22:40:22 +00:00
Grace Bramley-Simmons 4ab1c522b1 Bug 1618987 - Removed WebExtensionController#setTabDelegate and related methods r=agi,geckoview-reviewers
Updated API docs to reflect removed method

Removed incorrect line to fix some bugs

Updated changelog

Added listener registration back into WebExtension Listener constructor

Differential Revision: https://phabricator.services.mozilla.com/D78977
2020-06-09 21:49:56 +00:00
Alexis Beingessner fc174e020d Bug 1642344 - convert HTMLInputElement VarCache prefs to StaticPrefs. r=geckoview-reviewers,agi.
converts:
* dom.experimental_forms
* dom.forms.datetime.others
* dom.forms.color

Differential Revision: https://phabricator.services.mozilla.com/D77850
2020-06-09 14:45:50 +00:00
James Willcox ed11539ff5 Bug 1642345 - Add 'source' field to WebNotification r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D78168
2020-06-09 13:47:53 +00:00
Dorel Luca d05df77874 Backed out changeset d52680bbda73 (bug 1642345) for Mochitest failures in toolkit/components/alerts/test/test_alerts_noobserve.html. CLOSED TREE 2020-06-08 23:50:35 +03:00
James Willcox d9995bd658 Bug 1642345 - Add 'source' field to WebNotification r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D78168
2020-06-08 17:22:17 +00:00
James Willcox dff6c8722d Bug 1641064 - Fail screenshot captures immediately if we pause the compositor r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D78373
2020-06-04 23:40:01 +00:00
Aaron Klotz 064411f491 Bug 1643458: Remove numUnbindFailures from ServiceAllocator.InstanceInfo.updateBindings; r=geckoview-reviewers,agi
`numUnbindFailures` can never be non-zero (since any unbind failures throw), so
we should just eliminate this variable.

Differential Revision: https://phabricator.services.mozilla.com/D78362
2020-06-04 21:56:50 +00:00
Eugen Sawin 884ca900af Bug 1619766 - [2.0] Add WebExtension openOptionsPage tests. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D78398
2020-06-05 17:21:31 +00:00
Eugen Sawin 60b2d3d9e9 Bug 1619766 - [1.2] Add WebExtension openOptionsPage support. r=agi,geckoview-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D77901
2020-06-05 17:21:24 +00:00
John Lin b6a091d9dd Bug 1628792 - p2: update GeckoHls* for API changes in exoplayer. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D78390
2020-06-05 02:06:14 +00:00
John Lin 68b7382249 Bug 1628792 - p1: merge exoplayer r2.11.4 codebase. r=agi,geckoview-reviewers
Reference bugs:
- bug 1341990 (original import)
- bug 1523544 (package renaming)
- bug 1457255 (warning fixes)
- bug 1459420 (Firefox ProxySelector support)

Differential Revision: https://phabricator.services.mozilla.com/D78389
2020-06-04 21:18:43 +00:00
Rob Wu 8162b376d4 Bug 1642671 - Add tests for falsey result from runtime.onMessage r=zombie,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D77895
2020-06-03 17:26:43 +00:00
Agi Sferro 570ba4b9d5 Bug 1642429 - Use checkstyle to enforce that all API methods have docs. r=esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D77693
2020-06-02 15:05:13 +00:00
Makoto Kato 0917864e45 Bug 1593683 - Part 2. Handle arrow left/right key when having composition. r=geckoview-reviewers,esawin
Most IMEs handle arrow key, then set caret position by IME. But GBoard doesn't
handle it. GBoard will dispatch key event to application for arrow left/right
even if having IME composition.

Since Gecko doesn't dispatch key press during IME composition due to DOM UI
events spec, we have to emulate arrow key's behaviour.

And, `GeckoEditable` has a hack that composition text is committed when
dispatching key event. This hack is unnecessary after landing
bug 1613804 that `InputConnection.finishComposingText` is implemented.

Differential Revision: https://phabricator.services.mozilla.com/D76658
2020-06-01 08:36:29 +00:00
Razvan Maries a36bb7751f Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione b3fcd970ec Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-01 17:59:01 +00:00
Agi Sferro 582feb1629 Bug 1575999 - Always run javadoc tasks during lint. r=nalexander,esawin
Differential Revision: https://phabricator.services.mozilla.com/D77489
2020-06-01 15:58:03 +00:00
Agi Sferro bf1d097cb9 Bug 1641711 - Make javadoc output parsing more resilient. r=snorp
As it turns out, javadoc output is not stable across platforms / OSs / versions
(not a big suprise).

E.g. in try this is an example line:

```
/builds/worker/checkouts/gecko/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java:1124: warning - Tag @link: reference not found: Autocomplete.LoginStorageDelegate.onLoginFetch onLoginFetch
```

on my mac, this is the same error:

```
/Users/asferro/workspace/mozilla-central/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java:1118: error: reference not found
     * {@link Autocomplete.LoginStorageDelegate.onLoginFetch onLoginFetch}.
```

Notice the `-` character after `warning` in the first example and the `:`
character after the second example.

To be able to parse both this patch simiplifies the regex and also adds a
failsafe that will mark anything that contains the string "error" and "warning"
as such.

Differential Revision: https://phabricator.services.mozilla.com/D77545
2020-06-01 15:58:05 +00:00
Agi Sferro 519207a6a8 Bug 1641711 - Don't fail the build if javadoc fails. r=nalexander,snorp,esawin
`|mach lint -f treeherder|` expects lint to not fail ever, if a lint fails it's
just ignored. This means that when our javadoc errors out and fails the build
all lints are ignored.

To avoid that we add `failOnError = false` to the javadoc job so that we can
finish the build and actually report the errors.

This patch also adds gradle output `|mach lint|` to make it easier to
diagnose errors in the lint.

Differential Revision: https://phabricator.services.mozilla.com/D77373
2020-06-01 15:58:13 +00:00
Tomislav Jovanovic 8f0bdce123 Bug 1583484 - Move extension messaging off MessageChannel r=geckoview-reviewers,mixedpuppy,agi
Differential Revision: https://phabricator.services.mozilla.com/D74026
2020-05-22 22:50:46 +00:00
Mihai Alexandru Michis 7ac149a023 Backed out 2 changesets (bug 1593683) for causing failures in test_selectevents.html
Backed out changeset 05d7ad574df4 (bug 1593683)
Backed out changeset 16cc9284bc5f (bug 1593683)
2020-06-01 06:29:24 +03:00
Makoto Kato 6608bcb9fd Bug 1593683 - Part 2. Handle arrow left/right key when having composition. r=geckoview-reviewers,esawin
Most IMEs handle arrow key, then set caret position by IME. But GBoard doesn't
handle it. GBoard will dispatch key event to application for arrow left/right
even if having IME composition.

Since Gecko doesn't dispatch key press during IME composition due to DOM UI
events spec, we have to emulate arrow key's behaviour.

And, `GeckoEditable` has a hack that composition text is committed when
dispatching key event. This hack is unnecessary after landing
bug 1613804 that `InputConnection.finishComposingText` is implemented.

Differential Revision: https://phabricator.services.mozilla.com/D76658
2020-05-28 15:38:03 +00:00
Bogdan Tara f863a91210 Backed out changeset 2548f39e1751 (bug 1641711) for lints.py failure CLOSED TREE 2020-05-29 12:37:18 +03:00
Agi Sferro 465a4e3f1a Bug 1641711 - Don't fail the build if javadoc fails. r=nalexander,snorp
`|mach lint -f treeherder|` expects lints to not fail ever, if a lint fails it's
just ignored. This means that when our javadoc errors out and fails the build
all lints are ignored.

To avoid that we add `failOnError = false` to the javadoc job so that we can
finish the build and actually report the errors.

This patch also adds gradle output `|mach lint|` to make it easier to
diagnose errors in the lint.

Differential Revision: https://phabricator.services.mozilla.com/D77373
2020-05-29 00:24:22 +00:00
Rob Wu 9b0fc7b0fa Bug 1641516 - Use sendRequest in extension actions r=geckoview-reviewers,agi
The sender doesn't await a result, and the recipient does not send a
result. To get rid of logspam when the finalizer is invoked, simply
replace `sendRequestForResult` with `sendRequest`.

Differential Revision: https://phabricator.services.mozilla.com/D77235
2020-05-28 20:37:08 +00:00
Agi Sferro ba50630491 Bug 1641591 - restore WebExtension docs to current version. r=fluffyemily
Differential Revision: https://phabricator.services.mozilla.com/D77310
2020-05-28 17:38:23 +00:00
Eugen Sawin 6a2dd06f72 Bug 1641475 - [1.0] Fix Javadoc warnings. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D77311
2020-05-28 21:12:05 +00:00
Aaron Klotz bcc33f9b49 Bug 1641315: Fix crash when a binding connection is lost during final connection setup; r=geckoview-reviewers,agi
This crash hits when a `RemoteException` is thrown during `onServiceConnected`.
We `unbind`, which destroys all our bookkeeping data. During this destruction,
we also attempt to retrieve the pid, which fails because we lost our binding
before we had a chance to retrieve it.

This patch adds a new exception to be thrown in this case, which we explicitly
catch in `removeContentConnection`.

Differential Revision: https://phabricator.services.mozilla.com/D77135
2020-05-27 23:08:07 +00:00
Anny Gakhokidze 28243d5736 Bug 1630323 - Do not override user preferences when clicking on a service worker notification to open a new document, r=Gijs,nika,geckoview-reviewers,snorp
In Bug 1622749 a user preference for where to open new documents (from a
service worker notification) was temporarily overriden in order to quickly fix
a crash that was happening in mozilla::dom::ClientOpenWindow. The crash was
ocurring when the pref "browser.link.open_newwindow" was set to 2, meaning new
documents are opened in a new window, instead of a new tab. The reason the
browser crashed is because the path for opening a new document is different
depending on the current user setting, and in NEWWINDOW case we did not get a
browsing context returned when calling mozilla::dom::OpenWindow which resulted
in a failed assertion.

The solution is to pass in a callback to mozilla::dom::OpenWindow as part of
nsOpenWindowInfo object, and invoke that callback with a corresponding
BrowsingContext in nsFrameLoader when that browsing context is ready.

After we call mozilla::dom::OpenWindow, we wait on a promise, that will be
resolved when the callback is invoked, before executing the rest of the code
that depends on the browsing context for a newly opened document being
available.

Differential Revision: https://phabricator.services.mozilla.com/D72745
2020-05-27 18:15:36 +00:00
Agi Sferro 5b00703f08 Bug 1629113 - Add missing documentation to onBeforeUnloadPrompt. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D76964
2020-05-27 15:10:46 +00:00
Eugen Sawin 0ddffb01f3 Bug 1640990 - [1.1] Add login autofill runtime setting. r=geckoview-reviewers,MattN,snorp
Differential Revision: https://phabricator.services.mozilla.com/D76891
2020-05-27 14:04:52 +00:00
Agi Sferro 0f0c68a81d Bug 1640743 - Update WebExtension example links. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D76756
2020-05-26 19:31:01 +00:00
Agi Sferro c1406546b5 Bug 1629113 - Use |class| in GeckoViewPrompt.jsm r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75879
2020-05-26 07:44:49 +00:00
Agi Sferro c36e973433 Bug 1629113 - Move remaining services to components.conf. r=snorp,baku
Differential Revision: https://phabricator.services.mozilla.com/D75878
2020-05-26 07:44:52 +00:00
Agi Sferro 7cdda27e40 Bug 1629113 - Move prompt classes to its own modules. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75877
2020-05-26 16:35:28 +00:00
Agi Sferro 903fea5453 Bug 1629113 - Use |class| more in GeckoViewPrompt. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75876
2020-05-26 16:33:21 +00:00
Agi Sferro 4b055fe237 Bug 1629113 - Move GeckoViewPrompt.js to static component. r=droeh,pbz,MattN
Differential Revision: https://phabricator.services.mozilla.com/D75875
2020-05-26 07:44:44 +00:00
Butkovits Atila a2bda5fd7e Backed out 5 changesets (bug 1629113) for causing Geckoview perma failures. CLOSED TREE
Backed out changeset cd5c87a17008 (bug 1629113)
Backed out changeset 3729b2c288ba (bug 1629113)
Backed out changeset 2cd92d6c2998 (bug 1629113)
Backed out changeset 6d7c87f3c329 (bug 1629113)
Backed out changeset 2bcba09433b5 (bug 1629113)
2020-05-26 10:39:42 +03:00
Agi Sferro cd12daf7d8 Bug 1629113 - Use |class| in GeckoViewPrompt.jsm r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75879
2020-05-26 04:14:15 +00:00
Agi Sferro 398b7f2e76 Bug 1629113 - Move remaining services to components.conf. r=snorp,baku
Differential Revision: https://phabricator.services.mozilla.com/D75878
2020-05-26 04:14:12 +00:00
Agi Sferro c4530466c4 Bug 1629113 - Move prompt classes to its own modules. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75877
2020-05-26 04:14:05 +00:00
Agi Sferro 74d9fc93d1 Bug 1629113 - Use |class| more in GeckoViewPrompt. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75876
2020-05-26 04:14:05 +00:00
Agi Sferro e5ad06bfc2 Bug 1629113 - Move GeckoViewPrompt.js to static component. r=droeh,pbz,MattN
Differential Revision: https://phabricator.services.mozilla.com/D75875
2020-05-26 04:14:00 +00:00
Eugen Sawin 3e1783def2 Bug 1618058 - [4.3] Update API changelog. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D74685
2020-05-25 13:12:33 +00:00
Eugen Sawin a81483a92c Bug 1618058 - [3.3] Rename and extend LoginStorage tests to Autocomplete tests. r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D73060
2020-05-25 18:46:15 +00:00
Eugen Sawin 077dbf3832 Bug 1618058 - [2.c.7] Implement Autocomplete API backend. r=geckoview-reviewers,MattN,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D73753
2020-05-25 18:45:25 +00:00
Eugen Sawin 1e6ebcef70 Bug 1618058 - [2.b.3] Refactor LoginStorage backend API to the Autocomplete backend API. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D73057
2020-05-25 18:44:47 +00:00
Eugen Sawin 8a665d9c0e Bug 1618058 - [1.4] Add Autocomplete API for login autocomplete. r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D73055
2020-05-25 18:43:15 +00:00
Aaron Klotz 025407f0ea Bug 1625325: Part 1 - Add telemetry timer to record GeckoView content process lifetimes; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D76378
2020-05-22 23:21:50 +00:00
Agi Sferro cabca57aba Bug 1629113 - Implement nsIPromptCollection on GeckoView. r=snorp,droeh
Differential Revision: https://phabricator.services.mozilla.com/D72722
2020-05-22 23:22:41 +00:00
Agi Sferro 55a1cf51ab Bug 1629113 - Factor out prompter logic in GeckoViewPrompter. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D75874
2020-05-22 23:22:34 +00:00
James Willcox b4862ab01a Bug 1611035 - Grant "desktop-notification" when delivering Web Push in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D76218
2020-05-21 20:20:40 +00:00
Nazım Can Altınova e135e0b3f6 Bug 1639630 - Increase the java sample count limit to 120000 to cover up to 2 mins with 1ms interval. r=julienw,geckoview-reviewers,agi
Depends on D76180

Differential Revision: https://phabricator.services.mozilla.com/D76181
2020-05-21 21:20:38 +00:00
Nazım Can Altınova cdad822203 Bug 1639630 - Use the limited sample count instead of non-limited one. r=julienw,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D76180
2020-05-21 21:20:37 +00:00
Rob Wu ac650df53f Bug 1636158 - Remove addons-bloomfilters from Android package r=agi,geckoview-reviewers,snorp
Those will be restored in bug 1639050

Differential Revision: https://phabricator.services.mozilla.com/D76157
2020-05-20 16:39:05 +00:00
Aaron Klotz f65b5795c7 Bug 1630229: Part 8 - Stop throwing AssertionError for binding of defunct ServiceAllocator.InstanceInfo; r=geckoview-reviewers,owlish
I'm keeping this patch as simple as possible so that we can uplift to beta.
I'll sort out the rest of this in follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D76333
2020-05-21 19:11:22 +00:00
Bogdan Tara 5e15baf1e4 Backed out changeset e562d64f2bf9 (bug 1630229) for lints failure on ServiceAllocator.java CLOSED TREE 2020-05-21 21:47:57 +03:00
Aaron Klotz 06cd8d0427 Bug 1630229: Part 8 - Stop throwing AssertionError for binding of defunct ServiceAllocator.InstanceInfo; r=geckoview-reviewers,owlish
I'm keeping this patch as simple as possible so that we can uplift to beta.
I'll sort out the rest of this in follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D76333
2020-05-21 17:53:08 +00:00
Emilio Cobos Álvarez 7b19f0d6d4 Bug 1609024 - Remove cache mechanism which is not very useful. r=hiro,snorp,mccr8
I don't think all this complexity is worth it for having a
marginally-more-realistic testing story. Using the pref just works and we should
do that, I think.

Differential Revision: https://phabricator.services.mozilla.com/D59980
2020-05-21 17:02:06 +00:00
Emily Toop bcb67c8680 Bug 1639180 - Port docs to Sphinx and reST and stop copying to GitHub. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75935
2020-05-20 15:22:32 +00:00
Mihai Alexandru Michis e9d51d0f4d Backed out changeset 141fda86ce58 (bug 1639180) for causing rst lint failures.
CLOSED TREE
2020-05-20 15:24:58 +03:00
Emily Toop 3a5a675f9f Bug 1639180 - Port docs to Sphinx and reST and stop copying to GitHub. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75935
2020-05-19 14:51:17 +00:00
Aaron Klotz dba6e9ff37 Bug 1639435: Remove GeckoProcessManager.buildLogMsg and change its callsite to just use a literal string; r=geckoview-reviewers,droeh
`GeckoProcessManager.buildLogMsg` requires a successful bind to construct its
message, but its only remaining callsite is only invoked when a bind fails,
so it blows up.

This patch eliminates `buildLogMsg` and just changes the callsite to use
a string literal.

Differential Revision: https://phabricator.services.mozilla.com/D76086
2020-05-20 05:02:56 +00:00
Dan Glastonbury b4dde7ce2a Bug 1633459 - Marshal customUserAgent setting via nsDocShell. r=geckoview-reviewers,esawin,nika
Reinstate customUserAgent interface for nsIDocShell. This is so it can be used
as a choke-point to catch setting values on docshells which are in the process
of changing process. We don't want to send changes which will be rejected on the
parent side.

This code should be removed once callers setting customUserAgent are refactored
to only occur from parent process.

Differential Revision: https://phabricator.services.mozilla.com/D75006
2020-05-20 00:19:59 +00:00
Aaron Klotz 646a40b5ed Bug 1625326: Add priority management for non-content child processes to GeckoProcessManager; r=geckoview-reviewers,agi
* We modify connection management such that we now use more specific connection
  types for {content, non-content, socket process} connections.
* We attach a native counterpart to the `GeckoProcessManager.ConnectionManager`
  instance that listens for app foreground, app background, and when the
  socket process is enabled, network state events.
* On app background, all non-content processes are assigned BACKGROUND priority.
  Even though backgrounding the app will cause Android to drop all child
  processes' priority regardless of our priority settings, we still do this as
  to indicate to Android that these processes are relatively less important
  than our parent process.
* When the socket process is enabled, we drop its priority when we detect that
  we have no network connectivity. Note that the network management code does
  the Right Thing if network connectivity changes while our app was in the
  background: we receive the network state change event once we return to
  foreground, therefore we do not need to do any special handling ourselves.

Differential Revision: https://phabricator.services.mozilla.com/D74478
2020-05-19 21:34:05 +00:00
John Lin 2be9f52cfa Bug 1619550 - p1: listen to media segment load event and pass the URL to resource wrapper. r=bryce,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D74989
2020-05-19 14:51:07 +00:00
Dylan Roeh 2157c7820c Bug 1596825 - Add NavigationDelegate.onSubframeLoadRequest to handle non-top-level load requests. r=snorp,mattwoodrow,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D74939
2020-05-19 17:05:42 +00:00
David Teller 49d5a4d3b4 Bug 1636089 - ActorManagerParent.addJSProcessActors;r=kmag,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75047
2020-05-19 16:29:36 +00:00
Eugen Sawin b4fb238257 Bug 1638904 - [2.0] Add a private mode context ID test. r=geckoview-reviewers,agi
Depends on D75822

Differential Revision: https://phabricator.services.mozilla.com/D75823
2020-05-18 18:44:33 +00:00
Eugen Sawin d4eadbda81 Bug 1638904 - [1.0] Add a private mode content blocking exception test. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D75822
2020-05-18 18:46:54 +00:00
Makoto Kato 6095b334e1 Bug 1638251 - Remove unused members in Frame from GeckoJavaSampler. r=geckoview-reviewers,aklotz,canaltinova
fileName and lineNo are unused now.

Differential Revision: https://phabricator.services.mozilla.com/D75481
2020-05-18 14:15:28 +00:00
Gabriel Luong 7c5d0ed09c Bug 1622500 - Implement cookieStoreId parameter for tabs.create. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D71817
2020-05-15 22:17:59 +00:00
Aaron Klotz 31a6668805 Bug 1630229: Part 7 - Remove explicit kill from GeckoProcessManager and just let Android do its thing; r=geckoview-reviewers,agi
I'm wondering whether Gecko's response to noticing that the child process was
killed is causing some notifications on the launcher thread to arrive out of
order from others. Removing the kill since we can just let Android handle
process termination.

Differential Revision: https://phabricator.services.mozilla.com/D75416
2020-05-15 19:44:26 +00:00
Aaron Klotz c160fa58d9 Bug 1630229: Part 6 - When attempting to bind a defunct connection, throw a BindException in non-debug builds; r=geckoview-reviewers,agi
Since this is so common, let's reserve the `AssertionError` for debug builds.
In non-debug builds we will throw a `ServiceAllocator.BindException` which
will be caught and used for completing the bind promise.

GeckoProcessManager will retry unbinding and restarting the process, which
hopefully will mitigate the problem.

We also make some improvements to exception handling hygeine.

Differential Revision: https://phabricator.services.mozilla.com/D75415
2020-05-15 21:55:12 +00:00
Aaron Klotz eda11d2c38 Bug 1630229: Part 5 - GeckoProcessManager: When start fails, chain resolution of the result promise to the bind shutdown promise; r=geckoview-reviewers,agi
Currently `unbind()` is more or less synchronous, but since those semantics may
change in the future, for the sake of cleanliness we should ensure that our
reaction is linked to `unbindResult`.

Differential Revision: https://phabricator.services.mozilla.com/D75414
2020-05-15 19:47:56 +00:00
Aaron Klotz bba080d9d9 Bug 1637452: Part 18 - Remove support for unified JNI headers from AnnotationProcessor and build system; r=nalexander,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D75381
2020-05-15 17:06:35 +00:00
Jamie Nicol b10845210b Bug 1633432 - Don't detach SurfaceTextures from GL context on Pause(). r=sotaro,geckoview-reviewers,snorp,imanol
In bug 1470348 we started to detach all SurfaceTextures from the
current GL context in CompositorOGL::Pause(). This was required for
VR, so that when the VR presentation was entered the SurfaceTextures
could be attached to the VR context instead.

When RenderCompositorEGL was implemented for webrender, we copied the
call to detach from CompositorOGL. However, due to extra complexity in
webrender's threading model, this is causing assertion failures.

VR no longer relies upon the SurfaceTextures being detached when the
compositor is paused, as it now uses its own SurfaceTexture
set. Therefore we can remove the detach call from both
CompositorOGL::Pause and RenderCompositorEGL::Pause.

Differential Revision: https://phabricator.services.mozilla.com/D74832
2020-05-15 12:05:15 +00:00
alwu f986ca0c1f Bug 1509933 - part1 : add new pref 'media.autoplay.blocking_policy'. r=geckoview-reviewers,snorp,padenot
This patch will do :
- rename the old pref `media.autoplay.enabled.user-gestures-needed` to  the new pref `media.autoplay.blocking_policy`
- modify the value of the pref to `int` in order to introduce new policy
- implement new policy in `AutoplayPoliocy`

The advantage of doing so :
- rename the pref to explicitly indicate that it's related the block policy we use
- use the transient user gesture activation as a new policy to replace the old one using the user input, which doesn't work on the async handler

More details :
The old `click-to-play` policy we use is using the user input to determine if the play invocation is called by users or by scripts. But `UserActivation::IsHandlingUserInput()` is buggy which would fail when you call `video.play()` inside an async event handler. So we would like to replace it with the new transient user activation, which would treat the action as an user input if the action is performed within a certain period of time after a user interacts (eg. click) with the page.

[1] https://html.spec.whatwg.org/multipage/interaction.html#transient-activation

Differential Revision: https://phabricator.services.mozilla.com/D73971
2020-05-15 03:40:31 +00:00
Dorel Luca 68c900462b Backed out 3 changesets (bug 1509933) for Linting failure in gecko/mobile/android/app/mobile.js. CLOSED TREE
Backed out changeset c15ecdcd5d13 (bug 1509933)
Backed out changeset 951ea1d0f42a (bug 1509933)
Backed out changeset 3abb24d6dfc9 (bug 1509933)
2020-05-15 05:02:07 +03:00
alwu 8ed9cb7dbc Bug 1509933 - part1 : add new pref 'media.autoplay.blocking_policy'. r=geckoview-reviewers,snorp,padenot
This patch will do :
- rename the old pref `media.autoplay.enabled.user-gestures-needed` to  the new pref `media.autoplay.blocking_policy`
- modify the value of the pref to `int` in order to introduce new policy
- implement new policy in `AutoplayPoliocy`

The advantage of doing so :
- rename the pref to explicitly indicate that it's related the block policy we use
- use the transient user gesture activation as a new policy to replace the old one using the user input, which doesn't work on the async handler

More details :
The old `click-to-play` policy we use is using the user input to determine if the play invocation is called by users or by scripts. But `UserActivation::IsHandlingUserInput()` is buggy which would fail when you call `video.play()` inside an async event handler. So we would like to replace it with the new transient user activation, which would treat the action as an user input if the action is performed within a certain period of time after a user interacts (eg. click) with the page.

[1] https://html.spec.whatwg.org/multipage/interaction.html#transient-activation

Differential Revision: https://phabricator.services.mozilla.com/D73971
2020-05-15 01:39:31 +00:00
Aaron Klotz 819b856572 Bug 1638105: Remove obsolete assumeThat statement from ContentDelegateTest; r=geckoview-reviewers,agi
This is no longer necessary now that we've gotten rid of the `aww_crap_handler`
stuff in x86 debug builds.

Differential Revision: https://phabricator.services.mozilla.com/D75400
2020-05-14 20:34:09 +00:00
Agi Sferro 1b07d9e24b Bug 1637803 - Expose WebExtension.isBuiltIn. r=owlish,droeh
Differential Revision: https://phabricator.services.mozilla.com/D75227
2020-05-14 17:48:25 +00:00
Nick Alexander 144ad7135d Bug 1448428 - Part 2: Transition "HardwareCodecCapabilityUtils" away from "unified" GeneratedJNI{Natives,Wrappers}.h header. r=snorp,geckoview-reviewers
Depends on D58574

Differential Revision: https://phabricator.services.mozilla.com/D58575
2020-05-13 18:11:06 +00:00
Aaron Klotz badc3f721e Bug 1448428 - Part 1d: Change naming scheme for generated source files; r=snorp,nalexander,geckoview-reviewers
We update the name generation code to dump the files into:
```
OBJDIR/widget/android/GeneratedJNI
```

which are then exported to `mozilla/java`

Differential Revision: https://phabricator.services.mozilla.com/D74720
2020-05-13 17:53:17 +00:00
Nick Alexander 468e8ee4f6 Bug 1448428 - Part 1c: Allow incremental transition away from "unified" GeneratedJNI{Natives,Wrappers}.h header. r=snorp,geckoview-reviewers
This establishes a "high-water" mark that will make new files not be
"unified", and will allow to burn down the list of files require
unification.

Depends on D58573

Differential Revision: https://phabricator.services.mozilla.com/D58574
2020-05-13 18:11:06 +00:00
Nick Alexander 73af4ee38b Bug 1448428 - Part 1b: Maintain "unified" GeneratedJNI{Natives,Wrappers}.h header. r=snorp,geckoview-reviewers
It's not trivial to split the existing "unified" include declaration
into granular include declarations, so we continue generating a
unified header that can be incrementally abandoned until it can be
jettisoned.

Depends on D58572

Differential Revision: https://phabricator.services.mozilla.com/D58573
2020-05-13 17:46:54 +00:00
Nick Alexander fe6281cdc0 Bug 1448428 - Part 1a: Split generated JNI wrappers into multiple files. r=snorp,geckoview-reviewers
This handles the build system bits.

The subsequent patch will restore the "unified"
GeneratedJNI{Natives,Wrappers}.h header files, and will be folded into
this one before landing.

What will still remain is to update the consumers of the .h files (all
the current #include lines) to use the fine-grained imports.  At that
time the "unified" header files can be removed entirely.

Differential Revision: https://phabricator.services.mozilla.com/D58572
2020-05-13 17:46:46 +00:00
John Lin a76ca42590 Bug 1635446 - cancel async callback for released codec. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D74991
2020-05-13 15:25:19 +00:00
Agi Sferro 4acba26b6f Bug 1637324 - Clarify native app ids for GeckoView. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D74896
2020-05-13 15:14:29 +00:00
Agi Sferro 29cdfeaa15 Bug 1637324 - Update docs to use installBuiltIn r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D74894
2020-05-13 15:14:17 +00:00
Agi Sferro 10d7d02ef2 Bug 1637324 - Update examples to use installBuiltIn. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D74893
2020-05-13 15:14:37 +00:00
Razvan Maries 2fe860484b Backed out 5 changesets (bug 1448428) for build bustages at SocketProcessParent.cpp. CLOSED TREE
Backed out changeset 192294c1413a (bug 1448428)
Backed out changeset da732f0c37d5 (bug 1448428)
Backed out changeset c48617a975e9 (bug 1448428)
Backed out changeset 92ca5adb7eb3 (bug 1448428)
Backed out changeset 3a3c734343f3 (bug 1448428)
2020-05-13 02:20:24 +03:00