amir1376 / amir1376/ab-download-manager-browser-integration
Unchecked runtime.lastError when a page enters back/forward cache
- Vorherrschende Sprache
- TypeScript
- Sterne
- 236
- Forks
- 41
- Ø Merge
- 1 T. 17 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 72/100