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

706833 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot 32d217338f Bug 1626081 - Add a pref to disable the audio output stream routing on Android. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D74274
2020-05-12 08:31:58 +00:00
Paul Adenot c22eb3baf0 Bug 1626081 - Set and add a way to change the default routing mode for echo cancellation on mobile. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D74273
2020-05-12 08:30:23 +00:00
Kartikaya Gupta 99dbd29a06 Bug 1633504 - Disable showing pixel difference numbers in the reftest analyzer. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D74791
2020-05-12 06:21:23 +00:00
Nicolas Chevobbe f1498ffff6 Bug 1634432 - Enable inspecting error object in sidebar. r=bomsy.
To enable the Open In Sidebar action, we were retrieving the
actor id of the root node of an object inspector.
But in the case of error, we don't use the object inspector
to render them, only the reps.
We still have a reference to the actor id though, so when
there's no object inspector, but that we have an actor id
ref, we enable the action.
A test case is added in a mochitest to ensure this works as
expected for an error object, and that we can observe custom
properties that are not displayed in the error rep.

This also reveiled an issue with React keys in the Error rep,
which we fix in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D73301
2020-05-12 08:34:58 +00:00
Kartikaya Gupta e660dc1ae3 Bug 1636982 - Restore old behaviour of disallowing interleaved rotate and magnify gestures on macOS. r=tnikkel
Depends on D74640

Differential Revision: https://phabricator.services.mozilla.com/D74742
2020-05-12 02:24:01 +00:00
Kartikaya Gupta 7a22496951 Bug 1636473 - Use the APZ machinery to dispatch magnifygesture events. r=dao,tnikkel
Unify two separate codepaths that do conceptually identical things. That is,
instead of having the widget code directly dispatch wheel and pinch gesture
events to Gecko, allow APZ to do it as part of it's handling of pinch inputs
when zooming is disabled.

The main difference is that the WidgetSimpleGestureEvent delta values come out
different, because they are based on the macOS event's magnification value,
rather than the (now deprecated) deltaZ value. This is actually better since it
makes the values consistent across platforms and allows removal of some ifdefs.

Differential Revision: https://phabricator.services.mozilla.com/D74640
2020-05-12 00:46:34 +00:00
Hiroyuki Ikezoe 7fba1d1b69 Bug 1634616 - Calculate a perfect square based on the viewport size and rotate it to adjust the partial prerender area for rotation transforms. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D74521
2020-05-12 08:32:45 +00:00
Hiroyuki Ikezoe aceaf6d2b2 Bug 1634616 - Use un-transformed dirty rect to compute partial prerender area. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D73404
2020-05-12 08:32:33 +00:00
Hiroyuki Ikezoe d611690078 Bug 1634616 - Unscale pre-render area for transform animations too. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D74520
2020-05-12 08:32:15 +00:00
Nicolas Chevobbe 90668a72e5 Bug 1607569 - Fix leak in browser_console_devtools_loader_exception. r=ochameau.
In the Browser toolbox destroy function, we now wait for
any pending connection initialization promise.
In the test we close the browser toolbox at the end.
We also need to guard a few method in the connection proxy
to ensure the instances we use are still alive before using
them.

Differential Revision: https://phabricator.services.mozilla.com/D71171
2020-05-12 07:05:27 +00:00
Kartikaya Gupta c9c76fff5a Bug 1634763 - Tweak hit-test info for inactive scrollframes to make WR and non-WR more consistent. r=tnikkel
The user-observed behaviour should be unchanged, but for testing purposes
this produces more consistent results between WR and non-WR. It also seems
conceptually more correct so I think it's worth doing.

Depends on D74789

Differential Revision: https://phabricator.services.mozilla.com/D74790
2020-05-12 02:06:17 +00:00
Kartikaya Gupta 6c5adadaad Bug 1634763 - Ensure APZ knows about inactive scrollframes that may have active scrollbars. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D74789
2020-05-12 02:02:51 +00:00
Mihai Tabara 7d9078bede Bug 1636929 - fix rendering in Firefox Flathub homepage. r=rail
Differential Revision: https://phabricator.services.mozilla.com/D74711
2020-05-12 00:42:34 +00:00
Julian Descottes f229755908 Bug 1620983 - Disable dom.ipc.processPrelaunch.enabled for all devtools tests r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D74612
2020-05-12 08:24:28 +00:00
David Teller ba7da0c9ff Bug 1593186 - Invoke JS{Parent, Window}Actor.actorCreated;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74639
2020-05-12 07:55:39 +00:00
prathiksha 8b8f144733 Bug 1636872 - Update breached-password icon in the Lockwise card. r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D74611
2020-05-11 21:38:09 +00:00
Mark Hammond 0640090392 Bug 1637169 - Vendor new application-services. r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D74817
2020-05-12 07:53:39 +00:00
Paul Adenot 7c4ce5aaba Bug 1634295 - Flush denormals to zero in hardware in the AudioStream audio callback. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D74613
2020-05-12 00:35:18 +00:00
Yoshi Cheng-Hao Huang ede21ac58b Bug 1634720 - use UniquePtr::reset to release the pointer. r=KrisWright
After fixing the timeout, I found there's a leak for the RunnableTask
dispatched to HelperThreadPool.

Differential Revision: https://phabricator.services.mozilla.com/D74736
2020-05-12 07:15:24 +00:00
Yoshi Cheng-Hao Huang abb43a4823 Bug 1634720 : Add HelperThreadPoolShutdownObserver to shut down HelperThreadPool. r=KrisWright
When nsThreadManager shuts down, it will shutdown all the threads,
including the main thread of HelperThreadPool.

However the main thread of HelperThreadPool has been waiting.
https://searchfox.org/mozilla-central/rev/446160560bf32ebf4cb7c4e25d7386ee22667255/xpcom/threads/nsThreadPool.cpp#277

and nsThreadManager will have to wait until HelperThreadPool wakes up to
shutdown the main thread of HelperThreadPool.

Adding a HelperThreadPoolShutdownObserver to observe the
xpcom-shutdown-threads notification, and shut down HelperThreadPool
accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D74735
2020-05-12 03:38:54 +00:00
Martin Stransky 84a664fa2e Bug 1634292 [gnome] Ship gnome-shell system integration files, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D74631
2020-05-12 06:56:15 +00:00
Geoff Lankow 0688ffdef2 Bug 1618535 - Add missing `#include "nsIDocShell.h"` to unbreak the Thunderbird build r=baku
Differential Revision: https://phabricator.services.mozilla.com/D74753
2020-05-12 07:11:11 +00:00
Lars T Hansen 43173e9f50 Bug 1635783 - Add a fast path for stack normalization. r=rhunt
Stack normalization is uber-slow on emulator because it relies on
regexes that are compiled to native instructions which are then
emulated.  That makes stack normalization very slow too, and as it's
very hot some tests will time out nearly always.

This patch inserts a simple cache for previously matched strings in
stack normalization to avoid the regex engine altogether.  This speeds
up normalization and hence stack matching greatly (I observed a factor
of four speedup per test iteration on an arm-sim noopt debug build for
ion-error-ool.js).

I also attempted some other fixes (filtering on simple strings,
avoiding regex.replace, etc) but caching is by far the most effective
fix, and with caching in place the other fixes still don't really move
the needle.

Depends on D74220

Differential Revision: https://phabricator.services.mozilla.com/D74607
2020-05-11 14:30:44 +00:00
Lars T Hansen cf386712a1 Bug 1635783 - Make an error message match more flexible. r=rhunt
When SIMD is not enabled, v128 is not mentioned in the error message,
so make allowances for that.

Differential Revision: https://phabricator.services.mozilla.com/D74220
2020-05-11 08:30:06 +00:00
Jan de Mooij de2f4c690d Bug 1636916 part 4 - Use branchValueIsNurseryCell instead of branchValueIsNurseryObject. r=jonco
Now that branchValueIsNurseryCell is as efficient as branchValueIsNurseryObject
we no longer need branchValueIsNurseryObject.

Depends on D74649

Differential Revision: https://phabricator.services.mozilla.com/D74650
2020-05-11 17:24:27 +00:00
Jan de Mooij cd89fa3820 Bug 1636916 part 3 - Optimize branchValueIsNurseryCell using branchTestGCThing. r=jonco
It's more efficient now to check for all GC things with a single branch instead of
checking for object/string/BigInt separately. This generates more compact code with
fewer branches and is also more maintainable.

Depends on D74648

Differential Revision: https://phabricator.services.mozilla.com/D74649
2020-05-11 17:24:27 +00:00
Jan de Mooij 5d0033b51b Bug 1636916 part 2 - Add branchTestGCThing to the MacroAssembler. r=jonco
Depends on D74647

Differential Revision: https://phabricator.services.mozilla.com/D74648
2020-05-11 17:24:27 +00:00
Jan de Mooij 020463c39c Bug 1636916 part 1 - Rename unboxGCThingForPreBarrierTrampoline to unboxGCThingForGCBarrier. r=jonco
Also add ValueOperand overloads on 64-bit platforms.

A later patch will also call this for the post barrier.

Differential Revision: https://phabricator.services.mozilla.com/D74647
2020-05-11 17:24:26 +00:00
Timothy Nikkel c05c933851 Bug 1557160. Stop Event::GetScreenCoords from converting from visual to layout coords. r=botond
Screen coords are not layout coords.

Differential Revision: https://phabricator.services.mozilla.com/D74788
2020-05-12 04:53:37 +00:00
Bogdan Tara be25a1cf76 Backed out changeset 3a50d857d097 (bug 1591469) for newtab failures complaining about AboutReaderParent CLOSED TREE 2020-05-12 06:13:10 +03:00
Andrew Swan c01f8d4891 Bug 1633396 Skip blocklist checks for system/builtin addons r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D74533
2020-05-12 01:58:03 +00:00
Bogdan Tara 4481f7e004 Backed out changeset de6d1c1375ee (bug 1637043) for browser_autocomplete_a11y_label.js failures CLOSED TREE 2020-05-12 04:59:44 +03:00
Jeff Gilbert 01add5f23e Bug 1636122 - [angle] Use deviceContext instead of deviceContext1. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74770
2020-05-12 01:22:38 +00:00
Gerald Squelart e1d51db19a Bug 1635570 - Cut too-long label dynamic strings and add ellipsis - r=canaltinova
If a label contains a dynamic string that's too long (512 characters or more), instead of just replacing it with "(too long)", we now cut it down to the maximum size, with an ellipsis at the end.

Added test for that in gtest. Also added nearby test for empty strings.

Differential Revision: https://phabricator.services.mozilla.com/D74378
2020-05-12 01:13:17 +00:00
Neil Deakin f9054b8cff Bug 1591469, move reader mode to use JSWindowActor instead of message managers, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71452
2020-05-12 01:06:51 +00:00
Harry Twyford c30d408639 Bug 1637043 - Stop highlighting the heuristic search result. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D74739
2020-05-12 00:08:16 +00:00
Glenn Watson 4c6a3862df Bug 1636616 - Fix invalidations occuring when display port changes. r=Bert
On some pages, primitives other than rectangles may have their
clip rect affected by the display port, which was causing incorrect
invalidations and extra rasterization work.

Remove clip_by_tile check, and clamp clip rect to tile boundaries
for all primitive types. Also switch to a more efficient min/max
representation of the clip rect for primitive dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D74582
2020-05-11 23:05:42 +00:00
sefeng a2b762d097 Bug 1557303 - Enable form dialog method for some existing tests r=smaug
Since the form dialog method can be enabled via the pref, enable it in
some existing tests.

Differential Revision: https://phabricator.services.mozilla.com/D73366
2020-05-08 00:16:37 +00:00
sefeng 6f99b2a7b4 Bug 1557303 - Add tests to test form dialog submission r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D73365
2020-05-08 00:16:34 +00:00
sefeng 283a047c3c Bug 1557303 - Implement form[method="dialog"] r=smaug
Spec: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-dialog

Differential Revision: https://phabricator.services.mozilla.com/D73364
2020-05-11 22:56:13 +00:00
Glenn Watson 82367ea5d6 Bug 1636683 - Fix close buttons on Win7 + WR + external theme. r=kats
Reverts part of a change from bug 1632705 to allow close buttons
to be shown in Win7 under certain themes with WR enabled.

If it turns out that we need to support the clear rect + rounded
clip case, that can be implemented as a follow up - this is an
improvement for now though.

Differential Revision: https://phabricator.services.mozilla.com/D74752
2020-05-12 00:11:12 +00:00
Bogdan Tara 08afb5c829 Backed out 2 changesets (bug 1584935) for many toolkit/content/tests/chrome/test_* failures CLOSED TREE
Backed out changeset e78fc5cb2ed7 (bug 1584935)
Backed out changeset 8d7c5732cda9 (bug 1584935)
2020-05-12 03:03:58 +03:00
Agi Sferro 0536b15a7d Bug 1629952 - Remove legacy addon install.cancel() support. r=aswan,mixedpuppy
This patch removes some old code for non-restartless addons. When the code was
written, it was still possible to call `cancel()` on an addon after the addon
was installed and before it had persisted in the database.

This case is not possible anymore, and calling `cancel()` on a
`STATE_INSTALLED` install object doesn't actually do much (but makes the
calling code think it actually canceled successfully, since it doesn't throw).

After this patch, calling `cancel()` on a `STATE_INSTALLED` install will throw
an exception.

There is one spot where we still keep around the install object because we
don't call `_cleanup()`, i.e. when installing an already present disabled
addon. For this case, we can just call `_cleanup()` at the end of the
enablement process.

There are quite a few tests that exploit calling `cancel()` to mean
`uninstall()`, for those actually calling `uninstall()` works fine.

This fixes a GeckoView bug where calling `cancel()` doesn't throw (so GV thinks
the cancellation went through successfully) but then we receive an addon object
from the successfull installation.

Differential Revision: https://phabricator.services.mozilla.com/D74305
2020-05-11 23:27:04 +00:00
Drew Willcoxon aa0b3fd03c Bug 1398416 - Part 2: Rewrite Muxer.sort() to wait for the heuristic result and to be more efficient, in preparation for form history changes. r=mak
By returning false (or not adding results to `context.results`), the muxer
signals that it needs more results in order to decide how to sort them and to
sort them without flickering. After the providers manager calls each provider's
`startQuery`, it removes the provider from `context.activeProviders` and calls
`_notifyResultsFromProvider` one more time so that the muxer can resort if
necessary given the new `context.activeProviders`.

We can also be a little faster and more efficient by making only two passes over
the results, and by keeping a `context.heuristicResult` property that's updated
by the providers manager.

This also fixes a bug with the search suggestions provider, where it didn't
include a suggestion that matched the user's search string even if the heuristic
result was not a search result (e.g., if it's an autofill). That deduping logic
should be done in the muxer.

Finally this removes browser_restyleSearches.js since the muxer changes removed
part of the restyling functionality. I'll file a follow-up to remove other parts
of restyling.

Differential Revision: https://phabricator.services.mozilla.com/D74192
2020-05-11 23:03:09 +00:00
Emilio Cobos Álvarez 58aecd7daa Bug 1584935 - Clean up a tiny bit more now that lazyfc is infallible. r=tnikkel
Fairly minor clean-up.

Differential Revision: https://phabricator.services.mozilla.com/D74751
2020-05-11 22:52:16 +00:00
Emilio Cobos Álvarez d173bb7e8b Bug 1584935 - Enable lazy frame construction everywhere. r=tnikkel
This is only the minimal change, there's cleanup coming afterwards in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D74749
2020-05-11 22:52:23 +00:00
Edgar Chen f0ed844fb9 Bug 1607375 - Generate mouse exit event to old remote target when the mouse event is moving to another remote target; r=hsivonen,smaug
If a mouse is over a remote target A, and then moves to remote target B,
we'd deliver the event directly to remote target B after the moving, A would
never get notified that the mouse left. And A would synthesizes mousemove event
on an incorrect point which then generates an unexpected mouseleave.

Differential Revision: https://phabricator.services.mozilla.com/D67408
2020-05-11 22:39:18 +00:00
Emilio Cobos Álvarez ca996e1ea1 Bug 1637097 - Flush frames in nsXULPopupManager::HandleKeyboardNavigation. r=tnikkel
It uses the frame tree to navigate the popup, so needs to ensure frames
are up-to-date.

Differential Revision: https://phabricator.services.mozilla.com/D74748
2020-05-11 22:43:23 +00:00
Andrew McCreight f9c07914d4 Bug 1636990 - Inline NS_NewBackstagePass. r=kmag
Also, make an NS_ERROR in ~mozJSComponentLoader() into an assertion.

Differential Revision: https://phabricator.services.mozilla.com/D74691
2020-05-11 22:46:24 +00:00
Bogdan Tara 3a5ced7037 Backed out changeset adac78d7a8f9 (bug 1570678) for siteIdentity related failures CLOSED TREE 2020-05-12 01:39:11 +03:00