Open
Bug 682026
Opened 13 years ago
Updated 2 years ago
Video/Audio should stop playing with onbeforeunload dialog displayed
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
REOPENED
People
(Reporter: josh, Unassigned)
Details
Attachments
(1 file)
If you have a page playing video and audio, and it opens an onbeforeupdate dialog when closed, the video and audio should stop playing with the onbeforeupdate dialog displayed.
What types of audio/video does this apply? HTML5, Plugins?
Can you provide a screenshot of the dialog for some context?
Reporter | ||
Comment 2•13 years ago
|
||
I primarily care about HTML5 video, which seems like the easier case to handle. Also, s/onbeforeupdate/onbeforeunload/g, sorry. The dialog that sites can pop up when attempting to close the page, which has "Stay on Page" and "Leave Page" buttons. I can provide a screenshot if that doesn't clarify sufficiently.
Summary: Video/Audio should stop playing with onbeforeupdate dialog displayed → Video/Audio should stop playing with onbeforeunload dialog displayed
(In reply to Josh Triplett from comment #2)
> I can provide a screenshot if that doesn't clarify sufficiently.
It clarifies it for me, but it might be beneficial to those who may not be aware. Also, can you provide a test site & steps to reproduce?
Thanks
Reporter | ||
Comment 4•13 years ago
|
||
I don't have a test site readily available. The thought occurred to me when browsing Mozilla's new demo site at https://demoparty.mozillalabs.com/gallery/ . I first thought "I hope the demo I just clicked on doesn't play loud music". I then figured I could just close the site if it did, but then I wondered what would happen if a site played loud music *and* used onbeforeunload. Obviously I don't suspect any of the Mozilla demos of that, but it seems like the kind of thing a more obnoxious site would do. (Think "trolling with a rickroll".)
Any chance you could code a minimized test-case using that video? or does the onbeforeunload thing get triggered server-side?
Reporter | ||
Comment 6•13 years ago
|
||
I don't have a test case. The thought occurred to me when browsing the Mozilla Demos site (https://demoparty.mozillalabs.com/gallery/). I started browsing some of them, and noticed that many played music. It occurred to me that if a site started playing loud music, I'd want to close it quickly. I then wondered what would happen if a site started playing loud music *and* used an onbeforeunload. (Think "trolling with a rickroll", for an example.)
(In reply to Josh Triplett from comment #6)
> I don't have a test case.
I understand that from comment 4. I'm not asking if you HAVE a testcase. I'm asking if you can MAKE a testcase; to take some time to code a test case.
Reporter | ||
Comment 8•13 years ago
|
||
Reporter | ||
Comment 9•13 years ago
|
||
OK, I've attached an example which demonstrates the problem. It embeds a youtube video with sound, and has an onbeforeunload. If you try to navigate away or close the window, you'll get a dialog, and the sound will continue playing while you read and respond to the dialog. Click "Leave Page" to actually complete the action of navigating away or closing.
Updated•9 years ago
|
Component: Audio/Video → Audio/Video: Playback
Comment 10•7 years ago
|
||
Mass closing do to inactivity.
Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
Reporter | ||
Comment 11•7 years ago
|
||
This issue still exists. And I've seen multiple malicious sites (e.g. popunder ads) that play audio and use onbeforeunload to make it difficult to leave.
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
Updated•7 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•