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

29972 Коммитов

Автор SHA1 Сообщение Дата
Agi Sferro 3908397355 Bug 1638724 - Check for extension id instead of extension. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D82443
2020-07-07 18:51:02 +00:00
Agi Sferro 9020761a1a 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 18:51:04 +00:00
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