Commit Graph

673466 Commits

Author SHA1 Message Date
Andrew Osmond
e9dc497c47 Bug 1551088 - Part 6. Make image decoders use accelerated methods for swizzling and premultiplication. r=tnikkel
The PNG decoder lacks fast implementations for swizzling/unpacking
inside the library, and both PNG and WebP may need to perform
premultiplication due to the alpha channel. This patch adds a new filter
allowing us to take advantage of our accelerated implementations to
perform these transformations on their behalf.

Differential Revision: https://phabricator.services.mozilla.com/D46449

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:29 +00:00
Andrew Osmond
7b2fde0d05 Bug 1551088 - Part 5. Expose SurfaceFilter input row directly to avoid copy if possible. r=tnikkel
Some filters can do the copy of the given data into the working buffer
as part of the filter operation. For those that cannot, we will just
copy the data first, and then advance the row.

Differential Revision: https://phabricator.services.mozilla.com/D46448

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:28 +00:00
Andrew Osmond
b1bffae1bc Bug 1551088 - Part 4. Add gtests for PremultiplyRow and SwizzleRow. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D46447

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:26 +00:00
Andrew Osmond
4693985d7a Bug 1551088 - Part 3. Add SSSE3 and AVX2 implementations of unpacking. r=lsalzman
These variants perform significantly faster than the C implementations
according to local testing and that in treeherder. Image decoding is as
much as 40% faster in the most simple cases (solid green PNG image).

Differential Revision: https://phabricator.services.mozilla.com/D46446

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:25 +00:00
Andrew Osmond
8854802597 Bug 1551088 - Part 2. Add unpack methods to convert from RGB to RGBX/BGRX. r=lsalzman
Some image decoders (e.g. PNG) may have a native representation of the
data as RGB, and do not have accelerated methods to transform from RGB
to RGBX/BGRX. Exposing this as part of the swizzle/premultiply methods
allows us to write accelerated versions ourselves in a later patch in
this series.

Differential Revision: https://phabricator.services.mozilla.com/D46445

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:23 +00:00
Andrew Osmond
8c50efaaf4 Bug 1551088 - Part 1. Expose SwizzleRow and PremultiplyRow variants. r=lsalzman
The image decoders produce surfaces row by row, so a variant to get a
function pointer to perform swizzle/premultiply operations makes more
ergonomic sense.

Differential Revision: https://phabricator.services.mozilla.com/D46444

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:22 +00:00
Gijs Kruitbosch
438b65574e Bug 1585565 - fix package.json loading in eslint setup to always use utf-8 instead of system encoding, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D47883

--HG--
extra : moz-landing-system : lando
2019-10-02 13:07:37 +00:00
Geoff Brown
23a9f21ad1 Bug 1457050 - Allow range of assertions in crashtest 453894-1.xhtml on Android; r=m_kato
Avoid intermittent test failures on android.
The existing android assertion count was introduced by bug 1405550, to avoid
assertion count failures with stylo.

Differential Revision: https://phabricator.services.mozilla.com/D47792

--HG--
extra : moz-landing-system : lando
2019-10-02 00:00:14 +00:00
Jean
818bc89d5a Bug 1568847 - Change whitespace node's text to "whitespace" and restyle the node. r=jdescottes,flod
Change the displayed text of whitespace nodes in the inspector to "whitespace, and add a corresponding value to the inspector localized file. Also restyle the badge to match the scroll badge.

Differential Revision: https://phabricator.services.mozilla.com/D46388

--HG--
extra : moz-landing-system : lando
2019-10-02 13:13:35 +00:00
Nicolas Silva
aa11c1282e Bug 1580922 - Add a wrench rawtest. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47790

--HG--
extra : moz-landing-system : lando
2019-10-02 07:58:35 +00:00
Nicolas Silva
3caec70162 Bug 1580922 - Ensure boundary tiles are invalidated when updating the visible area. r=jrmuizel
In addition, make sure the descriptor size stays in sync with the visible rect's size.
The descriptor's size stored in the resource cache is pretty much obsolete now, we should be able to clean it up and remove it.

Differential Revision: https://phabricator.services.mozilla.com/D46803

--HG--
extra : moz-landing-system : lando
2019-10-02 07:58:27 +00:00
Nicolas Silva
e706b2be8a Bug 1580922 - changing the blob visible area can require rasterization requests. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47084

--HG--
extra : moz-landing-system : lando
2019-10-02 07:58:26 +00:00
Andrew Halberstadt
d25a545d74 Bug 1585146 - [mach] Bump to 1.0.0 and add Python classifiers, r=firefox-build-system-reviewers,mshal
Depends on D47668

Differential Revision: https://phabricator.services.mozilla.com/D47669

--HG--
extra : moz-landing-system : lando
2019-10-01 18:32:07 +00:00
Andrew Halberstadt
07d6b341a6 Bug 1585146 - [mach] Move '--disable-tests' check to a pre_dispatch_handler, r=firefox-build-system-reviewers,mshal
This logic is very 'mozill-central' specific and should live outside of mach
core if possible. Luckily we already have a concept of a 'pre_dispatch_handler'
that is meant for exactly this type of use case.

Differential Revision: https://phabricator.services.mozilla.com/D47668

--HG--
extra : moz-landing-system : lando
2019-10-01 22:31:23 +00:00
Henrik Skupin
d4dbaa0a19 Bug 1585464 - [remote] Unskip passing browser-chrome tests with Fission enabled. r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D47896

--HG--
extra : moz-landing-system : lando
2019-10-02 12:51:06 +00:00
Andrew Swan
ad1e134202 Bug 1580816 Part 2: Expose document.l10n to privileged extensions r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D45665

--HG--
extra : moz-landing-system : lando
2019-09-28 19:42:10 +00:00
Byron Campen [:bwc]
43880ad5ee Bug 1573210: Disable RTCPeerConnection-onicecandidateerror.https.html wpt because we don't support icecandidateerror at all. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47317

--HG--
extra : moz-landing-system : lando
2019-10-01 22:37:14 +00:00
Byron Campen [:bwc]
cf8e41a1d4 Bug 1580853: Add bug link to this meta file. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47298

--HG--
extra : moz-landing-system : lando
2019-10-01 22:36:46 +00:00
Brian Grinstead
ceb6097ff7 Bug 1550549 - Add test coverage for a http domain in page info security tab r=Gijs
This was missing coverage which would have caught a bug during the development
of the previous patch (https://phabricator.services.mozilla.com/D30537#inline-289837)

Depends on D30537

Differential Revision: https://phabricator.services.mozilla.com/D47660

--HG--
extra : moz-landing-system : lando
2019-10-01 09:54:14 +00:00
Brian Grinstead
9f7e4bb9b1 Bug 1550549 - Convert XUL textboxes to HTML inputs in pageInfo.xul r=fluent-reviewers,Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D30537

--HG--
extra : moz-landing-system : lando
2019-10-02 12:30:43 +00:00
Byron Campen [:bwc]
58744662ec Bug 1581898: Move telephone-event to the back of the codec list, because webrtc.org crashes if we don't. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D46830

--HG--
extra : moz-landing-system : lando
2019-10-02 07:50:16 +00:00
Byron Campen [:bwc]
d17eabb595 Bug 1581898: Add test-case that moves payload type 101 to the front. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D46829

--HG--
extra : moz-landing-system : lando
2019-10-02 07:58:22 +00:00
Paul Adenot
841322b2c4 Bug 1584523 - Add tracing statements to AudioStream.cpp to diagnose real-time safety issues. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D47431

--HG--
extra : moz-landing-system : lando
2019-10-02 12:16:24 +00:00
Paul Adenot
bc71a97b2f Bug 1584522 - Change the audio callback trace logger to be more ergonomic. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D47430

--HG--
extra : moz-landing-system : lando
2019-10-02 12:16:22 +00:00
Gijs Kruitbosch
d579352ba8 Bug 1565998 - display a descriptive text for local file: related data, and allow removing it, r=johannh,fluent-reviewers,flod,baku
Differential Revision: https://phabricator.services.mozilla.com/D44832

--HG--
extra : moz-landing-system : lando
2019-10-02 11:42:53 +00:00
Jonathan Kew
e5b8092e0f Bug 1584856 - patch 2 - Check that the expected font family was found, and fall back to search by name in case of a font collection mismatch. r=lsalzman
Depends on D47788

Differential Revision: https://phabricator.services.mozilla.com/D47819

--HG--
extra : moz-landing-system : lando
2019-10-01 21:09:43 +00:00
Jonathan Kew
39469143d6 Bug 1584856 - patch 1 - Add some missing null-checks in dwrite font code. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D47788

--HG--
extra : moz-landing-system : lando
2019-10-01 20:35:28 +00:00
Florin Strugariu
2769c33faa Bug 1576235 - Run macOS tests on integration branches r=perftest-reviewers,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D47886

--HG--
extra : moz-landing-system : lando
2019-10-02 11:37:57 +00:00
Sebastian Streich
e73c676976 Bug 1585297- Use Principal->SchemeIs in nsGeolocation.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D47750

--HG--
extra : moz-landing-system : lando
2019-10-01 12:54:56 +00:00
Martin Stransky
41e46a8792 Bug 1578464 - [Wayland] Set opaque region for toplevel window, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D47602

--HG--
extra : moz-landing-system : lando
2019-10-02 08:57:44 +00:00
Bogdan Tara
f9d30e06a7 Backed out 2 changesets (bug 1530251) for rust failures CLOSED TREE
Backed out changeset e03401a358a6 (bug 1530251)
Backed out changeset 42913778b66a (bug 1530251)
2019-10-02 14:49:23 +03:00
Bogdan Tara
e2c099719a Backed out changeset daecd36223c9 (bug 1584007) for ClientManagerService.cpp failures CLOSED TREE 2019-10-02 14:36:27 +03:00
Paul Bone
846d70ee89 Bug 1530251 - Remove nursery size parameter from GCRuntime::init r=jonco
Callers should use JS_SetGCParameter() instead.

Differential Revision: https://phabricator.services.mozilla.com/D47870

--HG--
extra : moz-landing-system : lando
2019-10-02 11:23:58 +00:00
Paul Bone
5415399846 Bug 1530251 - Rename DefaultNurseryBytes -> DefaultNurseryMaxBytes r=jonco
Also:
 * Update the DefaultNurseryMaxBytes comment
 * Fix the shell parameter handling.

Differential Revision: https://phabricator.services.mozilla.com/D47869

--HG--
extra : moz-landing-system : lando
2019-10-02 11:25:40 +00:00
Tom Tung
6a0e551480 Bug 1584986 - P3 - Correct the function in the test to fix the try failure; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47747

--HG--
extra : moz-landing-system : lando
2019-10-02 07:57:53 +00:00
Tom Tung
c0f0ba97a7 Bug 1584986 - P2 - Rename listInitializedOrigins to listOrigins; r=asuth,johannh
Differential Revision: https://phabricator.services.mozilla.com/D47741

--HG--
rename : dom/quota/test/unit/test_listInitializedOrigins.js => dom/quota/test/unit/test_listOrigins.js
extra : moz-landing-system : lando
2019-10-02 07:57:52 +00:00
Tom Tung
1acaad7116 Bug 1584986 - P1 - Remove the early return for listInitializedOrigins; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47740

--HG--
extra : moz-landing-system : lando
2019-10-02 07:57:57 +00:00
Jonathan Kingston
e7760ef29c Bug 1585604 - Remove telemetry for mixed object subrequst counting. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D47888

--HG--
extra : moz-landing-system : lando
2019-10-02 11:17:28 +00:00
Tom Tung
3058858e69 Bug 1581067 - P6 - Change the test due to P5; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47874

--HG--
extra : moz-landing-system : lando
2019-10-02 10:38:55 +00:00
Tom Tung
9e63838884 Bug 1581067 - P5 - Only remove the temporary body files & body directories when it's in the initializing stage; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47770

--HG--
extra : moz-landing-system : lando
2019-10-02 10:38:55 +00:00
Tom Tung
30f7de3114 Bug 1581067 - P4 - Add a test to verify the result; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47452

--HG--
extra : moz-landing-system : lando
2019-10-01 13:08:15 +00:00
Tom Tung
f77e1ddedb Bug 1581067 - P3 - Suppress the error reuslt for open stream; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47451

--HG--
extra : moz-landing-system : lando
2019-09-30 21:13:11 +00:00
Andreas Pehrson
1bdb34c6ec Bug 1454998 - Rename streams to tracks. r=padenot,karlt,smaug
This renames the following (in alphabetical order, non-exhaustive):

AudioCaptureStream -> AudioCaptureTrack
AudioNodeStream -> AudioNodeTrack
AudioNodeExternalInputStream -> AudioNodeExternalInputTrack
DirectMediaStreamTrackListener -> DirectMediaTrackListener
MediaStream -> MediaTrack
  - Note that there's also dom::MediaTrack. Namespaces differentiate them.
MediaStreamGraph -> MediaTrackGraph
MediaStreamTrackListener -> MediaTrackListener
MSG -> MTG (in comments)
ProcessedMediaStream -> ProcessedMediaTrack
SharedDummyStream -> SharedDummyTrack
SourceMediaStream -> SourceMediaTrack
StreamTime -> TrackTime
TrackUnionStream -> ForwardedInputTrack
  - Because this no longer takes a union of anything, but only a single track
    as input.

Other minor classes, members and comments have been updated to reflect these
name changes.

Differential Revision: https://phabricator.services.mozilla.com/D46146

--HG--
rename : dom/media/AudioCaptureStream.cpp => dom/media/AudioCaptureTrack.cpp
rename : dom/media/AudioCaptureStream.h => dom/media/AudioCaptureTrack.h
rename : dom/media/TrackUnionStream.cpp => dom/media/ForwardedInputTrack.cpp
rename : dom/media/TrackUnionStream.h => dom/media/ForwardedInputTrack.h
rename : dom/media/MediaStreamGraph.cpp => dom/media/MediaTrackGraph.cpp
rename : dom/media/MediaStreamGraph.h => dom/media/MediaTrackGraph.h
rename : dom/media/MediaStreamGraphImpl.h => dom/media/MediaTrackGraphImpl.h
rename : dom/media/MediaStreamListener.cpp => dom/media/MediaTrackListener.cpp
rename : dom/media/MediaStreamListener.h => dom/media/MediaTrackListener.h
rename : dom/media/webaudio/AudioNodeExternalInputStream.cpp => dom/media/webaudio/AudioNodeExternalInputTrack.cpp
rename : dom/media/webaudio/AudioNodeExternalInputStream.h => dom/media/webaudio/AudioNodeExternalInputTrack.h
rename : dom/media/webaudio/AudioNodeStream.cpp => dom/media/webaudio/AudioNodeTrack.cpp
rename : dom/media/webaudio/AudioNodeStream.h => dom/media/webaudio/AudioNodeTrack.h
extra : moz-landing-system : lando
2019-10-02 10:23:02 +00:00
Andreas Pehrson
0ef0cab288 Bug 1454998 - Remove AudioNodeStream::SampleRate(). r=karlt
AudioNodeStream is a subclass of MediaStream, which now exposes a
public const mSampleRate member.

Differential Revision: https://phabricator.services.mozilla.com/D47688

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:55 +00:00
Andreas Pehrson
8028758d0e Bug 1454998 - Remove the notion of streams from MediaStreamGraph. r=padenot,karlt
This change mainly removes the `mTracks` member from MediaStream and moves all
associated members up a level, so that a MediaStream in practice represents a
single track.

Classes will be renamed in a future patch to reflect this.

Other changes include:

The new `mEnded` member of MediaStream changes meaning to only become true when
all data in the stream has been processed. It stems from
StreamTracks::Track::mEnded which used to become true as soon as the last bit of
data had been added to a track, and there could still be data in the track that
would get processed in future iterations. We are moving towards not having any
future data in tracks, which is why this change is ok to make -- keeping the old
behavior will soon not make sense.

TrackUnionStream is changed to no longer take a list of streams as input and
forward the union of their tracks to itself. Instead it's limited to having one
track as input at a time.

The autofinishing functionality that TrackUnionStream had before has been
transformed into an autoending functionality to allow it to defer ending until
its been told that it's ok to end through the control API. This lets a single
TrackUnionStream span the lifetime of multiple inputs, which will be useful for
making DecodedStream spec compliant with HTMLMediaElement::CaptureStream(), and
for implementing the currently discussed MediaRecorder::ReplaceTrack(), to name
a few potential use cases.

AudioNodeStreams used to only have a track (and thus an AudioSegment) if the
EXTERNAL_OUTPUT flag was enabled on them. With all MediaStreams now representing
a track, AudioNodeStreams inherently have an AudioSegment as a member. It is
however only used with data if the EXTERNAL_OUTPUT flag is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D45821

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:53 +00:00
Andreas Pehrson
b65bd286d2 Bug 1454998 - Remove calls to SetStreamOrderDirty() after affecting MediaStreams' finished state. r=karlt
The stream order does not depend on streams' finished state, so these calls are
unnecessary.

Differential Revision: https://phabricator.services.mozilla.com/D47687

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:51 +00:00
Andreas Pehrson
a639f42a0e Bug 1454998 - Remove track blocking from MediaInputPort. r=karlt
This functionality is not used since we moved to only having a single track per
MediaStream (bug 1493613).

Differential Revision: https://phabricator.services.mozilla.com/D47686

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:49 +00:00
Andreas Pehrson
3b58432d88 Bug 1454998 - Break out PrincipalHandle into its own file. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D46764

--HG--
rename : dom/media/MediaSegment.h => dom/media/PrincipalHandle.h
extra : moz-landing-system : lando
2019-10-02 10:22:48 +00:00
Andreas Pehrson
9ed4e1aa58 Bug 1454998 - Move TrackInfo::mTrackId away from TrackID as they're independent. r=karlt
TrackID has been used to denote tracks that are part of MediaStreams in the
MediaStreamGraph. The TrackInfo::mTrackId IDs are no longer used in the
MediaStream APIs and as such it's not necessary that they have the type TrackID.

This patch changes TrackInfo::mTrackId to be of type uint32_t instead, as that
is the type of Mp4parseTrackInfo::track_id, which is assigned to
TrackInfo::mTrackId as the sole remaining non-static user.

Other users set a static trackId of `1` or `2`, and as such remain supported by
this change.

Differential Revision: https://phabricator.services.mozilla.com/D46763

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:46 +00:00
Perry Jiang
4a333d538b Bug 1584007 - avoid race in ClientManagerService::FindSource r=asuth
This patch introduces the concept of a "future ClientSource" to the
ClientManagerService. A "future ClientSource" is registered/removed
from the ClientManagerService by
ClientManager::{Register,Forget}FutureClientSource and is required
when a ClientInfo is initially created without a backing ClientSource.

As a result, the ClientManagerService can distinguish between a
ClientSourceParent* that has yet to register itself with the
ClientManagerService and a ClientSourceParent* that has already
both registered and removed itself from the ClientManagerService.

Differential Revision: https://phabricator.services.mozilla.com/D47592

--HG--
extra : moz-landing-system : lando
2019-10-02 10:13:26 +00:00