New issue
Advanced search Search tips

Issue 715785 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

WebRTC data channels automatically closed before beforeunload event when browser closed

Reported by douglasw...@hotmail.co.uk, Apr 26 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Steps to reproduce the problem:
1. open webRTC data channel
2. add window.beforeunload() a function with debug statement in first line. 
3. see data channel and peerConnection are already closed when debug statement is reached. 

What is the expected behavior?
Should close after beforeunload and thus be open in beforeunload. Clearly is not beforeunload but afterunload regarding peer Connections; contradicting documentation.  

What went wrong?
peer connection and data channel closed before beforeunload when should close after beforeunload as means user cannot chose to stay on page if, for example, it is an important page. 

Did this work before? N/A 

Chrome version: <Copy from: 'about:version'>  Channel: n/a
OS Version: 
Flash Version: Shockwave Flash 11.2 r202
 
Components: -Blink Blink>WebRTC

Comment 2 by guidou@chromium.org, Apr 27 2017

Components: -Blink>WebRTC Blink>WebRTC>PeerConnection

Comment 3 by guidou@chromium.org, Apr 27 2017

Owner: hbos@chromium.org
Status: Assigned (was: Unconfirmed)
hbos@: can you take a look?

Sign in to add a comment