google / google/ios-webkit-debug-proxy

Proxy returns an empty array of tabs for a few seconds after launch

Open
#5 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
6.2k
Forks
480
PR merge metrics
No merged PRs in 30d

Description

1. Have Safari running on a tethered iOS device.
2. Launch the proxy with -c :9222 (not sure if -c matters).
3. _Quickly_ (as in -- scripted) make requests to http://localhost:9222/json.

A few first requests will return "[]", then it will begin returning a correct list of tabs.

I suspect it's a race between the HTTP requests and the proxy's handshake with the device.

Could the proxy hold HTTP responses until the handshake is done? The requests would just take a few seconds when made right after launching the proxy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.