I might prototype such an event.
Hey @davidbaron, who's the best Mozilla person to rope into this discussion?
-
-
Replying to @slightlylate @NellWaliczek and
Probably @bz_moz or someone he delegates to.
1 reply 0 retweets 1 like -
Replying to @davidbaron @slightlylate and
smaug might also be good for this. In general, sending an event when navigation starts to the same origin as the currently loaded origin doesn't seem like a problem to me. There are issues to sort out wrt named targeting and whatnot, reentrancy, etc, etc.
1 reply 0 retweets 0 likes -
Replying to @really_bz @davidbaron and
Would sending an event for cross origin navigations be a problem?
1 reply 0 retweets 0 likes -
Replying to @jaffathecake @davidbaron and
There are issues. Certainly for cross-origin navigations using the browser UI you would not want to expose the URL in the event (something that I expect people want for the pushState use case described above) and you would not want to allow canceling either.
2 replies 0 retweets 1 like -
Replying to @really_bz @jaffathecake and
The idea is cross-origin navigation would never trigger the event. Strictly same-origin.
2 replies 0 retweets 0 likes -
-
Replying to @jaffathecake @slightlylate and
I think cross origin would be fine if the navigation was initiated by the document itself. You can already capture those by listening on clicks to cross origin links.
1 reply 0 retweets 3 likes -
Replying to @ElliottZ @slightlylate and
Agreed. The event should fire for navigations initiated by the client & targets the same client. A target=_blank link: nope. A cmd-clicked link: nope. User types in the address bar: nope. User regular-clicks a link without a target: yep.
2 replies 0 retweets 7 likes -
...to Origin Trials so we can get substantive feedback!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.