MC1449170 Retirement of default unload event support
Primary service: Edge
ChangePilot summary
- Microsoft Edge is changing the default behavior of the unload event so pages will no longer run unload event handlers by default unless explicitly allowed by Permissions Policy.
- Organizations are affected if internal, public, or third-party web apps used in Edge rely on unload handlers for saving data, cleanup, telemetry, or session-end notifications.
- The change also affects WebView2-based applications and managed Microsoft Edge environments where unload behavior is relied upon.
- IT should identify affected apps, validate behavior without unload, and migrate to modern alternatives such as visibilitychange and pagehide.
- A temporary Microsoft Edge policy is available to preserve current behavior while applications are updated.
What it means for you
What admins need to do
Inventory web apps and WebView2 apps that depend on unload handlers, test them in Edge without relying on unload, and update code to use visibilitychange/pagehide and other modern lifecycle APIs. If needed, temporarily enable the ForcePermissionPolicyUnloadDefaultEnabled policy or apply a site-level Permissions Policy exception while remediation is underway. Communicate with application owners and support teams so they can identify and prioritize any business-critical apps.
Impact on users
If the application is updated or temporarily exempted before rollout, users should not experience disruption. IF this is not done users of affected websites or applications may see changes in behaviour when navigating away from a page, including lost save/clean-up actions or broken session-end logic if the app was built around unload events.
If you miss it
If this change is missed, business-critical web apps may stop performing expected actions when users leave a page, such as saving data, releasing resources, or sending telemetry. That can lead to data loss, broken workflows, help desk incidents, and reduced application reliability. IT may also lose time responding after users notice the issue, and teams may need emergency code or policy changes to restore functionality.
- Admin controls available
- Yes
History
Recorded changes
No changes recorded since ChangePilot first saw this post.
Microsoft message
If your websites or applications do not use unload event handlers (unload), the impact described below does not apply and no action is required.
[What and why]
Microsoft Edge is changing the default behavior of the web platform unload event as part of the ongoing retirement of unload event handlers.
Today, unload event handlers are allowed by default. As this change rolls out, pages will no longer run unload event handlers unless the site explicitly permits them through Permissions Policy. Organizations should work with application owners to migrate their applications to modern lifecycle events and APIs designed for these scenarios.
The unload event is not a reliable way to save data, perform cleanup operations, or indicate that a user session has ended because browsers and operating systems can suspend or terminate pages without firing it. It can also prevent pages from using the back/forward cache, which may affect navigation performance.
[Rollout schedule]
- Worldwide, GCC, GCC High, DoD: Beginning in early September 2026 and expected to complete in October 2026
[Impact on your organization]
Who is affected
Organizations may be affected if internal websites, public websites, or third-party web applications that users depend on use unload event handlers to provide required functionality.
Users are affected only when a website or application depends on unload event handlers and does not provide an alternative implementation.
Platforms and services
- Microsoft Edge
- Websites and web applications opened in Microsoft Edge
- WebView2-based applications
- Managed Microsoft Edge environments
What will happen
Websites and applications that rely on unload event handlers may experience functional changes when the handlers no longer run by default.
Common scenarios include applications that use unload handlers to:
- Save user data
- Release resources
- Send analytics or telemetry
- Notify services that a session has ended
Organizations can temporarily preserve the current behavior while applications are updated by enabling the ForcePermissionPolicyUnloadDefaultEnabled Microsoft Edge policy. This policy is intended only as a migration aid while application owners update affected applications. A website can still apply a more restrictive Permissions Policy configuration.
[Action required and recommendations]
Complete the following actions by September 6,2026:
- Identify internal and business-critical web applications that register unload event handlers, including handlers introduced through third-party libraries.
- Validate application behavior without relying on unload event handlers.
- Use Microsoft Edge DevTools to identify pages that are blocked from using the back/forward cache because of unload listeners.
- Migrate data-saving scenarios to the visibilitychange event and use transitions to the hidden state as the final reliable opportunity to preserve application state.
- Use the pagehide event when code must respond to navigation away from a page while remaining compatible with the back/forward cache.
- Update internal development standards, support documentation, and testing guidance.
- Notify application owners, support teams, and affected users of any application-specific changes.
If an application cannot be updated before rollout completion, site owners can temporarily enable unload support through Permissions Policy. Administrators can also use the ForcePermissionPolicyUnloadDefaultEnabled Microsoft Edge policy to retain the previous default behavior while migration work is completed. These controls are intended to provide migration time and should not be considered permanent solutions. A website can still apply a more restrictive Permissions Policy configuration.
Learn more
- ForcePermissionPolicyUnloadDefaultEnabled | Microsoft Edge | Microsoft Learn
- Document: visibilitychange event | Mozilla
- Window: pagehide event | Mozilla
[Compliance considerations]
No compliance considerations identified. Review as appropriate for your organization.
More information
Details
Platforms
- Web
- Desktop
Services
- Edge
Category
- Plan for change
Microsoft tags
- Admin Action
- Retirement
- User Adoption