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

705788 Коммитов

Автор SHA1 Сообщение Дата
Mike Conley cef57051cc Bug 1622088 - Part 3: Add startup_about_home_paint_cached Talos test. r=davehunt,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71794
2020-05-05 21:03:52 +00:00
Mike Conley 078d4c6940 Bug 1622088 - Part 2: Add some mochitest-browser tests for the about:home startup cache. r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D71793
2020-05-05 21:03:39 +00:00
Mike Conley 298efaca0a Bug 1622088 - Part 1: Write a test for the about:home startup cache worker. r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D70954
2020-05-05 21:03:16 +00:00
Junior Hsu b8f3378b5b Bug 1582117 - enable fission with content policy fixed, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73932
2020-05-05 21:02:15 +00:00
Tarek Ziadé 9a003b79ba Bug 1635546 - fixed dependencies r=sparky
We need to set up the notebook deps.
The train of patch re-activated some
tests that required the dependencies used
by the notebook, which were not added in the
path.

Differential Revision: https://phabricator.services.mozilla.com/D73936
2020-05-05 20:35:28 +00:00
Ted Campbell 31e2ab79bb Bug 1618637 - Construct JSFunctions directly with correct nargs in frontend. r=mgaudet
With JSFunction allocations deferred until after at least parsing, we have
the correct nargs on the FunctionBox by the time we allocate that function.
This lets use remove a number of `synchronizeArgCount` calls.

Standalone functions still need to be updated after parsing completes because
the function is an input.

BinAST allocations aren't deferred yet, so leave those calls alone.

Differential Revision: https://phabricator.services.mozilla.com/D73880
2020-05-05 20:59:59 +00:00
Michael Cooper d7e4393107 Bug 1635542 - Fix name of messaging experiment in ActionsManager r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D73934
2020-05-05 20:20:18 +00:00
Etienne Bruines da5b77f74b Bug 1635496 - [remote] Fixed dispatchMouseEvent to not await undefined promises. r=remote-protocol-reviewers,whimboo
The "this" state is not persistent across spawn-calls, using "this" in
"function" also does not make a whole lot of sense.

In order to persist the Promise across spawn-calls, the value is stored
in "content" instead.

Since one cannot reliably return an Event from SpecialPowers.spawn (due
to serialization issues), we are awaiting them instead of returning.

Differential Revision: https://phabricator.services.mozilla.com/D73913
2020-05-05 20:04:16 +00:00
Jan-Ivar Bruaroey cfa05dc693 Bug 1597721 - Mark getdisplaymedia.https.html WPT as long. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D73931
2020-05-05 19:54:13 +00:00
Gregory Mierzwinski 5b6deb14a0 Bug 1625203 - Remove redundancy from mozproxy perfherder data names. r=perftest-reviewers,AlexandruIonescu,Bebe,davehunt
This patch reduces the redundancy in the mozproxy perfherder data names. It removes the `replay` suffix since it's already clear it's related to replay/not-replayed. The subtest names have the `mozproxy-replay` prefix removed through the addition of a new way of specifying supporting measurement values. Instead of only being able to submit the values with a `{measurement: values}` format, we can now submit it as `{measurement: {values: [], <SUBTEST-OPTIONS>}}`. The subtest options include perfherder-specific options, and some settings that change how the names are built. Furthermore, the full supporting data dictionary also includes two new fields: `summarize-values`, and `suffix-type`. The former dictates whether or not a summary value is produced, and the latter determines if the name should be suffixed with the data type.

Differential Revision: https://phabricator.services.mozilla.com/D72695
2020-05-05 19:54:46 +00:00
Byron Campen [:bwc] 2c9fd7098c Bug 1633533: In these tests, wait for gathering to finish before rolling back, to ensure a transition back to 'gathering'. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D73304
2020-05-05 19:39:32 +00:00
Botond Ballo 5cffd06241 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-05-05 15:24:12 +00:00
Botond Ballo 37c373d1e9 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-05-05 19:33:40 +00:00
Botond Ballo 5081d59c17 Bug 1556556 - Disable zoom-to-focused-input behaviour in dom/html/test/forms. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D73775
2020-05-05 19:33:40 +00:00
Botond Ballo 88d2c4249d 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-05-05 19:33:40 +00:00
Botond Ballo 69d9164602 Bug 1556556 - Update test expectations for tests which are now passing. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D69642
2020-05-05 19:28:56 +00:00
Botond Ballo d3677710c5 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-05-05 19:28:48 +00:00
Botond Ballo 887327825b 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-05-05 19:28:41 +00:00
Botond Ballo 551a4602dc Bug 1556556 - Miscellaneous fixes related to event coordinate transformations. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D69639
2020-05-05 19:28:15 +00:00
Botond Ballo b6c97a5eb0 Bug 1556556 - Perform app unit to milimetre conversion correctly in PositionedEventTargeting. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D68922
2020-05-05 19:27:52 +00:00
Botond Ballo 860a3688b1 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-05-05 19:27:50 +00:00
Botond Ballo 967bb355ae 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-05-05 19:27:47 +00:00
Botond Ballo 380598f9cd Bug 1556556 - Use FrameForPointOption::IsRelativeToLayoutViewport when passing layout-relative coordinates to GetFrameForPoint(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D71455
2020-05-05 19:26:50 +00:00
Botond Ballo 173d001b86 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-05-05 19:26:38 +00:00
Botond Ballo 6bda5b208d 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-05-05 19:24:41 +00:00
Botond Ballo 0e4ceea622 Bug 1556556 - Introduce ViewportType and RelativeTo. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D68916
2020-05-05 19:24:28 +00:00
Botond Ballo f55eb5c394 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-05-05 19:24:21 +00:00
Botond Ballo 8f18aa54b4 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-05-05 19:24:08 +00:00
Botond Ballo 7cf10dca6d Bug 1556556 - Remove many uses of IgnoreRootScrollFrame. r=mstange,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D68913
2020-05-05 19:23:35 +00:00
Botond Ballo 62da5ce412 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-05-05 19:23:02 +00:00
Botond Ballo a08c1b8d22 Bug 1556556 - Add ViewportUtils::IsZoomedContentRoot(). r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D68727
2020-05-05 19:22:49 +00:00
Botond Ballo 5175a2bf21 Bug 1556556 - Support both CSS and LayoutDevice units in GetVisualToLayoutTransform(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D68725
2020-05-05 19:22:42 +00:00
Botond Ballo 1011b024c4 Bug 1556556 - Add some VisualToLayout() and LayoutToVisual() wrappers to ViewportUtils. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D68724
2020-05-05 19:37:26 +00:00
Botond Ballo f32f10a719 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-05-05 19:37:26 +00:00
Botond Ballo 3b6b571b1e 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-05-05 19:37:26 +00:00
Botond Ballo f02fcb17b4 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-05-05 19:22:12 +00:00
Botond Ballo 6a461317ca 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-05-05 19:22:00 +00:00
Botond Ballo dd4ac2120d Bug 1556556 - Remove APZCCallbackHelper::ApplyCallbackTransform(). r=kats
It has no more callers.

Differential Revision: https://phabricator.services.mozilla.com/D68276
2020-05-05 19:36:28 +00:00
Botond Ballo 209295c33c 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-05-05 19:36:28 +00:00
Botond Ballo 545fa94c8b Bug 1556556 - Clarify the documentation of APZCCallbackHelper::ApplyCallbackTransform(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D68274
2020-05-05 19:20:15 +00:00
Botond Ballo f7fde53875 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-05-05 19:20:00 +00:00
Hubert Boma Manilla 98b0dbdad3 Bug 1634643 - Make sure array is passed to stacktrace r=Honza
Default set stacktrace to [] if its falsy
Added check for empty array ahead to return early

Differential Revision: https://phabricator.services.mozilla.com/D73452
2020-05-04 10:48:15 +00:00
Hubert Boma Manilla 1c37dd6cba Bug 1631302 - Quick UX refactor of the header sections r=Honza
Included in this patch
 - Reduced the size of the raw header toggles from 16px to 12px
 - The raw header toggles when the "Raw" label is clicked
 - The label has changed for "Raw headers" to "Raw" as recommende by the UX designs
 - Changed the Title text color of the headers accordion to make it lighter
 - Disabled the input boxes when property values are selected
 - Changed the color of the property values

Todo (in a different patch)
 - Show learn more and copy icons on hover
 - No warning icons

Differential Revision: https://phabricator.services.mozilla.com/D73230
2020-05-05 13:16:15 +00:00
Hubert Boma Manilla 8454cf096c Bug 1631285 - New headers panel toolbar r=Honza
Add a toolbar for the headers panel with block and resend buttons

Differential Revision: https://phabricator.services.mozilla.com/D71916
2020-05-04 10:17:54 +00:00
David Parks 17388ad7ea Bug 1634949: Avoid list-initializer construction in WebGL IpdlQueueBuffer r=jgilbert
The list-initialization previously used is illegal for this case in C++20.

Differential Revision: https://phabricator.services.mozilla.com/D73766
2020-05-04 23:31:44 +00:00
Dimi Lee 25a3aeba91 Bug 1635020 - Check whether browsing context is discarded after returning from an IPC call r=timhuang
We keep the reference of BrowsingContext across IPC call. But the
BrowsingContext may be discarded when returning from the IPC call.

This crash happens when:
A first-party window calls window.open(a 3rd-party url), which triggers
the storage access heuristic, and then the window is closed
immediatelly.

This patch fixes this issue by checking IsDiscard() when returning from
the IPC call.

Differential Revision: https://phabricator.services.mozilla.com/D73810
2020-05-05 18:59:26 +00:00
Chanhee Cho ea6c5ac8d9 Bug 1622656 - OSKeyStore.cpp: replace r.size()<1 to r.empty(). r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D73916
2020-05-05 18:48:37 +00:00
Sylvestre Ledru 8404713771 Bug 1635383 - Run yaml linter in parallel r=marco
Differential Revision: https://phabricator.services.mozilla.com/D73814
2020-05-05 11:31:06 +00:00
Sylvestre Ledru f50ca10b6e Bug 1635384 - Run l10n linter in parallel r=marco
Differential Revision: https://phabricator.services.mozilla.com/D73812
2020-05-05 11:30:59 +00:00
Aaron Klotz bebfb567e8 Bug 1635173: Add GeckoSessionTestRule.getSessionPid() to junit; r=agi,geckoview-reviewers
To support this API, we do the following:

Additions to `GeckoSessionTestRule`:
* We add an overload to `webExtensionApiCall` that accepts a `GeckoSession`
  argument. Instead of sending the message to the extension's background script,
  this overload instead sends the message to the port for the session's
  content script.
* We add `GeckoSessionTestRule.getSessionPid()` which uses the new
  `webExtensionApiCall` overload. Moving other existing APIs over to use the
  new overload is out of scope for this bug and should be done in follow-ups.

Additions to the `test-support` extension:
* We modify the content script to receive an API call message from the native
  port. It then forwards the request up to the background script. By doing it
  this way, the background script will receive the message along with the
  WebExtension `Tab` object belonging to the sender;
* The background script's message handler merges the tab into the arguments
  to the API as a `tab` property;
* The background script then calls the API and the result is returned to
  the harness using the native port, just like the normal implementation;
* We add a `GetPidForTab` API for resolving top-level PIDs from a webext tab id.

Differential Revision: https://phabricator.services.mozilla.com/D73723
2020-05-05 18:43:56 +00:00