Closed Bug 1767516 Opened 2 years ago Closed 2 years ago

Subtitles on Netflix are duplicated on all platforms

Categories

(Toolkit :: Video/Audio Controls, defect, P1)

All
Unspecified
defect

Tracking

()

VERIFIED FIXED
102 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox100 + verified
firefox101 + verified
firefox102 + verified

People

(Reporter: asafko, Assigned: niklas)

References

Details

(Whiteboard: [fidefe-MR1-2022])

Attachments

(3 files)

Attached image dHGScc3.png

Affected Platforms: All

STR:

  1. Turn on subtitles in any Netflix video
  2. Launch PiP
    Expected result: subtitles track is displayed in PiP.
    Actual result: subtitles track is displayed and duplicatedin PiP.
OS: Unspecified → Windows 11
Hardware: Unspecified → Desktop
Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
OS: Windows 11 → Unspecified
Hardware: Desktop → All
Summary: Subtitles on Netflix are duplicated on Win 11 → Subtitles on Netflix are duplicated on all platforms
Attached image macos.png
Priority: P2 → P1

Quote from Niklas for visibility on what happened here:

Netflix changed how they display captions on their videos. The text is now inside a second span that wasn't there when we created the site adapter. The adapter grabs all spans within a caption element and because there are two spans now, we return the text twice.

Comment on attachment 9274869 [details]
Bug 1767516 - Update Netflix site adapter to use nested span for subtitles. r=#pip-reviewers!

Beta/Release Uplift Approval Request

  • User impact if declined: Netflix changed how they display captions on their site and users are currently seeing the caption lines doubled. With the big release of PiP in 100, many users are testing out subtitles in PiP and noticing the bug with doubled caption lines. We would like to get this resolved in release as soon as possible.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 1. Ensure media.videocontrols.picture-in-picture.display-text-tracks.enabled is set to true
  1. Navigate to Netflix and find any video with captions.
  2. Make sure the captions are on in the Netflix player and open a PiP window.
  3. Confirm that each caption line from the Netflix player only shows once in the PiP window.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch only affects users who watching Netflix videos in Picture-in-Picture with subtitles enabled. This change will fix the doubling of caption lines that currently occur. We would like to include this in the next dot release.
  • String changes made/needed: No
  • Is Android affected?: No
Attachment #9274869 - Flags: approval-mozilla-release?
Flags: qe-verify+

Comment on attachment 9274869 [details]
Bug 1767516 - Update Netflix site adapter to use nested span for subtitles. r=#pip-reviewers!

Beta/Release Uplift Approval Request

  • User impact if declined: Netflix changed how they display captions on their site and users are currently seeing the caption lines doubled. With the big release of PiP in 100, many users are testing out subtitles in PiP and noticing the bug with doubled caption lines. We would like to get this resolved in release as soon as possible.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 1. Ensure media.videocontrols.picture-in-picture.display-text-tracks.enabled is set to true
    2.Navigate to Netflix and find any video with captions.
  1. Make sure the captions are on in the Netflix player and open a PiP window.
  2. Confirm that each caption line from the Netflix player only shows once in the PiP window.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch only affects users who watching Netflix videos in Picture-in-Picture with subtitles enabled. This change will fix the doubling of caption lines that currently occur. We would like to include this in the next dot release.
  • String changes made/needed: No
  • Is Android affected?: No
Attachment #9274869 - Flags: approval-mozilla-beta?
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/506998126f71
Update Netflix site adapter to use nested span for subtitles. r=pip-reviewers,mhowell
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
QA Whiteboard: [qa-triaged]

Comment on attachment 9274869 [details]
Bug 1767516 - Update Netflix site adapter to use nested span for subtitles. r=#pip-reviewers!

Approved for 101.0b3.

Attachment #9274869 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9274869 [details]
Bug 1767516 - Update Netflix site adapter to use nested span for subtitles. r=#pip-reviewers!

Approved for 100.0.1

Attachment #9274869 - Flags: approval-mozilla-release? → approval-mozilla-release+

I managed to verify this in Nightly so far, but could not continue. The Widevine simply won't install anymore. Bug 1767953.
Been searching for a way to manually install Widevine manually by using a hack but it did not work.

I have managed to verify this fix using an updated version of the hack above.
It was verified on Nightly v102.0a1, Beta v101.0b3 (20220504181604) and Dot Release v100.0.1 (20220505112524), on Windows 10, Ubuntu 20.04.4 LTS.
Also verified Nightly v102.0a1 on Mac OS 11. For various reasons, the remaining builds could not be verified with this hack.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Regressions: 1768818
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: