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

30540 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 3888581ee0 Bug 1694046 - Don't wait for selection event. r=geckoview-reviewers,droeh
Bug 1650705's geckoview-junit test counts the number of input event times.
It is unnecessary to wait for selection event and Gecko may not sometimes
fire selection event on input or textarea element. So use
InputConnection.setSelection directly instead of waiting for DOM event.

Differential Revision: https://phabricator.services.mozilla.com/D109354
2021-03-23 01:06:19 +00:00
Kagami Sascha Rosylight 24e9b29c8d Bug 1699707 - Remove DeviceProximityEvent and UserProximityEvent r=agi,annevk,smaug
Note that this removes `window.ondeviceproximity` and `window.onuserproximity` which unexpectedly have been exposed unconditionally.

Differential Revision: https://phabricator.services.mozilla.com/D109160
2021-03-22 18:16:16 +00:00
Agi Sferro 4869e57e24 Bug 1685556 - Put tmp dir under app cache. r=droeh
We do this so that users can clear it manually if it grows too large.

Differential Revision: https://phabricator.services.mozilla.com/D109163
2021-03-22 17:49:45 +00:00
Eitan Isaacson e2e455ad6a Bug 1697683 - Don't allow getAvailableLanguages to return null. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D109111
2021-03-22 16:30:06 +00:00
Emilio Cobos Álvarez 501a3f8567 Bug 1695338 - Tweak extension approval panel layout so that the messages are inline. r=mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D107998
2021-03-21 17:02:10 +00:00
Cosmin Sabou 75f75ddd39 Backed out changeset c81efb7a797f (bug 1695338) for xpcshell failures on test_ext_permission_warnings.js. CLOSED TREE 2021-03-20 20:00:14 +02:00
Emilio Cobos Álvarez 79fa3042a4 Bug 1695338 - Tweak extension approval panel layout so that the messages are inline. r=mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D107998
2021-03-20 17:22:29 +00:00
Agi Sferro 63f01b6505 Bug 1698963 - Enable FinalLocalVariableCheck. r=esawin
Patch was automatically generated by Android Studio.

Differential Revision: https://phabricator.services.mozilla.com/D108694
2021-03-19 16:47:48 +00:00
Agi Sferro f6eb2f79b8 Bug 1698823 - Don't allow null delegateController. r=aklotz,droeh
We used to support having a null delegateController because WebExtension could
be constructed from the app. Now that we can only go through the Controller we
don't need to do that anymore.

Differential Revision: https://phabricator.services.mozilla.com/D108695
2021-03-18 18:31:09 +00:00
Dylan Roeh 11f680c9cd Bug 1685486 - Annotate SessionState.fromString/toString appropriately, stop throwing JSONExceptions, and handle null values a bit more gracefully. r=agi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D105385
2021-03-18 17:49:23 +00:00
Makoto Kato 2f96cd0e52 Bug 1699022 - Set surrounding text on onCreateInputConnection. r=geckoview-reviewers,agi
Android R+ has new API to set initial surrounding text.

According to Android commit log [*], it can improve IME start up performance
when setting initial surrounding text that is new API from Android API 30.

* c486acc4d2

Differential Revision: https://phabricator.services.mozilla.com/D108736
2021-03-18 03:18:37 +00:00
Luca Greco 7b459bbed3 Bug 1698158 - part 3.2 - Remove unnecessary imports from testharness addons experimental API. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D108229
2021-03-16 18:15:41 +00:00
Aaron Klotz d3d15f26b8 Bug 1573860: Always use the system principal as the requesting principal when loading user-initiated URIs; r=agi,ckerschb
As discussed in the bug, when the app calls `loadUri` without
`LOAD_FLAGS_EXTERNAL` and there is no referrer session, we may always use the
system principal as the requesting principal.

I removed all the special-casing of the other various schemes under the
expectation that, under the conditions described above, they are also subject
to the same policy.

Differential Revision: https://phabricator.services.mozilla.com/D107517
2021-03-16 15:26:44 +00:00
owlishDeveloper 78f7152b08 Bug 1523577 - Clean up dead fennec code r=geckoview-reviewers,agi
Depends on D108267

Differential Revision: https://phabricator.services.mozilla.com/D108268
2021-03-15 22:31:51 +00:00
Aaron Klotz fa8747857b Bug 1523639: Make GeckoLoader.setupGeckoEnvironment compatible with isolatedProcess; r=geckoview-reviewers,agi
* We remove the reference to `MOZ_ANDROID_DATA_DIR`, since it appears to have no
  more references in mozilla-central. There is one reference in the xpcshell
  harness for which I have filed a follow-up bug.
* Given that the following variables are not useful by content, we restrict
  their retrieval to the parent process:
  * `DOWNLOADS_DIRECTORY`
  * `UPDATES_DIRECTORY`
  * `EXTERNAL_STORAGE`
  * `CACHE_DIRECTORY`
  * `PUBLIC_STORAGE`
  * Initial prefs
* `TMPDIR` is still used by the XPCOM directory service. Given that we can still
  retrieve this value safely under `isolatedProcess`, we leave this in for now.
  We can revisit this one in the future.
* We restrict retrieval of the user serial number to the parent process. AFAICT
  we do send this value along with crash reports, so I modified `IChildProcess.start`
  to accept this value and propagate it into the child process's environment
  so that an isolated process crash may still include it.
* The remaining envrionment variables remain safe to retrieve when isolated.

Differential Revision: https://phabricator.services.mozilla.com/D108507
2021-03-15 20:45:46 +00:00
Ted Campbell 0004fb8b5c Bug 1697954 - Remove unused javascript.options.showInConsole prefs r=marionette-reviewers,webdriver-reviewers,mossop,remote-protocol-reviewers,whimboo
This dates back to a time before the browser console where the normal content
console could optionally show chrome code messages. Today it serves no use.

Differential Revision: https://phabricator.services.mozilla.com/D108130
2021-03-15 19:50:41 +00:00
Agi Sferro 0ae24ebfa4 Bug 1697503 - Remove GeckoAppShell.KillAnyZombies. r=mossop,droeh
Before this patch, when the profile is locked on Android, we would call "ps",
parse the human-readable output and kill any other Gecko process that we could
find.

But this is completely unnecessary, as we know exactly that the PID of the
process holding the lock is.

In this patch we just kill the process holding the lock since this is
equivalent to the previous behavior.

Differential Revision: https://phabricator.services.mozilla.com/D106186
2021-03-15 17:04:41 +00:00
Mitchell Hentges b7e0dfe1d1 Bug 1695272: Move `--no-interactive` to global mach args r=firefox-build-system-reviewers,glandium
Updates `./mach bootstrap` to use `--no-interactive` from global args.
Ensures all bootstrap prompts have a default option.

Differential Revision: https://phabricator.services.mozilla.com/D106814
2021-03-12 16:07:11 +00:00
Agi Sferro f1becc166b Bug 1696460 - Improve bind error logging. r=aklotz
This error is sent to the native layer so we never log it (at least locally).

This also adds a "cause" exception to have the full stacktrace.

Differential Revision: https://phabricator.services.mozilla.com/D108038
2021-03-12 00:01:11 +00:00
Agi Sferro 448bc74775 Bug 1696460 - Allow multiple runtimes to run at the same time. r=aklotz
For tests, we want to be able to run multiple runtimes at the same time (each
runtime gets its own process).

This mostly work, except our process allocator does not currently check that it
owns a certain process and it will happily try to take control of a different
runtime's process (and fail).

To make this work we tag each content process with the parent process' UUID so
that we can check whether the process that we try to create is free or not.

This strategy is pretty rudimental and we can iteratively improve on it if we
decide to use multiple runtimes on actual apps (and not just tests).

Differential Revision: https://phabricator.services.mozilla.com/D108037
2021-03-12 00:01:10 +00:00
Agi Sferro 34ae374160 Bug 1696460 - Ensure GeckoServiceChildProcess is treated as a bound service. r=aklotz
There is a little Woodoo in this patch but here it is:

- According to the Android docs, services that implement onStartService are
_not_ considered bound services and need to stop themselves. Since we do want
our child processes to die after every client unbounds, we shouldn't implement
it.
- Sometimes processes don't die after |onDestroy| is called, this causes
processes being reused on some esoteric edge case (multiple runtimes, mostly).
To avoid these corner cases, we call System.exit in onDestroy. Note: chromium
does this too.
- We now don't need to kill the process on onBind anymore (this is mostly to
align with chromium).
- We make sure we don't get created multiple times, as that could cause really
weird behavior which is hard to debug (especially on users' devices).

Differential Revision: https://phabricator.services.mozilla.com/D108036
2021-03-12 00:01:10 +00:00
Doug Thayer 14caf9713d Bug 1678411 - Ensure we show slow script notification for fission iframes r=smaug
See bug for more details, but effectively the decision is to show the same
notification which we would normally show for hung pages if an iframe hangs,
but only do so if the user is trying to interact with content hung by that
iframe. This should accomplish that.

Differential Revision: https://phabricator.services.mozilla.com/D107933
2021-03-11 17:41:19 +00:00
owlishDeveloper d2fed3ba8c Bug 1691101 - Migrate from jcenter in android builds r=geckoview-reviewers,nalexander,agi
Differential Revision: https://phabricator.services.mozilla.com/D107573
2021-03-11 00:18:40 +00:00
Agi Sferro f002e607b0 Bug 1694481 - Remove unused code in GeckoAppShell. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106187
2021-03-10 22:43:10 +00:00
Agi Sferro e4db9c53e4 Bug 1694481 - Simplify Android Listeners in GeckoAppShell. r=aklotz
GeckoAppShell has code to handle custom listeners, but we don't use them anymore.

Differential Revision: https://phabricator.services.mozilla.com/D106185
2021-03-10 22:43:09 +00:00
Agi Sferro 0d3819e98e Bug 1694481 - Remove unused android lock screen orientation support. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106184
2021-03-10 22:43:09 +00:00
Agi Sferro eac41f1807 Bug 1694481 - Remove unused methods in GeckoAppShell. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106183
2021-03-10 22:43:08 +00:00
Agi Sferro 111343732d Bug 1694481 - Remove unused code from exthandler/android. r=droeh,esawin
Differential Revision: https://phabricator.services.mozilla.com/D106182
2021-03-10 22:43:08 +00:00
Agi Sferro 9ec0facdaa Bug 1694481 - Remove unused methods in GeckoLoader. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106181
2021-03-10 22:43:08 +00:00
Agi Sferro 71dbca3068 Bug 1694481 - Remove unused NativeZip. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106180
2021-03-10 22:43:07 +00:00
Agi Sferro b39485034a Bug 1694481 - Remove unused DirectBufferAllocator. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106179
2021-03-10 22:43:07 +00:00
Agi Sferro 4a3ac00774 Bug 1694481 - Remove unused android:// protocol handler r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106178
2021-03-10 22:43:06 +00:00
Agi Sferro 83874acc8d Bug 1694481 - Remove unused telemetry methods. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106174
2021-03-10 22:43:05 +00:00
Agi Sferro 01502e4660 Bug 1697270 - Provide GeckoResult.allow() and .deny() r=owlish,droeh
GeckoResult uses the thread is instantiated on to run callbacks, so it's
important that the calling code builds GeckoResult on the same thread where
it's used to avoid suprising cross-thread effects.

The above assumption is broken when using ALLOW and DENY as these objects are
built on whatever thread happens to load the GeckoResult class in the JVM.

This change deprecates ALLOW and DENY and introdocues allow() and deny() which
build the GeckoResult instance on the same thread where they are called
avoiding any cross-thread problems.

Differential Revision: https://phabricator.services.mozilla.com/D107729
2021-03-10 21:44:05 +00:00
Simon Giesecke ad01a10a3b Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin
Note that this patch only transforms the use of the nsDataHashtable type alias
to a directly equivalent use of nsTHashMap. It does not change the specification
of the hash key type to make use of the key class deduction that nsTHashMap
allows for in some cases. That can be done in a separate step, but requires more
attention.

Differential Revision: https://phabricator.services.mozilla.com/D106008
2021-03-10 10:47:47 +00:00
owlishDeveloper 5f323edf67 Bug 1432949 - Return error if channel cannot be opened. Expand download blob test case r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75687
2021-03-09 00:45:22 +00:00
Aaron Klotz 16e2a045ee Bug 1691799: Bump GeckoView Nightly's content process limit to 40; r=geckoview-reviewers,agi
This is the same number that Chromium uses.

Differential Revision: https://phabricator.services.mozilla.com/D107518
2021-03-08 20:51:34 +00:00
owlishDeveloper 8a5e082ba7 Bug 1693416: Rewrite reset processes in tests to be compatible with isolated process r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D106862
2021-03-08 20:20:26 +00:00
owlishDeveloper bdd6620010 Bug 1631945 - Add API to junit test harness that enables tests to query for all web content pids r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106861
2021-03-08 20:05:32 +00:00
owlishDeveloper 75c069fff9 Bug 1658988 - Close tab in ContentDelegate#onCloseRequest instead of finishing the activity to keep GVE from going into background r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D107484
2021-03-08 17:24:11 +00:00
Kagami Sascha Rosylight a9417a719e Bug 1360715 - Part 2: Modify instanceofs in tests to non-cross-context r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106662
2021-03-04 22:03:57 +00:00
Eugen Sawin c2e482bffe Bug 1693584 - [2.0] Update MediaElement tests so suppress deprecation warnings. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D107232
2021-03-04 18:27:03 +00:00
Eugen Sawin 19033fdc7a Bug 1693584 - [1.1] Deprecate the MediaElement API. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D107124
2021-03-04 18:27:02 +00:00
Brindusan Cristian b926d96be6 Backed out 3 changesets (bug 1360715) for mochitest failures at test_WebCrypto.html. CLOSED TREE
Backed out changeset b4a14c42313d (bug 1360715)
Backed out changeset 0e4b1b65fcbe (bug 1360715)
Backed out changeset fb8b9841d82b (bug 1360715)
2021-03-04 21:15:16 +02:00
Kagami Sascha Rosylight 73ec445d30 Bug 1360715 - Part 2: Modify instanceofs in tests to non-cross-context r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106662
2021-03-04 15:05:26 +00:00
Emilio Cobos Álvarez d43ee0e7b6 Bug 1695338 - Update WebExtension approval panel for Proton. r=mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D107065
2021-03-04 11:03:11 +00:00
Makoto Kato 642a244fdf Bug 1693477 - notifyPush needs messageId. r=geckoview-reviewers,agi
This is simple typo when payload is nothing.

Also, we should add unit tests for this since we don't run mochitest in
dom/push/test. The mochitest requires mock's implementation, but we doesn't
have it.

Differential Revision: https://phabricator.services.mozilla.com/D107067
2021-03-04 00:36:44 +00:00
Simon Giesecke b5855b89fc Bug 1634281 - Remove unused nsDataHashtable.h includes. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D106007
2021-03-03 08:58:52 +00:00
Jens Stutte 05581ddca4 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 22:11:58 +00:00
Agi Sferro c6942877da Bug 1695051 - Add /security to .lldbinit. r=aklotz
This is required to debug code in libnss3.

Differential Revision: https://phabricator.services.mozilla.com/D106541
2021-03-02 20:39:12 +00:00