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

755956 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes 3d05d551a7 Bug 1709269 - [devtools] Remove target-configuration watcher trait r=nchevobbe
Depends on D114217

Differential Revision: https://phabricator.services.mozilla.com/D114218
2021-05-04 13:02:31 +00:00
Julian Descottes b33ac38c66 Bug 1709269 - [devtools] Remove set-breakpoints watcher trait r=nchevobbe
Depends on D114216

Differential Revision: https://phabricator.services.mozilla.com/D114217
2021-05-04 13:02:31 +00:00
Julian Descottes fdd58c0322 Bug 1709269 - [devtools] Make type optional in TargetCommand::hasTargetWatcherSupport r=nchevobbe
The rest of the patches in this stack will remove WatcherActor traits.
But the call sites should still check that the watcher is available.
Making the argument optional allows to reuse the same method as we remove the traits.

Differential Revision: https://phabricator.services.mozilla.com/D114216
2021-05-04 13:02:31 +00:00
Florian Quèze b98d49bc65 Bug 1708576 - ignore memfd for the content process startup main thread I/O test. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D114077
2021-05-04 12:56:34 +00:00
Iulian Moraru b21df91635 Backed out 3 changesets (bug 1680387) for causing browser chrome failures on browser_bug592641.js. CLOSED TREE
Backed out changeset 65616921e520 (bug 1680387)
Backed out changeset 51531850a9a2 (bug 1680387)
Backed out changeset 0c1c5e1f901b (bug 1680387)
2021-05-04 16:28:17 +03:00
Nicolas Silva 1f87bb2116 Bug 1696905 - Store composite tiles in a single array. r=gfx-reviewers,bradwerth
It used to be more convenient to store them in separate arrays but with the new occlusion culling code we don't benefit from it and have to undo it to traverse tiles from front to back.
This is a cleanup patch that should not change the behavior of the code.

Differential Revision: https://phabricator.services.mozilla.com/D113989
2021-05-04 12:54:52 +00:00
Nicolas Silva 67286e28c2 Bug 1696905 - CPU-side occlusion culling for picture cache tiles. r=gfx-reviewers,lsalzman,gw
This patch introduces a simple culling algorithm that splits compositor tiles into only their visible parts, removing the need for a depth buffer. This reduces the draw-call count as well well as the memory usage and bandwidth associated with the depth buffer.

Differential Revision: https://phabricator.services.mozilla.com/D113532
2021-05-04 12:54:52 +00:00
Alexandre Poirot 2e0745f710 Bug 1708635 - Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113936
2021-05-04 12:43:21 +00:00
Alexandre Poirot ee2d38e3fc Bug 1708635 - Implement TargetCommand.reloadTopLevelTarget. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113935
2021-05-04 12:43:20 +00:00
Gijs Kruitbosch 4dd2872dab Bug 1707208 - ensure that file: dialogs display something in the focus permission checkbox label and add a test, r=jaws
Now that I finally wrote a test, I also noticed that we were trying to write the
checkbox permission value when the dialog gets aborted (ie removed because the
page disappears due to another page loading or the tab/window being closed),
which then threw an exception because the event target is the window rather than
the dialog element, and dialog.querySelector in maybeSetAllowTabSwitchPermission
fails.

Differential Revision: https://phabricator.services.mozilla.com/D114023
2021-05-04 12:02:08 +00:00
Jon Coppeard 96492d5f4b Bug 1708722 - Move error reporting APIs to a new public header r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D113993
2021-05-04 10:55:52 +00:00
Emilio Cobos Álvarez 27cc12171b Bug 1680387 - Fix interaction with src-set() / image-set(), and enable the feature by default. r=tnikkel
As discussed here: https://github.com/whatwg/html/pull/5574#issuecomment-826347560

This matches other browsers.

Depends on D113265

Differential Revision: https://phabricator.services.mozilla.com/D113267
2021-05-04 10:24:08 +00:00
Emilio Cobos Álvarez 11ad9c7bcd Bug 1680387 - Apply intrinsic image resolution as appropriate in layout/style/dom, and update test expectations. r=tnikkel
This should be mostly straight-forward, since we have code for this
anyways for image-set() and srcset.

The only thing is that we were using floats for resolution, but since
EXIF allows you to scale each axis separately, we now need to pass an
image::Resolution instead.

The main outstanding issue is the spec comment mentioned in the previous
patch, about what happens if you have srcset/image-set and the image
density specified together. For now I've implemented what the
image-set() spec says, but this is subject to change before shipping of
course.

Differential Revision: https://phabricator.services.mozilla.com/D113265
2021-05-04 10:24:07 +00:00
Emilio Cobos Álvarez f7f8e8d153 Bug 1680387 - Read and expose EXIF image resolution data. r=tnikkel,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D113264
2021-05-04 10:24:06 +00:00
Iulian Moraru 5d68f9dd81 Backed out changeset 82b000faa025 (bug 1709274) for causing Build Bustages. CLOSED TREE 2021-05-04 12:49:53 +03:00
Jon Coppeard 8ba309016a Bug 1708472 - Part 4: Remove template object from NewArray fallback stub r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D113926
2021-05-04 09:32:29 +00:00
Jon Coppeard 4a955d61b4 Bug 1708472 - Part 3: Simplify object scalar replacement a little r=nbp
When writing the previous patch I noticed the object path could be simplified to just use a shape.

Differential Revision: https://phabricator.services.mozilla.com/D113925
2021-05-04 09:32:28 +00:00
Jon Coppeard 5faee4513f Bug 1708472 - Part 2: Add recover instructions for MNewArrayObject and support scalar replacement r=nbp
I didn't add any new tests for this yet - maybe there are some you could suggest?

Differential Revision: https://phabricator.services.mozilla.com/D113924
2021-05-04 09:32:28 +00:00
Jon Coppeard 10e5258034 Bug 1708472 - Part 1: Transpile optimised NewArray stub along the same lines as for NewObject r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D113923
2021-05-04 09:32:28 +00:00
Mike Hommey c43f8a0984 Bug 1708935 - Don't run clippy on crates that don't build on Linux. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D114210
2021-05-04 09:31:12 +00:00
Mike Hommey 9eb9a419b9 Bug 1708935 - Run clippy sequentially. r=sylvestre
The parallel run of sequences of "clean; clippy; clean" creates race
conditions that alter the results of clippy and can mask errors.
Moreover, chances are clippy is not allowing any parallelization
anyways, because with two concurrent clippy running, one will be waiting
for the other because of cargo locking.

This turns the current intermittent failure into a permanent one.

Differential Revision: https://phabricator.services.mozilla.com/D114209
2021-05-04 09:31:12 +00:00
Alexandre Poirot cf0c5203e9 Bug 1701790 - Move ResourceWatcher tests to their new folder. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113934
2021-05-04 09:29:48 +00:00
Alexandre Poirot ecf535689e Bug 1701790 - Migrate ResourceWatcher to become ResourceCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113930
2021-05-04 09:29:47 +00:00
Andi-Bogdan Postelnicu 45f1bcd05f Bug 1709274 - Update wrench-macos-build to clang-12. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D114202
2021-05-04 09:08:44 +00:00
Sandor Molnar b5ebdf39ff Backed out changeset e4c8bc9f6f34 (bug 1708722) for causing build bustages. DONTBUILD CLOSED TREE 2021-05-04 12:17:25 +03:00
Jon Coppeard cddcbf10be Bug 1708722 - Move error reporting APIs to a new public header r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D113993
2021-05-04 08:52:17 +00:00
Steven Michaud 9e1051a831 Bug 1577886 - Add support to for macOS __crash_info data to Breakpad (followup). r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D114089
2021-05-04 08:31:08 +00:00
lyavor d8cb699cc0 Bug 1704454 - Copy and adapt test https-only/test_resource_upgrade.html for https-first. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D113314
2021-05-04 07:51:26 +00:00
Calixte Denizet 285fd120c0 Bug 1707554 - Decode bmp image where data offset is 0 r=tnikkel
In some BMP files, data offset is set to 0 and in this case pixel data immediatly follow color table so don't fail in such a case.

Differential Revision: https://phabricator.services.mozilla.com/D113395
2021-05-04 07:15:45 +00:00
Henrik Skupin 955d7a045e Bug 1693296 - [remote] Hardening Browser.close() for a clean shutdown. r=remote-protocol-reviewers,jdescottes
For a shutdown attempt all windows should be informed first so
that various components can safely do clean-up work.

If something prevents the shutdown the Remote Agent should force it.
This will make sure that no application process remains,
or would have to be force killed externally via its PID.

Differential Revision: https://phabricator.services.mozilla.com/D105490
2021-05-04 06:34:37 +00:00
Lars T Hansen fa1414e4b5 Bug 1706891 - Config machinery for relaxed simd. r=rhunt
Introduce moz.configure, WasmFeatures, and StaticPrefList.yaml
machinery to define a config option for relaxed SIMD
(https://github.com/WebAssembly/relaxed-simd).  At the moment, there
are no defined relaxed SIMD opcodes, but a dozen or so are in the
works.  This just sets us up for implementing those.

Differential Revision: https://phabricator.services.mozilla.com/D114117
2021-05-04 06:26:13 +00:00
Kagami Sascha Rosylight 1b59a49ab1 Bug 1707681 - Ignore third party paths in explicit-operator-bool check r=andi
Differential Revision: https://phabricator.services.mozilla.com/D113695
2021-05-04 06:20:25 +00:00
Karl Tomlinson 0eb94679e5 Bug 1708179 Test PannerNode.setPosition() throws with parameter out of range of float r=padenot
Depends on D113943

Differential Revision: https://phabricator.services.mozilla.com/D113944
2021-05-04 03:48:34 +00:00
Karl Tomlinson 1f6f4224c8 Bug 1708179 throw when PannerNode param value a not in the range of float r=padenot
This is similar to what WebIDL bindings would do for us when the AudioParam setters are called.

setPosition() "is equivalent to setting positionX.value, positionY.value, and positionZ.value
attribute directly with the x, y and z parameters, respectively."
https://webaudio.github.io/web-audio-api/#dom-pannernode-setposition

Differential Revision: https://phabricator.services.mozilla.com/D113943
2021-05-04 03:48:34 +00:00
Karl Tomlinson ccc0c7cae2 Bug 1708179 switch from PannerNode.setPosition() parameters close to DBL_MAX to FLT_MAX r=padenot
The large numbers were to test
https://hg.mozilla.org/integration/mozilla-inbound/rev/084b01d1b6b3
but were ignored after
https://hg.mozilla.org/integration/mozilla-inbound/rev/8799895ca858

Depends on D113941

Differential Revision: https://phabricator.services.mozilla.com/D113942
2021-05-04 03:48:33 +00:00
Karl Tomlinson c727b2bf5c Bug 1708179 Test AudioParam value setter throws during setValueCurveAtTime() interval r=padenot
Depends on D113940

Differential Revision: https://phabricator.services.mozilla.com/D113941
2021-05-04 03:48:33 +00:00
Karl Tomlinson 39c1368512 Bug 1708179 remove unused variables r=padenot
Depends on D113939

Differential Revision: https://phabricator.services.mozilla.com/D113940
2021-05-04 03:48:33 +00:00
Karl Tomlinson a6be19d968 Bug 1708179 throw when attempting to set AudioParam value during setValueCurveAtTime() interval r=padenot,emilio
Depends on D113938

Differential Revision: https://phabricator.services.mozilla.com/D113939
2021-05-04 03:48:32 +00:00
Karl Tomlinson f2c39b5980 Bug 1708179 add AudioParam::SetInitialValue() for use in AudioNode creation r=padenot
when the setter should not throw because there are no events in the timeline
and the time is known valid.

This will allow us to make SetValue() throw when it conflicts with a
setValueCurveAtTime() curve.

Depends on D113937

Differential Revision: https://phabricator.services.mozilla.com/D113938
2021-05-04 03:48:32 +00:00
Karl Tomlinson 2b6889435f Bug 1708179 clarify that AudioEventTimeline::ValidateEvent() has no side effects r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D113937
2021-05-04 03:48:32 +00:00
Glenn Watson 759e747d77 Bug 1708337 - Fix rounded clips on root iframe tile caches. r=gfx-reviewers,lsalzman
If an iframe has complex clips, we need to skip including them
in the iframe specific clip applied to the tile cache, as that
path only supports rectangle clips.

Differential Revision: https://phabricator.services.mozilla.com/D114190
2021-05-04 03:37:38 +00:00
Nick Alexander 2f109387cc Bug 1707030 - Return to having NSDISTMODE=copy impact INSTALL. r=firefox-build-system-reviewers,mhentges
This reverts [part of Bug
1255485](https://hg.mozilla.org/mozilla-central/rev/5888578c22f8dc006cfd6a405c9fc53b2df73b44).

It should have been reverted in Bug 1641291, which allowed
NSDISTMODE=copy to impact build manifests.  This is useful when
cross-compiling: this stops some symlinks within the object directory
itself, say from `dist/include` to an object directory.

Differential Revision: https://phabricator.services.mozilla.com/D113149
2021-05-04 03:12:49 +00:00
Mike Hommey d674f870ce Bug 1709237 - Upgrade the failure crate to 0.1.8. r=emilio
Replace the use of a third-party github repo with a in-tree patch.

Differential Revision: https://phabricator.services.mozilla.com/D114191
2021-05-04 02:22:45 +00:00
Glenn Watson 7947bc10f1 Bug 1706824 - Remove old direct-composition example. r=gfx-reviewers,lsalzman
This was an old example / proof of concept of directly drawing
to a DirectComposition surface.

We now have the example-compositor/ project that shows how to
integrate with DirectComposition on Windows and Wayland on
Linux, in addition to a shipping implementation in Gecko for
CoreAnimation and DirectComposition.

Differential Revision: https://phabricator.services.mozilla.com/D113052
2021-05-04 00:32:41 +00:00
Haik Aftandilian a651eec1e4 Bug 1709225 - Add more logging to test file_fullscreen-scrollbar.html r=mac-reviewers,tnikkel
Add more logging to test file_fullscreen-scrollbar.html (executed by dom/html/test/test_fullscreen-api.html) so it is easier to understand failures.

Differential Revision: https://phabricator.services.mozilla.com/D114187
2021-05-04 00:11:12 +00:00
Glenn Watson 6bfb59cac9 Bug 1708444 - Don't create compositor surfaces inside blend containers. r=gfx-reviewers,bradwerth
If we optimize a root level blend container to be a tile cache, we
need to ensure we don't promote compositor surfaces within this slice
as it can result in incorrect blending.

Differential Revision: https://phabricator.services.mozilla.com/D114176
2021-05-04 00:02:45 +00:00
Brendan Dahl 7b2ab557b8 Bug 1651317 - Handle race in script compiling in PrototypeDocumentContentSink. r=smaug
I have still yet to reproduce this. However, it looks like it could happen if
two documents load the same script and they both finish at the same time
and one clears the mCurrentScriptProto of the other.

Differential Revision: https://phabricator.services.mozilla.com/D113602
2021-05-04 00:01:22 +00:00
Botond Ballo edaa0e7e9b Bug 1708855 - Remove Axis::GetScaleForAxis(). r=tnikkel
It was duplicating the method GetAxisScale().

Differential Revision: https://phabricator.services.mozilla.com/D114180
2021-05-03 23:51:29 +00:00
Botond Ballo 9adeec0ae9 Bug 1708855 - Use Axis to avoid code repetition in AsyncScrollThumbTransformer. r=tnikkel
Depends on D114162

Differential Revision: https://phabricator.services.mozilla.com/D114163
2021-05-03 23:51:29 +00:00
Botond Ballo 60aef10c93 Bug 1708855 - Promote a few local variables in AsyncScrollThumbTransformer::ComputeTransform() to fields. r=tnikkel
Depends on D114161

Differential Revision: https://phabricator.services.mozilla.com/D114162
2021-05-03 23:51:28 +00:00