angular/packages
arturovt 7600bec71d fix(router): handle scrollRestoration error in restricted environments (#62186)
In this commit, setting `window.history.scrollRestoration` is wrapped in a try-catch block to prevent `SecurityError` exceptions in restricted contexts such as:

- sandboxed iframes
- partially navigated or inactive windows
- test runners, extensions, or content previews

If an error occurs, a runtime warning with error code [2400] is logged to the console. This avoids breaking app initialization and improves cross-browser safety.

Unfortunately, it's not possible to perform any end-to-end testing of this fix.

PR Close #62186
2025-06-24 12:24:43 +00:00
..
animations build: migrate to using new jasmine_test (#62086) 2025-06-18 08:27:26 +02:00
benchpress build: migrate to using new jasmine_test (#62086) 2025-06-18 08:27:26 +02:00
common fix(router): handle scrollRestoration error in restricted environments (#62186) 2025-06-24 12:24:43 +00:00
compiler refactor(compiler): remove I18nError (#62160) 2025-06-23 14:25:28 +02:00
compiler-cli build: migrate final non-zone.js jasmine tests (#62169) 2025-06-24 08:46:39 +00:00
core refactor(core): drop injection context assertion in production (#62038) 2025-06-24 12:24:09 +00:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements refactor: use zone.js from npm instead of packages/zone.js throughout repo (#61977) 2025-06-10 12:02:03 -07:00
examples build: migrate final non-zone.js jasmine tests (#62169) 2025-06-24 08:46:39 +00:00
forms build: migrate final non-zone.js jasmine tests (#62169) 2025-06-24 08:46:39 +00:00
language-service refactor(language-service): resolve module specifier for a directive exported by multiple different files (#62100) 2025-06-23 14:16:30 +02:00
localize refactor(compiler): remove TranslationParseError (#62160) 2025-06-23 14:25:28 +02:00
misc/angular-in-memory-web-api build: update cross-repo angular dependencies to ^20.1.0-next (#61880) 2025-06-05 14:08:33 +02:00
platform-browser build: migrate to using new jasmine_test (#62086) 2025-06-18 08:27:26 +02:00
platform-browser-dynamic build: migrate to using new jasmine_test (#62086) 2025-06-18 08:27:26 +02:00
platform-server build: migrate to using new jasmine_test (#62086) 2025-06-18 08:27:26 +02:00
private/testing build: replace all ng_package with new rule from rules_angular (#61843) 2025-06-04 09:13:41 +00:00
router feat(router): Run loadComponent and loadChildren functions in the route's injection context (#62133) 2025-06-24 09:39:48 +00:00
service-worker build: migrate to using new jasmine_test (#62086) 2025-06-18 08:27:26 +02:00
ssr refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
upgrade fix(upgrade): Make zoneless work with hybrid apps (#61660) 2025-06-19 14:25:48 +02:00
zone.js build: update jest monorepo to v30 (#62234) 2025-06-24 10:49:30 +00:00
BUILD.bazel refactor: use zone.js from npm instead of packages/zone.js throughout repo (#61977) 2025-06-10 12:02:03 -07:00
circular-deps-test.conf.js build: remove circular deps goldens (#60021) 2025-02-19 21:01:31 +00:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update license year (#59883) 2025-03-04 19:36:47 +00:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json build: migrate to using new jasmine_test (#62131) 2025-06-19 10:06:27 +02:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(compiler): remove empty empty string suffix from interpolation instructions (#60066) 2025-03-10 16:31:34 -07:00
tsconfig.json refactor: use zone.js from npm instead of packages/zone.js throughout repo (#61977) 2025-06-10 12:02:03 -07:00
tsec-exemption.json
types.d.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT