aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTianren Dong <tianrendong.dtr@gmail.com>2026-05-13 02:23:52 -0400
committerTianren Dong <tianrendong.dtr@gmail.com>2026-05-13 02:23:52 -0400
commitb319c82a75e9a6488a6454790d1436f74a655e7c (patch)
treec510e62d80b0d2484f0edeba02524624b31f2237 /scripts
parent36c2f7e3463eaa7fecb3ceba537813c089f52b3a (diff)
pi-chrome 0.14.1: harder attachDebugger retry + trusted.debug diagnostic
attachDebugger now: - Calls chrome.debugger.getTargets() first and force-detaches any stale CDP session this extension already owns on the target tab before attaching. Stale sessions (left over from SW reloads or sibling detach failures) often surface on the next attach as 'Cannot access a chrome-extension:// URL of different extension'. - Retries up to two more times (180ms + 500ms) instead of once. The 500ms back-off lets Chrome's content-script registration drain on fresh navigations. - Records every attach event (attached, stale-target-found, attach- failed, retry-failed) in a 20-entry ring buffer for inspection. New diagnostic action 'trusted.debug' returns extension version, trusted mode, attached tabs, the inspected tab's URL/status, current chrome.debugger.getTargets() output, and the recent attach-event log. Use to investigate when a specific URL refuses to attach.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions