Probably @bz_moz or someone he delegates to.
-
-
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 @bz_moz 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 @bz_moz 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 -
Replying to @jaffathecake @ElliottZ and
How about "user edits the address bar to a same-origin url"? Think changing the tweet id on twitter. What are the exact use cases this is trying to address? Just capturing link clicks is not too hard, but it sounds like people have complicated logic to capture ... what?
1 reply 0 retweets 1 like -
Replying to @really_bz @bz_moz and
I don't think it should fire the event if the user edits the address bar. Monitoring all page-triggered navigations is hard, especially if some are the result of setting location.href, some are history.back etc etc.
3 replies 0 retweets 1 like
So is this a situation where you want to control the data delivery but there are libraries or scripts you have limited control over doing stuff that you would like to intercept? That seems pretty plausible...
-
-
Replying to @really_bz @bz_moz and
Pretty much. They might even be scripts you control, but it'd be pretty easy to miss one of them.
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Replying to @really_bz @bz_moz and
User typing into address bar might be ok to omit, but I don't think you can have a History API replacement that doesn't handle back button.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.