Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Add to handling the preventing navigation events - #156

Merged
jihyerish merged 1 commit into
WICG:masterfrom
jihyerish:polyfill-handle-prevent-navevents
Feb 25, 2019
Merged

jihyerish merged 1 commit into
WICG:masterfrom
jihyerish:polyfill-handle-prevent-navevents

Conversation

@jihyerish

Copy link
Copy Markdown
Collaborator

The spec indicates that the navigation event (navbeforefocus, navbeforescroll, navnotarget) can be canceled. But the previous polyfill didn't provide canceling the event.

After merging this PR, the polyfill can provide preventing the events.
You can check it works properly with the sample demo/sample/api_prevent_navigate_event.html.

The spec indicates that the navigation event (navbeforefocus, navbeforescroll, navnotarget) can be canceled.
But the previous polyfill didn't provide canceling the event.

After this change, it can provide preventing the events.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant