Re: [whatwg/dom] intercepting same-document navigation caused by a user' direct address input in browser address bar (Issue #1275)

I think I had missed something before posting this issue: The spec explicitly says the `navigate` ["will not fire for location bar-initiated navigations"](https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigateevent).

I totally understand firing a `navigate` event for cross-document navigation for location bar-initiated navigation is unacceptable for security reasons.

But it's not necessary to cut it all, I think it's reasonable to fire a `navigate` event for same-document navigation. Or is there any reason why it is necessary to disallow `navigate` events for same-document navigations?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1275#issuecomment-2041017823
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1275/2041017823@github.com>

Received on Saturday, 6 April 2024 08:35:25 UTC