angular/devtools/projects/shell-browser/src/app
AleksanderBodurri bfda774995 fix(devtools): catch invalidated extension error to prevent devtools from spamming console (#55697)
When a browser extension is updated it becomes invalidated on currently open pages. If that extension then tries to send a message to those pages through `chrome.runtime.sendMessage(..)` then an error is thrown in the console

For Angular DevTools, this results in spamming the console with "Uncaught Error: Extension context invalidated." errors.

This commit catches that error and removes the event listener that triggers the `chrome.runtime.sendMessage(...)` call.

PR Close #55697
2024-08-27 12:54:44 -07:00
..
app.component.html feat(devtools): renaming shell-chrome (#44952) 2022-04-12 18:41:37 +00:00
app.component.scss feat(devtools): renaming shell-chrome (#44952) 2022-04-12 18:41:37 +00:00
app.component.spec.ts refactor(devtools): migrate devtools to prettier formatting (#53945) 2024-01-19 19:09:54 +01:00
app.component.ts refactor(devtools): Use Chrome DevTools Performance extension API (#55805) 2024-07-31 16:04:52 +00:00
app.module.ts Revert "Revert "refactor(devtools): implement multiframe support in devtools page (#53934)" (#54629)" (#54805) 2024-03-26 09:19:06 -07:00
backend.ts Revert "Revert "refactor(devtools): implement iframe support for Angular DevTools' browser code (#53934)" (#54629)" (#54805) 2024-03-26 09:19:05 -07:00
background.ts Revert "Revert "refactor(devtools): implement iframe support for Angular DevTools' browser code (#53934)" (#54629)" (#54805) 2024-03-26 09:19:05 -07:00
BUILD.bazel fix(devtools): issue where backendReady race condition causes Angular not detected error (#54805) 2024-03-26 09:19:06 -07:00
chrome-application-environment.ts Revert "Revert "refactor(devtools): implement iframe support for Angular DevTools' browser code (#53934)" (#54629)" (#54805) 2024-03-26 09:19:05 -07:00
chrome-application-operations.ts Revert "Revert "refactor(devtools): implement iframe support for Angular DevTools' browser code (#53934)" (#54629)" (#54805) 2024-03-26 09:19:05 -07:00
chrome-message-bus.ts refactor(devtools): enables typescript strict option (#53340) 2023-12-05 12:42:56 -08:00
chrome-window-extensions.ts fix(devtools): issue where backendReady race condition causes Angular not detected error (#54805) 2024-03-26 09:19:06 -07:00
content-script.ts fix(devtools): catch invalidated extension error to prevent devtools from spamming console (#55697) 2024-08-27 12:54:44 -07:00
detect-angular-for-extension-icon.ts Revert "Revert "refactor(devtools): implement iframe support for Angular DevTools' browser code (#53934)" (#54629)" (#54805) 2024-03-26 09:19:05 -07:00
ng-validate.ts fix(devtools): catch invalidated extension error to prevent devtools from spamming console (#55697) 2024-08-27 12:54:44 -07:00
same-page-message-bus.ts refactor(devtools): migrate devtools to prettier formatting (#53945) 2024-01-19 19:09:54 +01:00
tab_manager.ts fix(devtools): issue where backendReady race condition causes Angular not detected error (#54805) 2024-03-26 09:19:06 -07:00
tab_manager_spec.ts fix(devtools): issue where backendReady race condition causes Angular not detected error (#54805) 2024-03-26 09:19:06 -07:00
zone-aware-chrome-message-bus.ts refactor(devtools): migrate devtools to prettier formatting (#53945) 2024-01-19 19:09:54 +01:00