angular/packages/zone.js/lib
arturovt de2ed152a0 fix(zone.js): allow enabling default beforeunload handling (#55875)
Prior to this commit, when zone.js was included, it wasn't possible to handle `beforeunload`
events correctly if event handlers returned strings to prompt the user.

With this change, we introduce a global configuration flag,
`__zone_symbol__enable_beforeunload`, to allow consumers to enable the default
`beforeunload` handling behavior.

This flag is necessary to prevent any breaking changes resulting from this modification.
The previous attempt to fix it caused a large number of failures in G3. Hence, we're
hiding that fix behind the configuration flag.

Closes #47579

PR Close #55875
2024-06-12 13:06:21 -07:00
..
browser refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
common fix(zone.js): allow enabling default beforeunload handling (#55875) 2024-06-12 13:06:21 -07:00
extra refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
jasmine refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
jest refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
mix refactor(zone.js): update Zone bundles to call patch* functions (#53443) 2024-03-15 18:11:33 -07:00
mocha refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
node fix(zone.js): add missing APIs to Node.js fs patch (#54396) 2024-05-03 08:03:25 -07:00
rxjs refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
testing refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
zone-spec refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
BUILD.bazel refactor(zone.js): package Zone *.d.ts files (#53443) 2024-03-15 18:11:34 -07:00
zone-global.d.ts fix(zone.js): remove global declaration (#37861) 2020-10-23 15:19:49 -07:00
zone-impl.ts refactor(core): clean up clang comments and workarounds (#55750) 2024-05-13 11:10:36 -07:00
zone.api.extensions.ts refactor(zone.js): change from scripts to modules (#53445) 2024-01-09 13:20:50 -08:00
zone.configurations.api.ts fix(zone.js): allow enabling default beforeunload handling (#55875) 2024-06-12 13:06:21 -07:00
zone.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00