Skip to content

Commit 5355050

Browse files
authored
[MV3 Debug Extension] Ignore page reloads for detecting navigation away from app (#1994)
1 parent 4e08276 commit 5355050

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dwds/debug_extension_mv3/web/background.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Future<void> _handleRuntimeMessages(
140140
Future<void> _detectNavigationAwayFromDartApp(
141141
NavigationInfo navigationInfo) async {
142142
// Ignore any navigation events within the page itself (e.g., opening a link,
143-
// reloading an IFRAME, etc):
143+
// reloading the page, reloading an IFRAME, etc):
144144
if (_isInternalNavigation(navigationInfo)) return;
145145
final tabId = navigationInfo.tabId;
146146
final debugInfo = await _fetchDebugInfo(navigationInfo.tabId);
@@ -163,6 +163,7 @@ bool _isInternalNavigation(NavigationInfo navigationInfo) {
163163
'form_submit',
164164
'link',
165165
'manual_subframe',
166+
'reload',
166167
].contains(navigationInfo.transitionType);
167168
}
168169

0 commit comments

Comments
 (0)