Open Bug 973245 Opened 10 years ago Updated 2 years ago

audio Element with autoplay Attribute Plays After Being Removed by XSLT Transform

Categories

(Core :: XSLT, defect)

27 Branch
x86_64
Windows 8.1
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bugzilla-2, Unassigned)

Details

Attachments

(3 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20140127194636

Steps to reproduce:

1. Create an XHTML (as XML) document containing an audio element with an autoplay="" attribute and valid audio resource.
2. Assign it an XSLT stylesheet via an xml-stylesheet processing instruction that doesn't contain a post-transform audio element.
3. Open the page.
4. Refresh or reload the page.
5. Close the browser tab containing the page.


Actual results:

The audio plays even though the output document doesn't contain an audio element. Further, refreshing or reloading the page causes the audio to play again. This new audio stream will play over the previous audio stream if the previous audio stream hasn't concluded. Closing the page's browser tab doesn't terminate the audio.


Expected results:

There should be no audio.
Attached file Testcase Stylesheet
Attached file Testcase Document (obsolete) —
Attachment #8376758 - Attachment is obsolete: true
I've found that the audio doesn't always (incorrectly) play; doing a browser restart seems to make the testcase trigger the bug as expected.
Component: Untriaged → XSLT
Product: Firefox → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: