New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 847006 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Range#cloneContents starts playing audio

Reported by woxxom@gmail.com, May 26 2018

Issue description

Chrome:  all versions

======================================

1. open the attached test.html
2. if it doesn't play automatically, click the play button

Expected: one popping sound
Observed: two popping sounds

======================================

In the attached code Range#cloneContents was meant to get a copy of DOM for further processing, but due to the observed behavior it's effectively unusable. It may be an issue with the DOM spec, https://dom.spec.whatwg.org/#dom-range-clonecontents
 
test.html
2.4 KB View Download
Labels: Needs-Milestone
Cc: sandeepkumars@chromium.org
Labels: M-68 FoundIn-66 FoundIn-67 FoundIn-68 Target-68
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue using #68.0.3440.6 and 66.0.3359.181 on Win 10, Linux Debian Rodete and Mac 10.13.3 as per the step mentioned in original comment. Heard two popping sounds

This seems to be a Non-Regression as same behavior is observed across all the channels since M60. Untriaging for further inputs.

Thanks!!

Comment 3 by fergal@chromium.org, May 30 2018

Components: Blink>Media
Add the Media component.

According to

https://dom.spec.whatwg.org/#concept-range-clone

the cloned range is a fragment, so not attached to the document. I seems like media that is not attached to a document should not play.
Status: Available (was: Untriaged)
Components: -Blink>DOM

Sign in to add a comment