fix: page.url() returning empty after extension runs for a while

Target.targetInfoChanged handler was updating parent page's cached
targetInfo with child target info (service workers, iframes) because
it looked up targets by sessionId instead of targetId.

Now correctly iterates connectedTargets to find matching targetId.
This commit is contained in:
Tommy D. Rossi
2025-11-25 12:49:26 +01:00
parent 1681c76ede
commit 7588e2a54c
4 changed files with 160 additions and 7 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## 0.0.11
### Patch Changes
- **Fixed `page.url()` returning empty after extension runs for a while**: The `Target.targetInfoChanged` handler was incorrectly updating the parent page's cached `targetInfo` with child target info (service workers, iframes). Now correctly looks up targets by `targetId` instead of `sessionId`.
## 0.0.10
### Patch Changes