angular/packages/zone.js/lib/common
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
..
error-rewrite.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
events.ts fix(zone.js): store remove abort listener on the scheduled task (#56160) 2024-06-04 17:29:05 +00:00
fetch.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
promise.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
queue-microtask.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
rollup-error-rewrite.ts refactor(zone.js): update Zone bundles to call patch* functions (#53443) 2024-03-15 18:11:33 -07:00
rollup-fetch.ts refactor(zone.js): update Zone bundles to call patch* functions (#53443) 2024-03-15 18:11:33 -07:00
timers.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
to-string.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:07 -07:00
utils.ts fix(zone.js): allow enabling default beforeunload handling (#55875) 2024-06-12 13:06:21 -07:00