Bug 1443157 - Disregard aData for event recording-device-events. r=johannh

MozReview-Commit-ID: 8Lo8PWmOAPQ

--HG--
extra : rebase_source : 73ad3259abdef72f5b35d4f1e61f24e17b938dfd
This commit is contained in:
Andreas Pehrson 2018-03-14 18:39:03 +01:00
parent 6267577292
commit cee7fb987b

View File

@ -66,12 +66,7 @@ var WebrtcUI = {
} else if (aTopic === "PeerConnection:request") {
this.handlePCRequest(aSubject, aTopic, aData);
} else if (aTopic === "recording-device-events") {
switch (aData) {
case "shutdown":
case "starting":
this.notify();
break;
}
this.notify();
} else if (aTopic === "VideoCapture:Paused") {
if (this._notificationId) {
Notifications.cancel(this._notificationId);