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

817 Коммитов

Автор SHA1 Сообщение Дата
Jan-Ivar Bruaroey 79e118fb86 Bug 1552571: Optimize GetUserMediaWindowListener's source listener iteration and ownership. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D31687

--HG--
extra : moz-landing-system : lando
2019-06-20 16:43:21 +00:00
Dorel Luca bdd441ea2d Backed out changeset 350091c5dde1 (bug 1552571) for mda failures in /builds/worker/workspace/build/src/dom/media/MediaManager.cpp 2019-06-05 05:14:15 +03:00
Jan-Ivar Bruaroey 612f805223 Bug 1552571: Optimize GetUserMediaWindowListener's source listener iteration and ownership. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D31687

--HG--
extra : moz-landing-system : lando
2019-06-04 22:39:14 +00:00
Andreas Pehrson f7fd39e39f Bug 1537986 - Remove dom:: prefixes in MediaManager. r=jib
Depends on D32965

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

--HG--
extra : moz-landing-system : lando
2019-05-31 22:04:13 +00:00
Andreas Pehrson d80077c20a Bug 1537986 - Add deviceId and groupId to all camera and microphone settings. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D32964

--HG--
extra : moz-landing-system : lando
2019-06-04 12:07:31 +00:00
Jan-Ivar Bruaroey 98192deae0 Bug 1550955 - Make StopTrack() API require a hard reference. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D31555

--HG--
extra : moz-landing-system : lando
2019-05-17 19:38:44 +00:00
Jim Mathies 596063b9b7 Bug 1541186 - Switch to using TYPE_MOZILLA_NONMAINTHREAD for MediaManager. r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D25925

--HG--
extra : moz-landing-system : lando
2019-05-01 18:16:55 +00:00
Jan-Ivar Bruaroey 6f1f1f6d20 Bug 1546865 - Retry gUM on mic process limit collision after 200 ms. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D30290

--HG--
extra : moz-landing-system : lando
2019-05-10 16:06:09 +00:00
Jan-Ivar Bruaroey a8cc07510f Bug 1547381 - Call StopTrack() in the right order. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D29924

--HG--
extra : moz-landing-system : lando
2019-05-06 09:14:38 +00:00
Jan-Ivar Bruaroey 2a2f7640e3 Bug 1407415 - Add a CamerasParent shutdown blocker. r=dminor,asuth
Differential Revision: https://phabricator.services.mozilla.com/D29701

--HG--
extra : moz-landing-system : lando
2019-05-03 21:08:45 +00:00
Jan-Ivar Bruaroey e52e8837ef Bug 1407415 - Consolidate media::GetShutdownBarrier() use and return a RefPtr r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D29700

--HG--
extra : moz-landing-system : lando
2019-05-03 21:08:42 +00:00
Dan Minor 4d0f83f387 Bug 1497559 - Remove Application from mediaCaptureWindowState; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D28093

--HG--
extra : moz-landing-system : lando
2019-04-30 15:06:23 +00:00
Dan Minor 522725a730 Bug 1497559 - Remove application capture support; r=ng
This removes all references to application capture except from MediaSourceEnum.
That was left in place so as to not change the enumerated values used
for WEBRTC_GET_USER_MEDIA_TYPE telemetry.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 16:35:39 +00:00
Jan-Ivar Bruaroey 51b1caf0cd Bug 1335740 - getUserMedia() Add 2 prefs to control A) NotAllowedError in http (pref'd on), and B) [SecureContext] navigator.mediaDevices (pref'd off) r=bzbarsky,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D19549

--HG--
extra : moz-landing-system : lando
2019-04-30 15:20:59 +00:00
Andreas Pehrson 5cd1576eed Bug 1540434 - Convert a bunch of rawptrs related to MediaManager to RefPtr. r=jib
When unplugging a camera in use in a video-only gUM capture, we see a crash in
GetUserMediaWindowListener::Remove when trying to use `aListener` after its last
reference was removed from an nsRefPtrHashTable at the beginning of the method.
As `aListener` was a rawptr, neither this method itself, nor its caller, kept it
alive.

Making this method take a RefPtr instead of a rawptr solves this issue.
This patch also converts other similar rawptrs for good measure.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 07:37:48 +00:00
Boris Zbarsky d0bcf72821 Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27027

--HG--
extra : moz-landing-system : lando
2019-04-11 14:12:43 +00:00
Sylvestre Ledru 03c8e8c2dd Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:41:42 +00:00
Csoregi Natalia ba58e936bd Backed out changeset 4ad80127f89f (bug 1519636) for bustage on MarkupMap.h and nsAccessibilityService.cpp. CLOSED TREE 2019-04-05 09:48:19 +03:00
Sylvestre Ledru d1c1878603 Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:36:16 +00:00
Narcis Beleuzu 24dbe577a5 Backed out changeset 389b6bbd76db (bug 1519636) for bustages on MarkupMap.h . CLOSED TREE 2019-04-05 00:27:56 +03:00
Sylvestre Ledru 399dbd28fe Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 20:12:23 +00:00
Andreas Pehrson 3d69980886 Bug 1494675 - Merge SourceListener::Remove into SourceListener::Stop. r=padenot
Depends on: D24903

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

--HG--
extra : moz-landing-system : lando
2019-03-29 16:12:20 +00:00
Andreas Pehrson 4b06f8478d Bug 1494675 - Remove windowID to MediaEngineSource mappings from MediaEngines. r=padenot
These once served a caching-and-reuse purpose it seems, but it makes less sense
when sources are not shared.

There seems to still be functioning code to re-use fake audio devices, but this
seems like premature optimization. Especially since we don't care much about
fake devices in release.

This patch removes it all, together with some plumbing around the mechanism.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 14:10:10 +00:00
Andreas Pehrson 45fe07077f Bug 1494675 - Remove AllocationHandle. r=padenot
The handle was used to keep separate allocations of the same source in a single
process apart. Sources no longer use sharing, so we no longer need allocations
or their handles even as a concept.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 14:10:24 +00:00
Andreas Pehrson 5797084794 Bug 1525323 - Remove SourceTrackListener from MediaManager. r=padenot
This moves the responsibility of forwarding NotifyPull() from the graph thread
to MediaEngineSources out of MediaManager and into the sources themselves. This
is better aligned with how the sources work, since not all sources need pulling.
This also clarifies lifetime management of these listeners in relation to when
pulling is enabled for a track, since the sources are already handling enabling
pulling themselves.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 18:05:56 +00:00
Sebastian Hengst bf8d28e2cf Backed out 2 changesets (bug 1335740) for permafailing mda task on Android 8.0
Backed out changeset 7beefe9e4d81 (bug 1335740)
Backed out changeset 35abcd7c962a (bug 1335740)

--HG--
rename : testing/web-platform/meta/mediacapture-streams/MediaDevices-getSupportedConstraints.https.html.ini => testing/web-platform/meta/mediacapture-streams/MediaDevices-getSupportedConstraints.html.ini
rename : testing/web-platform/meta/mediacapture-streams/historical.https.html.ini => testing/web-platform/meta/mediacapture-streams/historical.html.ini
rename : testing/web-platform/tests/mediacapture-streams/MediaDevices-getSupportedConstraints.https.html => testing/web-platform/tests/mediacapture-streams/MediaDevices-getSupportedConstraints.html
rename : testing/web-platform/tests/mediacapture-streams/historical.https.html => testing/web-platform/tests/mediacapture-streams/historical.html
2019-03-25 12:31:48 +01:00
Andreas Pehrson 9abc2ffdf4 Bug 1423253 - Remove pulling (and mutex) from the default video source. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22911

--HG--
extra : moz-landing-system : lando
2019-03-22 11:43:23 +00:00
Andreas Pehrson 78c790ab2a Bug 1423253 - Change MediaEngineRemoteVideoSource to push instead of pull. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22901

--HG--
extra : moz-landing-system : lando
2019-03-22 11:42:23 +00:00
Boris Zbarsky 960ef74fa8 Bug 1535384 part 11. Remove MOZ_CAN_RUN_SCRIPT_BOUNDARY for getUserMedia callbacks. r=jib
nsIDOMGetUserMediaErrorCallback, nsIDOMGetUserMediaSuccessCallback,
and nsIGetUserMediaDevicesSuccessCallback were completely unused, so
they could just go away and all the code got simpler.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 04:36:46 +00:00
Jan-Ivar Bruaroey 2958460ddc Bug 1335740 - getUserMedia() Add 2 prefs to control A) NotAllowedError in http (pref'd on), and B) [SecureContext] navigator.mediaDevices (pref'd off) r=bzbarsky,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D19549

--HG--
rename : testing/web-platform/meta/mediacapture-streams/historical.html.ini => testing/web-platform/meta/mediacapture-streams/historical.https.html.ini
rename : testing/web-platform/tests/mediacapture-streams/historical.html => testing/web-platform/tests/mediacapture-streams/historical.https.html
extra : moz-landing-system : lando
2019-03-19 14:17:51 +00:00
Sylvestre Ledru 4aa92e3091 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Alex Chronopoulos abfb29171d Bug 1213453 - Correlate video device group id based on device name. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20372

--HG--
extra : moz-landing-system : lando
2019-03-08 11:52:18 +00:00
Alex Chronopoulos 6efd82fb6f Bug 1213453 - Session-unique group id. r=pehrsons
Spec in [1] mentions: "The browsing session-unique group identifier for the source of the MediaStreamTrack."

[1] https://www.w3.org/TR/mediacapture-streams/#constrainable-properties

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

--HG--
extra : moz-landing-system : lando
2019-03-08 11:52:06 +00:00
Alex Chronopoulos da31b1b51c Bug 1213453 - Add group id in various MediaManager classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20369

--HG--
extra : moz-landing-system : lando
2019-03-08 11:51:45 +00:00
Narcis Beleuzu ccb04a4f95 Backed out 5 changesets (bug 1213453) for bustages on MediaEngineDefault.cpp . CLOSED TREE
Backed out changeset 118792523194 (bug 1213453)
Backed out changeset 6208d9e15f3d (bug 1213453)
Backed out changeset ec1da6bbf1a7 (bug 1213453)
Backed out changeset f78c357f2f5f (bug 1213453)
Backed out changeset 6903f0739e83 (bug 1213453)
2019-03-08 13:34:52 +02:00
Alex Chronopoulos fae0a858fe Bug 1213453 - Correlate video device group id based on device name. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20372

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:55 +00:00
Alex Chronopoulos 68ec14cfe5 Bug 1213453 - Session-unique group id. r=pehrsons
Spec in [1] mentions: "The browsing session-unique group identifier for the source of the MediaStreamTrack."

[1] https://www.w3.org/TR/mediacapture-streams/#constrainable-properties

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

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:53 +00:00
Alex Chronopoulos 3a6e2e8c5e Bug 1213453 - Add group id in various MediaManager classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20369

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:49 +00:00
Ryan Hunt 00e98538aa Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21106

--HG--
extra : rebase_source : ea3f51c2c11247114deccbc86e90fb02b8a97257
2019-02-25 16:05:29 -06:00
Ehsan Akhgari b5a2bda7ee Bug 1527505 - Part 9: Make nsIPermissionManager accept ACString arguments for permission types instead of raw C strings; r=nika
This will mean that in places like the tight loop in GetTypeIndex()
we would no longer require calling strlen() on the input type argument
once per loop iteration.

Depends on D20236

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

--HG--
extra : moz-landing-system : lando
2019-02-21 22:54:28 +00:00
Jan-Ivar Bruaroey 0ed9f377cc Bug 1523958 - FeaturePolicy: display-capture. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D18083

--HG--
extra : moz-landing-system : lando
2019-02-11 23:02:38 +00:00
Ehsan Akhgari 786727c91d Bug 1525057 - Ensure that GetUserMediaRequest's mIsHandlingUserInput is always initialized properly; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D18572

--HG--
extra : moz-landing-system : lando
2019-02-05 18:40:21 +00:00
Alex Chronopoulos c7a3f72677 Bug 1522488 - Increase wait time before a new device enumeration after a device change event to avoid getting outdated list. r=padenot
The problem here is that the MediaStreamGraphImpl::mInputDeviceID is not reset after a device unplug. On a device-remove event of the active device MediaStreamGraphImpl::mInputDeviceID is reset when MediaStreamGraphImpl::CloseAudioInput is being executed. This method will not be executed if the new enumeration, on the MediaManager::OnDeviceChange, is returning the old outdated list of devices. This patch increases the wait time before the new enumeration in order to allow the system to update the provided device list.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 17:36:07 +00:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Sylvestre Ledru 47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Johann Hofmann ca334646e4 Bug 1371741 - Disallow getUserMedia on null principals. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D16220

--HG--
extra : moz-landing-system : lando
2019-01-11 10:49:37 +00:00
Andreas Pehrson 6f2800844c Bug 1517711 - Guard other uses of SetPullingEnabled too. r=padenot
Depends on D15892

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

--HG--
extra : moz-landing-system : lando
2019-01-08 10:06:08 +00:00
Andreas Pehrson 997855e877 Bug 1513973 - Enable pulling at the same time as starting audio sources. r=jib
Otherwise we risk building up a buffer in the microphone source from when
Start() is run until pulling is enabled. This manifests itself as input latency
to the user.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:43 +00:00
Andreas Pehrson d8bf65f800 Bug 1513973 - Make MediaEngineSource::SetTrack return void. r=jib
All subclasses are now returning NS_OK, so there's no point in keeping nsresult
as the return type.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:40 +00:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00