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

29995 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 0f6b1b3064 Bug 1350875 part 5 - Have junit fullscreen test wait for fullscreen change to finish. r=geckoview-reviewers,agi
Depends on D68681

Differential Revision: https://phabricator.services.mozilla.com/D83624
2020-07-15 14:21:13 +00:00
Makoto Kato 1b95a01795 Bug 1651019 - Check current inputted value to avoid timing issue. r=geckoview-reviewers,esawin
To sync Gecko's text with Java text correctly, I would like to add more text
and selection check each `InputConnection.setComposingText` call.

Differential Revision: https://phabricator.services.mozilla.com/D83464
2020-07-14 13:15:11 +00:00
Cosmin Sabou 1129658f1a Backed out 2 changesets (bug 1652870) for bustages on Android GeckoView multi-arch fat AAR.
Backed out changeset c279e71779dc (bug 1652870)
Backed out changeset 0d8e1da6bb40 (bug 1652870)
2020-07-15 21:50:08 +03:00
Grace Bramley-Simmons 4cc1dd5d02 Bug 1649803 - Added an API stub for the Menus API r=agi,geckoview-reviewers,snorp
Added private/protected, unimplemented versions of the necessary Java
classes for the menus API, set up event dispatching and listening.

Differential Revision: https://phabricator.services.mozilla.com/D82383
2020-07-15 16:37:28 +00:00
Nathan Froyd 6c7c60a3ca Bug 1652870 - use new dump_syms for Android builds; r=geckoview-reviewers,snorp
Faster and more maintainable is good.

Differential Revision: https://phabricator.services.mozilla.com/D83561
2020-07-15 12:59:00 +00:00
Dorel Luca 775a192261 Backed out 2 changesets (bug 1652870) for Android bustage. CLOSED TREE
Backed out changeset 48a10a9249b0 (bug 1652870)
Backed out changeset 94ffbec77e89 (bug 1652870)
2020-07-15 15:35:45 +03:00
Nathan Froyd c7df38111d Bug 1652870 - use new dump_syms for Android builds; r=geckoview-reviewers,snorp
Faster and more maintainable is good.

Depends on D83560

Differential Revision: https://phabricator.services.mozilla.com/D83561
2020-07-14 21:33:12 +00:00
Csoregi Natalia 5106918e11 Backed out changeset d0ff30e1d830 (bug 1650692) for toolchains failures on ImageDecoderTest.kt. CLOSED TREE 2020-07-15 07:42:37 +03:00
Tiger Oakes f543954b4b Bug 1650692 - ImageDecoder improvements, r=agi,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D82308
2020-07-15 03:14:54 +00:00
Dylan Roeh 94d069f381 Bug 1651454 - Add strictSocialTrackingProtection to ContentBlocking.Settings.Builder and getStrictSocialTrackingProtection to ContentBlocking.Settings r=esawin,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82796
2020-07-14 16:38:18 +00:00
Agi Sferro 51a1c98a33 Bug 1650897 - Return the top window for extension popups. r=robwu,owlish
When using the `tabs.query` API in a popup (e.g. a browserAction popup)
extensions expects to refer to the window where the popup is.

On mobile we don't really have a concept of window in the way that extensions
expect us to have, we also treat all tabs as belonging to separate tabs.

To make the behavior of the extension API more consistent with desktop, we
pretend that the popup belongs to whatever the top tab is at the time.

Differential Revision: https://phabricator.services.mozilla.com/D82769
2020-07-13 18:01:57 +00:00
Agi Sferro d8589ad28e Bug 1650897 - Track active tab in a Deque in TestRunnerActivity. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D83354
2020-07-13 18:02:11 +00:00
Agi Sferro 4c2ab7cfdb Bug 1650897 - Support browser action popups in TestRunnerActivity. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D82768
2020-07-13 18:02:04 +00:00
Agi Sferro 0838754860 Bug 1650897 - Send the entire Action object for openPopup. r=owlish
We use this object on the Java side to open the popup and without this change
we don't look at the default popup URL when the tab-specific one is not
defined.

Differential Revision: https://phabricator.services.mozilla.com/D82767
2020-07-13 18:02:02 +00:00
Agi Sferro 7d792ecc3e Bug 1650897 - Remove empty delegate methods in TestRunnerActivity. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D82766
2020-07-13 18:01:59 +00:00
Marco Bonardo 14784dc42d Bug 1650201 - Fix mozStorage prefs read before profile and fallback to a non-exclusive VFS when it can't get an exclusive lock. r=asuth,geckoview-reviewers,agi
mozStorage used to read prefs on service init, because they could only be read
on the main-thread. When service init was moved earlier, it started trying
to read prefs too early, before the profile was set up, thus it ended up always
reading the default value.

This patch moves the only relevant pref to mirrored StaticPrefs that can be accessed
from different threads, and removes two preferences that apparently are not necessary
(they have been broken from a long time) for now.
In particular, providing a global synchronous setting is a footgun, each consumer should
decide about their synchronous needs, rather than abusing a dangerous "go fast" setting.
The page size is something we don't change from quite some time, and it's unlikely to be
used to run experiments in the wild before doing local measurements first, for which Try
builds are enough.

The remaining exclusiveLock pref is a bit controversial, because in general exclusive lock
is better for various reasons, and mostly it is necessary to use WAL on network shares.
Though developers may find it useful for debugging, and some third parties are doing
dangerous things (like copying over databases) to work around it, for which it's safer to
provide a less dangerous alternative.
Note exclusive lock only works on Unix-derived systems for now (no Windows implementation).

Finally, this introduces a fallback to exclusive lock, so that if a third party is using our
databases, so that we can't get an exclusive lock, we'll fallback to normal locking.

Differential Revision: https://phabricator.services.mozilla.com/D82717
2020-07-10 21:45:53 +00:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Tom Prince 204d796929 Bug 1651731: [lint] Python and shell files without `#!` should not be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,agi,sylvestre,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82954
2020-07-09 20:29:18 +00:00
Tom Prince 2c52622b85 Bug 1651731: [lint] Add a bunch more types of files that should never be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,preferences-reviewers,agi,sylvestre,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82953
2020-07-09 21:28:49 +00:00
Kris Maglione 6a39211860 Bug 1464542: Part 3b - Add existing Services.jsm registrations to the new services cache. r=mccr8,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D81419
2020-07-09 21:42:25 +00:00
Csoregi Natalia b355fcc4bf Backed out 6 changesets (bug 1464542) for xpcshell failures on test_Services.js. CLOSED TREE
Backed out changeset b50af9005851 (bug 1464542)
Backed out changeset 9d3a0ea2cf65 (bug 1464542)
Backed out changeset 71c3475fcbc2 (bug 1464542)
Backed out changeset 51ff93220a95 (bug 1464542)
Backed out changeset e84de1547c09 (bug 1464542)
Backed out changeset bbecc16d08eb (bug 1464542)
2020-07-09 23:19:26 +03:00
Kris Maglione d09458dc51 Bug 1464542: Part 3b - Add existing Services.jsm registrations to the new services cache. r=mccr8,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D81419
2020-07-09 17:59:16 +00:00
James Willcox 43c90527a5 Bug 1641597 - Add `document.allowDeprecatedTls` for error pages r=geckoview-reviewers,NeilDeakin,smaug,esawin
Differential Revision: https://phabricator.services.mozilla.com/D78365
2020-07-08 15:37:18 +00:00
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