New issue
Advanced search Search tips

Issue 877841 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug-Regression



Sign in to add a comment

chrome.sockets tcpServer listen and udp.bind not calling callback

Reported by kgra...@gmail.com, Aug 26

Issue description

UserAgent: Mozilla/5.0 (X11; CrOS x86_64 10991.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3524.2 Safari/537.36
Platform: 10991.0.0 (Official Build) dev-channel eve

Steps to reproduce the problem:
1. Call chrome.sockets.tcp.connect to a host that drops incoming TCP connections
2. close the socket
3. Future calls to chrome.sockets.tcpServer.listen do not call their callback

You can use the attached app:
1. Load the attached Chrome app (with chrome.sockets) permission
2. Open console, verify testtcpserver(), testudpserver() print out listening/bound socket info
3. Call break_chrome_socket_servers()
4. Verify testtcpserver() and testudpserver() no longer get listen/bind socket info.
5. You can check other apps such as https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb are also affected and no longer function for the login session
5. A full device reboot will make the problem go away, until  break_chrome_socket_servers() is called again.

What is the expected behavior?
Calls to tcpServer.listen and udp.bind should call their callback.

What went wrong?
tcpServer.listen and udp.bind never call their callback.

Did this work before? Yes 67.0.3396.99 (Official Build) (64-bit)

Does this work in other browsers? Yes

Chrome version: 70.0.3524.2  Channel: dev
OS Version: 10991.0.0
Flash Version: 30.0.0.142 

This bug does not reproduce on the current ChromeOS stable channel (67).
This bug does not appear when tested on OSX Chrome Canary
This bug does not appear with tested on OSX Chrome Stable
 
background.js
1.6 KB View Download
manifest.json
511 bytes View Download
I just want to clarify that this is a ChromeOS-only bug. I could not reproduce on OSX. Thanks!
Thanks for the report Kyle!

It looks like it works for me in Chrome OS Canary (70.0.3532.0).
See screenshot attached.

Can you confirm this is what should happen?
Screenshot 2018-08-29 at 11.11.29 AM.png
221 KB View Download
Cc: devlin@chromium.org
Components: Platform>Apps
Labels: -Hotlist-Interop
I just wiped two devices and re tested to verify.

CB515-1HT (Acer chromebook 15) on Dev channel. Result: bug reproduces.

ASUS C100P flip on stable channel. Result: bug does not reproduce.

I recorded screen recordings demonstrating the bug (chrome70-broken.webm)

So far every device I've tested on (Pixelbook and CB515) in dev channel, I am able to reproduce the bug.
chrome68-working.webm
2.7 MB View Download
chrome70-broken.webm
4.6 MB View Download
Just to reiterate again. This bug only reproduces on ChromeOS devices. I cannot reproduce this bug using just Chrome Canary on OSX.

Sign in to add a comment