Closed Bug 1321235 Opened 8 years ago Closed 8 years ago

Can not remove a stopped media track using removeTrack on Firefox version 52 onwards

Categories

(Core :: Audio/Video: MediaStreamGraph, defect, P1)

52 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox50 --- unaffected
firefox51 --- unaffected
firefox52 + fixed
firefox53 + fixed

People

(Reporter: prerak, Assigned: pehrsons)

References

Details

(Keywords: regression, testcase)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36 Steps to reproduce: Stop a media tracks from a MediaStream and then remove the stopped track from the MediaStream using removeTrack. use - https://jsfiddle.net/7octza05/3/ to reproduce the issue Actual results: From Firefox 52 and onwards, if the track is stopped before calling replaceTrack(), it is not removed from the MediaStream object. It is working fine on stable (v50) and beta(51). If I try to remove a track without stopping it the media capture continues to happens, eg I try to remove a video track from the mediaStream without stopping it the camera light does not turn off and capture cont Expected results: ReplaceTrack() should remove from media stream even if is is stopped
Summary: Can not remove a stopped media track using removeTrack → Can not remove a stopped media track using removeTrack on Firefox version 52 onwards
Component: Untriaged → Audio/Video: MediaStreamGraph
Keywords: testcase
Product: Firefox → Core
Andreas - perhaps track cloning fallout?
Cloning was earlier. But yeah, some sort of fallout.
Assignee: nobody → pehrson
Rank: 15
Priority: -- → P1
Tracking 53+ for this video regression.
tracking as new regression in 52
So turned out we didn't have a test for this. :/ Anyhow - fallout from Bug 1208316 - MediaStream.active. And thanks for reporting Prerak!
Blocks: 1208316
No longer blocks: 1301675
Status: NEW → ASSIGNED
Attachment #8816201 - Flags: review?(rjesup) → review+
Attachment #8816202 - Flags: review?(rjesup) → review+
Andreas, Thanks for fixing it quickly. Will this is be available on Firefox 52 also, as it's there too.
Comment on attachment 8816202 [details] Bug 1321235 - Let ended MediaStreamTracks be removable. Approval Request Comment [Feature/Bug causing the regression]: Bug 1208316 [User impact if declined]: We'd regress a shipped, minor, feature which behavior is clearly speced. [Is this code covered by automated tests?]: Yes [Has the fix been verified in Nightly?]: Yes [Needs manual test from QE? If yes, steps to reproduce]: No [List of other uplifts needed for the feature/fix]: None [Is the change risky?]: No [Why is the change risky/not risky?]: It's very simple, and has automated test coverage. [String changes made/needed]: None
Attachment #8816202 - Flags: approval-mozilla-aurora?
Comment on attachment 8816202 [details] Bug 1321235 - Let ended MediaStreamTracks be removable. fix new regression in aurora52
Attachment #8816202 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
qe-verify- per Comment 14
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: