mtrpcic / pathjs

Simple, lightweight routing for web browsers
1.1k stars 178 forks source link

popstate not triggered in Safari 5.0.5 (or WebKit < 534.10) #22

Open robwalch opened 12 years ago

robwalch commented 12 years ago

Discovered this issue on OS X Leopard with Safari 5.0.5. The bug occurs as long as any other network traffic is active on the page (common with Facebook or Google Analytics API). Here's an in-depth description of the issue and a JQuery work around. I'm going to use almost the same work around in my site (regrettably) rather than modify PathJS (0.8.3). Hope this info is useful and we can come up with a better solution in PathJS.

http://stackoverflow.com/questions/6037049/why-isnt-popstate-triggered-in-safari-when-an-iframe-is-loading

mtrpcic commented 12 years ago

I'm reluctant to add a fix for this to the PathJS core for two reasons:

1) I can't reproduce this myself (yet), and 2) It adds bloat to the library to handle a Very minimal case.

I'll continue trying to reproduce this, but this appears to be a bug with WebKit (a very specific version, and only under specific circumstances).