amir1376 / amir1376/ab-download-manager-browser-integration
Unchecked runtime.lastError when a page enters back/forward cache
- Lingua principale
- TypeScript
- Stelle
- 236
- Fork
- 41
- Merge medio
- 1g 17h
- PR unite (30g)
- 1
Descrizione
Unchecked runtime.lastError when a page enters back/forward cache
Environment
- Extension: AB Download Manager Browser Integration 1.5.0
- Browser: Microsoft Edge 152.0.4191.66 (macOS, arm64)
- App: AB Download Manager 1.10.4
- Installed via "Load unpacked" (no Edge Add-ons store version available)
Error
Unchecked runtime.lastError: The page keeping the extension port is
moved into back/forward cache, so the message channel is closed.
Steps to reproduce
1. Open several tabs and navigate back/forward so pages enter BFCache
2. Open edge://extensions and check the extension's error log
Expected
The extension should handle the port disconnect caused by Chromium's
BFCache eviction: read chrome.runtime.lastError inside the disconnect
handler (so no unchecked error is logged) and re-establish the port
when the page is restored.
Actual
The disconnect is not handled, so an "Unchecked runtime.lastError"
entry is logged every time a page is moved into BFCache.
Notes
Disabling the Memory Saver / Sleeping Tabs features only reduces the
frequency; BFCache is enabled by default so the error still occurs.
Workaround: toggling the extension off and on restores functionality.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by tracing the extension's runtime port connection and disconnect handler, focusing on where the BFCache-related runtime.lastError is reported. Reproduce the issue in Edge using the listed tab navigation steps, then verify that the error log stays clean and the port is re-established when the page is restored.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 72/100