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

704110 Коммитов

Автор SHA1 Сообщение Дата
Jan de Mooij 4af8ebbefc Bug 1632761 part 2 - Use IC for JSOp::ToNumeric in IonBuilder. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D72334
2020-04-28 09:50:06 +00:00
Jan de Mooij 7ff87f238a Bug 1632761 part 1 - Add IC support for JSOp::ToNumeric. r=evilpie
This is based on the similar changes for JSOp::Pos (bug 1626297 part 3).

JSOp::Pos and JSOp::ToNumeric are very similar and are now optimized the same
way. Baseline had a fast path for numbers and we now use an IC. The IC should
be faster for BigInt code and has optimizations for string inputs. This will also
give us better type information in Warp.

Differential Revision: https://phabricator.services.mozilla.com/D72333
2020-04-24 12:36:38 +00:00
Emilio Cobos Álvarez f7004f36cc Bug 1632765 - Bypass a restyling assertion in a replicated fixed-pos subtree. r=TYLin
The pref flip in this bug causes an assertion to fail in
layout/generic/crashtests/1137723-1.html.

Our behavior in that crashtest is so messed up that I can't even begin
to describe it.

That test-case has three-pages, and a link inside a fixed-pos subtree,
which has a ::after pseudo-element.

Via the magic of nsCSSFrameConstructor::ReplicateFixedFrames, we end up
constructing multiple frames, one per page, for the fixed subtree.

We end up with a link with three different ::after pseudo-elements (one
on each page), of which the link only knows about the latest one.

This means that when restyling the link (which was already broken, it
just didn't happen before the prefs), we'd visit the pseudo-element in
some other place of the frame tree we can get a hand on.

Restyling these frames is generally not supported and will do ~nothing,
given the current setup. There's no way to get a hand from the DOM node
to all its replicated frames.

But that's not something I plan to fix for this bug, and this assertion
is blocking me.

Differential Revision: https://phabricator.services.mozilla.com/D72755
2020-04-28 09:24:25 +00:00
Emilio Cobos Álvarez 64c748af66 Bug 1632497 - Make YouCompleteMe clangd completer work. r=jgraham
We need to use the new Settings() API, instead of the deprecated
FlagsForFile. Though in practice we can just delegate to it and it works
out of the box.

Differential Revision: https://phabricator.services.mozilla.com/D72152
2020-04-28 10:08:00 +00:00
Csoregi Natalia b073baab86 Backed out 30 changesets (bug 1556556, bug 1631568) for multiple mochitest failures. CLOSED TREE
Backed out changeset edd529f7a9c5 (bug 1631568)
Backed out changeset 1cc0881e244b (bug 1631568)
Backed out changeset ed3c1e85d5e3 (bug 1556556)
Backed out changeset 38ffc6215bbf (bug 1556556)
Backed out changeset 03c2c25d8023 (bug 1556556)
Backed out changeset 9c717eb067b8 (bug 1556556)
Backed out changeset 98e26bc98b85 (bug 1556556)
Backed out changeset 05a6a581e755 (bug 1556556)
Backed out changeset 867946cf05bb (bug 1556556)
Backed out changeset 20d72a334530 (bug 1556556)
Backed out changeset 2c62e61d9054 (bug 1556556)
Backed out changeset 62a223d057d2 (bug 1556556)
Backed out changeset 2c5d55a1f0b1 (bug 1556556)
Backed out changeset 700447945b4e (bug 1556556)
Backed out changeset 93190ae4f5ff (bug 1556556)
Backed out changeset a7bd34d961bb (bug 1556556)
Backed out changeset fccd1d3c7189 (bug 1556556)
Backed out changeset 24056e47183d (bug 1556556)
Backed out changeset 204881474cc1 (bug 1556556)
Backed out changeset 387320881876 (bug 1556556)
Backed out changeset be8f5eb58460 (bug 1556556)
Backed out changeset 629c58a9166b (bug 1556556)
Backed out changeset 4312b2b5dda8 (bug 1556556)
Backed out changeset d11dbf6403a5 (bug 1556556)
Backed out changeset 95c54c023779 (bug 1556556)
Backed out changeset 80fcb7e71188 (bug 1556556)
Backed out changeset d75a4ecb0d47 (bug 1556556)
Backed out changeset 903c4de34e7a (bug 1556556)
Backed out changeset f15334a3e803 (bug 1556556)
Backed out changeset 9553e99137ea (bug 1556556)
2020-04-28 12:43:11 +03:00
Csoregi Natalia 879ef8e0a4 Backed out changeset f4a75756b1b4 (bug 1575356) for failures on test_iframe_referrer_invalid.html. CLOSED TREE 2020-04-28 12:23:22 +03:00
Paul Adenot f0c2c239ef Bug 1633266 - mach vendor rust r=kinetik
Depends on D72636

Differential Revision: https://phabricator.services.mozilla.com/D72637
2020-04-27 22:42:43 +00:00
Paul Adenot 58207a1a00 Bug 1633266 - Bump audio_thread_priority to 0.22.1. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D72636
2020-04-28 07:54:54 +00:00
Artem 069a4488a1 Bug 1609559 - Migrate protectionsPanel.inc.xhtml to Fluent r=Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D71234
2020-04-28 06:23:10 +00:00
Jon Coppeard 896414dfa7 Bug 1633405 - Remove dynamic GC options that are enabled everywhere r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D72696
2020-04-28 07:59:47 +00:00
Jon Coppeard 4f7be62fe4 Bug 1632846 - Refactor auto rooter tracing so we can more easily convert these to use Rooted<> instead r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D72595
2020-04-28 07:58:56 +00:00
Jon Coppeard 87d409b266 Bug 1632846 - Split auto rooter list into separate lists for each kind so we can only trace the onse we care about r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D72594
2020-04-28 07:58:18 +00:00
Kagami Sascha Rosylight be0aac133d Bug 1543872 - Use `git log --not --remotes` r=glandium
The current way to get outgoing files in Git passes every branch to merge-base, which generates a way too long command that fails on Windows. This patch tries using `git log --not --remotes` instead of passing merge-base value.

Differential Revision: https://phabricator.services.mozilla.com/D71802
2020-04-28 07:27:51 +00:00
Noemi Erli b41b9e8fdf Backed out changeset 36cb992cb56a (bug 1633266) for causing build bustages CLOSED TREE 2020-04-28 10:51:56 +03:00
alwu a6eb8701c3 Bug 1632317 - part4 : replace boolean with MediaPlaybackState in test. r=bryce
This patch will do :
- replace boolean with `MediaPlaybackState` in test.

The advantage of doing so :
- better understanding for the meaning of the input parameter

Differential Revision: https://phabricator.services.mozilla.com/D72090
2020-04-28 05:27:29 +00:00
alwu dd75ff44da Bug 1632317 - part3 : use `FakeControlledMedia` to test `AudibleChanged` r=bryce
This patch will do :
- create a helper class on `FakeControlledMedia` and use it to rewrite the test `AudibleChanged`.

Differential Revision: https://phabricator.services.mozilla.com/D72089
2020-04-28 05:27:22 +00:00
alwu 91cdddb2cb Bug 1632317 - part2 : remove improper tests. r=bryce
This patch will do :
- remove tests which are not correct based on new implementation.

---

More details about this change :

After calling controller's methods, the controller's state won't be changed,  it would be changed after the amount of playing media changes, which are depending on other modules and can't be tested here.

- `ChangePlayingStateViaPlayPauseStop` would check state after calling controller's method, which is incorrect.
- `AlwaysInaudibleIfControllerIsNotPlaying` would check audible which also references to controller's state

Differential Revision: https://phabricator.services.mozilla.com/D72088
2020-04-28 05:26:49 +00:00
alwu ad5bf1e7aa Bug 1632317 - part1 : only change `guessed playback state` when the amount of playing media changes r=bryce
This patch will do :
- only call `SetGuessedPlayState()` when the amount of playing media changes

The advantage of doing so :
- prevent the situation where the guessed playback state and the actual condition of media playback is different if calling controller's methods not able to affect media playback state

---

More details about this change :

The guessed playback state represents the actual media playback condition, which would be modified in [1], so we use `mPlayingControlledMediaNum` to track how many media is playing in order to determine the final playback state for a tab.

Therefore, we should let the state truly reflecting the condition of media playback. If the controller's method doesn't affect the media playback in the content process, then we would have an inconsistency between the state and the actual condition.  Eg. calling `controller.pause()` but somehow the media isn't paused.

In addition, doing this also helps the refactoring I'm doing in the bug1627999.

[1] https://searchfox.org/mozilla-central/source/dom/media/mediacontrol/MediaController.cpp#169-192

Differential Revision: https://phabricator.services.mozilla.com/D72066
2020-04-28 05:26:41 +00:00
Paul Adenot 02a9230588 Bug 1633266 - Bump audio_thread_priority to 0.22.1. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D72636
2020-04-27 22:41:47 +00:00
Christoph Kerschbaumer 59c7891e26 Bug 1575356: Update Mixed Content Blocker to rely on BrowsingContext instead of nsIDocShellTreeItem. r=baku,smaug
Differential Revision: https://phabricator.services.mozilla.com/D71547
2020-04-28 07:32:51 +00:00
Botond Ballo 2cb46cfa4b Bug 1631568 - Have nsLayoutUtils::GetFrameForPoint() and GetFramesForArea() take a RelativeTo parameter. r=tnikkel
This removes the need for FrameForPointOptions::IsRelativeToLayoutViewport,
and makes sure each call site of these functions indicates whether the
input point/rect is in visual or layout coordinates.

Several call sites were passing in layout coordinates without setting the
IsRelativeToLayoutViewport flag, which this patch corrects.

Differential Revision: https://phabricator.services.mozilla.com/D71705
2020-04-28 01:44:43 +00:00
Botond Ballo 9910a0e22a Bug 1631568 - Move ViewportType and RelativeTo into a separate header. r=tnikkel
This allows headers which nsLayoutUtils.h includes to use these types without
creating a circular dependency.

As part of this change, the types are also moved into namespace mozilla.

Differential Revision: https://phabricator.services.mozilla.com/D71704
2020-04-28 07:22:59 +00:00
Botond Ballo 42e78685e5 Bug 1556556 - Run helper_drag_root_scrollbar.html with zooming enabled as well. r=kats
This is the anti-climactic end of the patch series.

I set out in this bug to get this test case to pass with apz.allow_zooming.
It took all these changes to do so without regressing other tests.

Differential Revision: https://phabricator.services.mozilla.com/D69644
2020-04-28 07:22:59 +00:00
Botond Ballo 3aed1ee626 Bug 1556556 - Update test expectations for tests which are now passing. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D69642
2020-04-28 01:43:09 +00:00
Botond Ballo 444afd7fd4 Bug 1556556 - Update test expectations for elementTiming.html. r=mstange
This test is failing due to the rounding error described in bug 1627365.
As this is a web platform test, it seems inappropriate to modify the
test itself upstream to avoid a Firefox-specific rounding error.

Differential Revision: https://phabricator.services.mozilla.com/D69641
2020-04-28 01:43:02 +00:00
Botond Ballo 29e3ec7e90 Bug 1556556 - Convert mRefPoint to visual coordinates for synthesized events. r=tnikkel
As part of this change, PresShell::mMouseLocation in stored visual coordinates.

Differential Revision: https://phabricator.services.mozilla.com/D69640
2020-04-28 01:42:49 +00:00
Botond Ballo 08aae3b474 Bug 1556556 - Miscellaneous fixes related to event coordinate transformations. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D69639
2020-04-28 01:42:26 +00:00
Botond Ballo ac2a49da72 Bug 1556556 - Perform app unit to milimetre conversion correctly in PositionedEventTargeting. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D68922
2020-04-28 01:42:19 +00:00
Botond Ballo 1a5df93508 Bug 1556556 - Handle visual/layout coordinate conversions correctly in GetEventCoordinatesRelativeTo(). r=kats,mattwoodrow
The idea here is:

  * The incoming point comes from WidgetEvent::mRefPoint which is in
    visual coordinates.

  * Depending on the value of the target RelativeTo parameter, we
    may need to convert this to layout coordinates.

  * In the fast-path, we do a direct check on the viewport type
    and apply the visual-to-layout transform if appropriate.

  * In the slow path, we rely on TransformRootPointToFrame() (which
    calls GetTransformToAncestor()) to include the visual-to-layout
    transform if appropriate, by correctly passing in
    ViewportType::Visual as the starting point.

     * To make sure we get into TransformRootPointToFrame(), we
       set transformFound if we'll be crossing a zoomed content root.

Differential Revision: https://phabricator.services.mozilla.com/D68921
2020-04-28 01:42:17 +00:00
Botond Ballo a44bc6dd0b Bug 1556556 - Include the layout-to-visual transform for a zoomed content root in GetTransformMatrix(). r=kats,mattwoodrow
This is the "core" change of the patch series, which causes most
existing layout codepaths to correctly factor in the visual to
layout transform (or its inverse), as long as the callers correctly
propagate it in the correct ViewportType.

Differential Revision: https://phabricator.services.mozilla.com/D68920
2020-04-28 01:42:14 +00:00
Botond Ballo c2e68749af Bug 1556556 - Use FrameForPointOption::IsRelativeToLayoutViewport when passing layout-relative coordinates to GetFrameForPoint(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D71455
2020-04-28 01:40:52 +00:00
Botond Ballo 405c8807cd Bug 1556556 - Propagate RelativeTo far and wide. r=kats,mattwoodrow
This "upgrades" various nsLayoutUtils functions which take as inputs
a set of coordinates and a frame that the coordinates are relative to,
to accept a RelativeTo object instead of a frame.

Most of the patch is just dumb propagation, but the few places where
we use an explicit ViewportType::Visual are important. There are
probably a few other places I've overlooked, but this seems to cover
the important ones that come up commonly.

There are undoubtedly other functions into which we can propagate
RelativeTo, in this patch I've propagated it as far as necessary
for my needs in this bug (mainly GetTransformToAncestor() and
GetEventCoordinatesRelativeTo()).

Differential Revision: https://phabricator.services.mozilla.com/D68919
2020-04-28 01:40:35 +00:00
Botond Ballo 219449f114 Bug 1556556 - Document WidgetEvent::mRefPoint as being in visual coordinates. r=kats
This is already the case for real input events since that's how they
arrive from APZ, and we are no longer changing the coordinates at
the process boundary.

For synthesized events, a future patch will add layout-to-visual
converions to code that sets mRefPoint as appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D68917
2020-04-28 01:38:15 +00:00
Botond Ballo a420b5e399 Bug 1556556 - Introduce ViewportType and RelativeTo. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D68916
2020-04-28 01:38:08 +00:00
Botond Ballo bc3d0b2701 Bug 1556556 - Use the "relative to layout viewport" flag to determine when to divide the composition bounds clip by the resolution. r=mstange
We were using "during event delivery" as a proxy for this, but it was an inaccurate proxy.

Differential Revision: https://phabricator.services.mozilla.com/D68915
2020-04-28 01:38:00 +00:00
Botond Ballo 7fdd59addd Bug 1556556 - Add a "relative to layout viewport" option for display list building. r=mstange,mattwoodrow
Use it in document.elementFromPoint().

Differential Revision: https://phabricator.services.mozilla.com/D68914
2020-04-28 01:37:47 +00:00
Botond Ballo b11a399d42 Bug 1556556 - Remove many uses of IgnoreRootScrollFrame. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D68913
2020-04-28 02:25:51 +00:00
Botond Ballo 480ee775c9 Bug 1556556 - Apply the visual-to-layout transform during display list building and display list based hit testing. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D68728
2020-04-28 01:36:34 +00:00
Botond Ballo af40ffccfd Bug 1556556 - Add ViewportUtils::IsZoomedContentRoot(). r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D68727
2020-04-28 01:36:26 +00:00
Botond Ballo fe49daa3d5 Bug 1556556 - Support both CSS and LayoutDevice units in GetVisualToLayoutTransform(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D68725
2020-04-28 01:36:24 +00:00
Botond Ballo 62546b2e8b Bug 1556556 - Add some VisualToLayout() and LayoutToVisual() wrappers to ViewportUtils. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D68724
2020-04-28 01:36:22 +00:00
Botond Ballo 3bb8b9c86c Bug 1556556 - Rename GetCallbackTransform() to GetVisualToLayoutTransform(). r=kats
We will be applying and unapplying this transform in many places, and
thinking about those operations as "applying the callback transform" and
"unapplying the callback transform" is not very intuitive, especially since
applying the callback transform involves *un*applying the resolution.

Rather, going forward we will use the terminology "visual coordinates"
and "layout coordinates" and use this function to convert back and forth
between them.

ApplyCallbackTransform() is not renamed here because subsequent patches will
transition its callers to use GetVisualToLayoutTransform() and
ApplyCallbackTransform() will be removed.

Differential Revision: https://phabricator.services.mozilla.com/D68297
2020-04-28 01:35:18 +00:00
Botond Ballo 20522092c5 Bug 1556556 - Move GetCallbackTransform() into a new ViewportUtils class. r=kats
This function (and helper functions that wrap it) will be used extensively
throughout layout code, so keeping it in APZCCallbackHelper seems awkward.

nsLayoutUtils would also be a reasonable place but has the downside that
adding a new function to it triggers recompiling the world.

Differential Revision: https://phabricator.services.mozilla.com/D68296
2020-04-28 01:35:05 +00:00
Botond Ballo 92101bb12f Bug 1556556 - Have GetCallbackTransform take just a scroll id rather than an entire guid. r=kats
The implementation was already only using the scroll id, so there is no
functional change, but this change will make it easier to new call sites
to come up with the function's inputs.

Differential Revision: https://phabricator.services.mozilla.com/D68277
2020-04-28 01:34:48 +00:00
Botond Ballo 09e7b83dc2 Bug 1556556 - Remove APZCCallbackHelper::ApplyCallbackTransform(). r=kats
It has no more callers.

Differential Revision: https://phabricator.services.mozilla.com/D68276
2020-04-28 01:34:35 +00:00
Botond Ballo f9e919a8f4 Bug 1556556 - Remove applications of the visual-to-layout transform at the process boundary (and equivalent places for non-e10s). r=kats
Note that the propagation of the target guid to places where the transform
will be applied is best-effort at the moment. In particular, the
InputAPZContext will result in the correct guid being available in places
that are called synchronously from the Recv*() functions, but not places
called asynhcronously (e.g. via DelayedFireSingleTapEvent).

To mitigate this, places where the transform is applied fall back on the
RCD-RSF if a guid is not available via InputAPZContext (added in a
subsequent patch).

The cases that this gets wrong are fairly edge casey (it requires (a) an
asynchronous codepath, (b) an event targeting a subframe, and (c) that
subframe having a "could not accept the APZ scroll position" transform),
so we just punt on them for now. If it turns out to be important to handle,
then options for doing so include (1) propagating the guid through each of
the affected asynchronous codepaths, or (2) attaching the guid to the event
itself.

Differential Revision: https://phabricator.services.mozilla.com/D68723
2020-04-28 01:34:22 +00:00
Botond Ballo ac1f44da5d Bug 1556556 - Change the default value of InputAPZContext::sApzResponse to nsEventStatus_eSentinel. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D70084
2020-04-28 01:34:05 +00:00
Botond Ballo 2290774510 Bug 1556556 - Factor out an APZCCallbackHelper::GetCallbackTransform() helper. r=kats
This is to facilitate call sites that need to incorporate the transform into
a larger transform matrix rather than immediately applying the callback
transform to a point.

Differential Revision: https://phabricator.services.mozilla.com/D68275
2020-04-28 01:33:57 +00:00
Botond Ballo 2037608c4a Bug 1556556 - Clarify the documentation of APZCCallbackHelper::ApplyCallbackTransform(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D68274
2020-04-28 01:33:40 +00:00
Botond Ballo 5e9a66a3de Bug 1556556 - Remove some cruft related to handling the resolution in non-e10s setups. r=tnikkel
Prior to this bug, it was necessary to handle non-e10s specially, because the
resolution was being unapplied at the process boundary, and in non-e10s there
was no process boundary.

The remaining patches in this bug move the resolution unapplication away from
the process boundary in all cases, making special handling for non-e10s
unnecessary.

Differential Revision: https://phabricator.services.mozilla.com/D68273
2020-04-28 02:03:18 +00:00