Open Bug 1704099 Opened 3 years ago Updated 11 months ago

[webvtt] & as subtitle in Firefox 87.0

Categories

(Core :: Audio/Video: Playback, defect, P3)

Firefox 87
defect

Tracking

()

People

(Reporter: github, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0

Steps to reproduce:

  1. Create a vtt file with this subtitle:
    00:00.000 --> 00:02.000
    &
  2. Put it in a "track" element and start a video with this subtitle file.

Actual results:

Firefox 87 shows "&" in the subtitle of the video.

Expected results:

Firefox should show "&" as subtitle (so it should only de-mask the first "&" and leave the second "amp;" as it is).
Chromium 89.0 shows "&" as expected.
Also see here: https://stackoverflow.com/questions/66904039/webvtt-escape-amp-in-subtitle-for-firefox-87-0

Other scenarios: Firefox shows "&­amp;" as "&­amp;" while Chromium shows "&".

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

For the repro steps, did you intend to write:

  1. Create a vtt file with this subtitle:
    00:00.000 --> 00:02.000
    &
    
    Put it in a "track" element and start a video with this subtitle file.

instead of:

  1. Create a vtt file with this subtitle:
    00:00.000 --> 00:02.000
    &
    Put it in a "track" element and start a video with this subtitle file.

In that case, I can indeed reproduce the issue.

Blocks: webvtt
Severity: -- → S3
Flags: needinfo?(alwu)
Priority: -- → P3

Yes, you are right: I intended to write &. :-)
Again with some more markup to prevent de-masking:

Steps to reproduce:

  1. Create a vtt file with this subtitle:
    00:00.000 --> 00:02.000
    &
  2. Put it in a track element and start a video with this subtitle file.

Actual results:

Firefox 87 shows & in the subtitle of the video.

Expected results:

Firefox should show & as subtitle (so it should only de-mask the first & and leave the second amp; as it is).
Chromium 89.0 shows & as expected.
Also see here: https://stackoverflow.com/questions/66904039/webvtt-escape-amp-in-subtitle-for-firefox-87-0

Other scenarios: Firefox shows &­amp; as &­amp; while Chromium shows &.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(alwu)
You need to log in before you can comment on or make changes to this bug.