google / ios-webkit-debug-proxy

A DevTools proxy (Chrome Remote Debugging Protocol) for iOS devices (Safari Remote Web Inspector).
BSD 3-Clause "New" or "Revised" License
5.9k stars 460 forks source link

New browser tabs are not being detected in Safari browser for iOS 17.4 and above #416

Open mayank2498 opened 3 weeks ago

mayank2498 commented 3 weeks ago

New browser tabs are not being detected in Safari browser for iOS 17.4 and above

Version details

Device iPhone 15 Plus v17.5
ios-webkit-debug-proxy version v1.9.1


Screen recording to demonstrate the problem

https://github.com/google/ios-webkit-debug-proxy/assets/26433224/56357759-7141-474a-9370-f95cc6ae938b


Steps

  1. Connected my iPhone to Mac
  2. Ran ios_webkit_debug_proxy command
  3. Hit this command: curl localhost:9222/json a. Got empty data, which is expected since Safari was not open
  4. Launched Safari browser and opened apple.com
  5. Hit this command: curl localhost:9222/json a. Got apple.com details as JSON response ( all good till here )
  6. Opened a new tab in Safari browser, and opened google.com
  7. Hit this command: curl localhost:9222/json a. Got tab details only for apple.com and not google.com b. This seems like a bug, where new tabs are not being detected at all
  8. Closed the first tab, where apple.com was opened
  9. Hit this command: curl localhost:9222/json a. Expected this to return tab details of google.com b. This also seems like a bug, where we start getting empty data, irrespective of how many tabs & urls are open

Edit

Performed the same steps, but ran IWDP with -d flag to fetch logs

Please find the full logs in this attached log file : IDWP-debug-logs-new-tabs-issue-ios-17.log

artygus commented 3 weeks ago

hi @mayank2498 thanks for the detailed report! could you please share logs if you run same step, but start iwdp tool with the -d flag?

auchenberg commented 3 weeks ago

This might be caused by the RemoteXPC changes in iOS 17. There seems to be a broader ecosystem issue at the moment, https://github.com/appium/appium-ios-device/issues/123

mayank2498 commented 2 weeks ago

hi @mayank2498 thanks for the detailed report! could you please share logs if you run same step, but start iwdp tool with the -d flag?

@artygus I have updated the description and attached the full logs as requested.