Commit Graph

705812 Commits

Author SHA1 Message Date
Csoregi Natalia
9955440e45 Backed out 3 changesets (bug 1622088) for sanitizer failures on RootingAPI.h. CLOSED TREE
Backed out changeset 43477ef52982 (bug 1622088)
Backed out changeset 35c3d2b322fa (bug 1622088)
Backed out changeset 77f71cbc61ec (bug 1622088)
2020-05-06 01:32:41 +03:00
Glenn Watson
e9fb825993 Bug 1634243 - Remove ScrollNodeAndClipChain type from WR internals. r=Bert
The spatial node index and clip chain id are no longer directly
related concepts, since they now exist in different representations
(the spatial tree and clip store).

Removing the grouping of these during scene building simplifies
some work in progress to refactor how WR internally represents
clips, in order to allow future optimization work.

Differential Revision: https://phabricator.services.mozilla.com/D73187
2020-05-04 20:44:24 +00:00
Agi Sferro
69645103b4 Bug 1601067 - Add deprecation notice for registerWebExtension. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D73514
2020-05-05 22:19:42 +00:00
Agi Sferro
d713c54e7d Bug 1601067 - Make the test-support extension installable. r=owlish,snorp
Differential Revision: https://phabricator.services.mozilla.com/D72980
2020-05-05 22:19:30 +00:00
Agi Sferro
699cc8cf70 Bug 1601067 - Use installBuiltIn in tests instead of registerWebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D72979
2020-05-05 22:19:28 +00:00
Agi Sferro
859bdae8a8 Bug 1601067 - Implement installBuiltIn. r=mixedpuppy,owlish,snorp
Differential Revision: https://phabricator.services.mozilla.com/D72978
2020-05-05 22:19:26 +00:00
Agi Sferro
b86a9bfbf5 Bug 1601067 - Add IDs and nativeMessagingFromContent to tests. r=snorp
This in preparation to making these test extensions installable.

Differential Revision: https://phabricator.services.mozilla.com/D72977
2020-05-05 22:19:23 +00:00
Agi Sferro
f3d0825866 Bug 1601067 - Add nativeMessagingFromContent privileged permission. r=zombie,snorp
Installed privileged addons in GeckoView sometimes need to send messages from
content scripts. Today we use the in-memory flag `ALLOW_CONTENT_MESSAGING` to
allow a specific built-in addon to send messages from content scripts, but for
installed extensions we need a way to persist this flag.

To do this, this patch introduces a new privileged permission
`nativeMessagingFromContent`, when this permission is present in the manifest,
the addon will be allowed to send native messages from content scripts (note:
the addon will also need `nativeMessaging` as usual).

When the permission is not present, any attempt to send a native message from a
content script will result in an error, similarly to what happens before this
patch.

Differential Revision: https://phabricator.services.mozilla.com/D72976
2020-05-05 22:19:13 +00:00
Agi Sferro
5dd2be61eb Bug 1601067 - Collect NewTab messages until a delegate is registered. r=snorp
Sometimes extensions call tabs.create immediately on startup. In that case the
delegate may not be attached yet. To avoid losing these messages we store them
until a delegate is attached.

This also includes a refactoring to unify behavior for delegates. Eventually I
want to factor out delegates similarly to what happens in GeckoSession today.

Differential Revision: https://phabricator.services.mozilla.com/D72975
2020-05-05 22:19:11 +00:00
Agi Sferro
df91383e8d Bug 1601067 - Only send ActionDelegate:Attached when the delegate is not null. r=snorp
We use this to send a default action to the embedder, but if no one is
listening there's no point, and it causes problems in tests because sometimes
the delegate is attached / reattached too quickly and the second delegate will
end up getting two messages by mistake.

Differential Revision: https://phabricator.services.mozilla.com/D72974
2020-05-05 20:54:00 +00:00
Agi Sferro
04097efffa Bug 1601067 - Catch exception thrown by newURI. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D73502
2020-05-05 20:54:00 +00:00
Markus Stange
7c4a6b32f3 Bug 1634784 - Remove #ifdef MOZ_GECKO_PROFILER wrappers in mozglue/baseprofiler cpp files, and reorder includes. r=gerald
I apologize for mixing multiple types of changes in this patch. The mix is probably harder to review than necessary.

Because of the way these .cpp files are listed in mozglue/baseprofiler/moz.build,
they are only built when MOZ_GECKO_PROFILER is set. So the #ifdef MOZ_GECKO_PROFILER
wrapper is now unnecessary.
Removing this wrapper has many knock-on effects on other lines in these files
due to preprocessor line indentation.

As I was removing the #ifdefs, I was reordering includes as well, to follow the
include order laid out on https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes ;
namely, system headers should go before "your project's" .h files.

I also removed the BaseProfiler.h include from some files but not from all.
In the past, the BaseProfiler.h include served the purpose of picking up the
MOZ_BASE_PROFILER #define, and it's no longer needed for that reason.
There are probably lots of now-unnecessary BaseProfiler.h includes left.

Differential Revision: https://phabricator.services.mozilla.com/D73527
2020-05-05 22:00:49 +00:00
Markus Stange
6725e6df9a Bug 1634784 - Remove MOZ_BASE_PROFILER and replace it with MOZ_GECKO_PROFILER everywhere. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D73526
2020-05-05 21:44:11 +00:00
Markus Stange
1bb0550030 Bug 1631584 - Add profiler labels for JNI binding method/getter/setter/constructor calls. r=gerald,snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71645
2020-05-05 21:42:21 +00:00
Tarek Ziadé
fa240018c6 Bug 1635546 - deactivate test under macOS r=sparky
until we have Bug 1635573

Differential Revision: https://phabricator.services.mozilla.com/D73943
2020-05-05 21:29:00 +00:00
Mark Banner
bc593187cb Bug 1635154 - Add a yandex/ua search engine locale in preparation for distributions. r=daleharvey" -a
Differential Revision: https://phabricator.services.mozilla.com/D73933
2020-05-05 21:05:45 +00:00
Byron Campen [:bwc]
088ad10f93 Bug 1626364: Reinit decoder on error in WebrtcMediaDataDecoder. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D69649
2020-04-27 16:54:37 +00:00
Byron Campen [:bwc]
f34847245c Bug 1626364: Report errors in VideoToolkit h264 decode PlatformCallback. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D69443
2020-04-20 16:25:15 +00:00
Yura Zenevich
afd1feade0 Bug 1602075 - add an accessibility-panel-auto-init feature to control the panel auto enabling functionality. r=mythmon,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D71582
2020-05-05 21:13:38 +00:00
Matthew Gregan
b874802505 Bug 1631965 - Vendor Rust. r=chunmin
Depends on D71836

Differential Revision: https://phabricator.services.mozilla.com/D71837
2020-05-05 21:13:53 +00:00
Matthew Gregan
f7177d3d52 Bug 1631965 - Switch AudioIPC to bugfix fork of mio-named-pipes. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D71836
2020-05-05 21:13:30 +00:00
Keith Cirkel
3b9cc2e96b Bug 1599415 trigger focus when details summary element is clicked r=TYLin,smaug
Differential Revision: https://phabricator.services.mozilla.com/D72603
2020-05-05 21:09:42 +00:00
Andrea Marchesini
fcc5266a9e Bug 1635193 - StoragePrincipalHelper::GetOriginAttributes instead of NS_GetOriginAttributes, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D73727
2020-05-05 20:56:04 +00:00
Timothy Nikkel
fe7e341120 Bug 1634855. Rollup select dropdowns for pinch gestures. r=mstange
Chrome and Safari ignore pinch zooming while a select dropdown is open.

The other option is to close the dropdown, which is what we already do if you two finger scroll on the touchpad. Chrome and Safari also ignoring two finger scrolling while a select dropdown is open.

Differential Revision: https://phabricator.services.mozilla.com/D73539
2020-05-05 21:05:52 +00:00
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