superfeedr / subtome

A universal Subscribe/Follow button.
http://subtome.com
MIT License
167 stars 32 forks source link

When clicking the #demo button on https://www.subtome.com nothing happens #69

Closed maximevaly closed 10 years ago

maximevaly commented 10 years ago

With Firefox 26.0 on Debian (LMDE). The "subscribe" button works on http://blog.superfeedr.com/. Everything work with Chrome 28.

There is no error in the console, "load.js" is loaded correctly, execution stops on breakpoint line 96

})();

but not line 3

  if (!Array.prototype.indexOf) {
julien51 commented 10 years ago

Thanks Maxime. I'll try to debug that in the coming hours.

julien51 commented 10 years ago

This is extremely annoying. I am indeed able to reproduce, but I'm don't understand what's going on. the iframe is loaded just fine, but no code inside it is executed and there is no log message in the console :/ any idea?

julien51 commented 10 years ago

I have now filled an issue with Firefox's Bugzilla. Let's hope somebody comes up with a solution!

julien51 commented 10 years ago

So, the amazing @jsherer found a work around: adding wwwin front of subtome.com in load.js seems to make things work. It probably has little to no impact given that we redirect all traffic to www.subtome.com anyway. Please try again if you get a minute, but make sure you flush the cached content in Settings > Network.

I'll keep that issue open though because I want to find the real problem and maybe fix it for realz.

maximevaly commented 10 years ago

It works, congrats! :)

julien51 commented 10 years ago

Unfortunately, we had to revert that temporary fix because it was generating more issues (see #71) than it solved. So we're back to square 1.

julien51 commented 10 years ago

Looks like we found another solution. @ymschaap is the hero here. I'll quote him:

Regarding your mozilla bug. It seems to be an issue with Mozilla and caching (it clashed?). Since you load an #-ed url in the iframe, which is the same as the requesting document. I solve the mozilla bug if I load: https://www.subtome.com/?pizza#/ That forces mozilla to have two version, first pull in the on /?pizza version, and next the /#/ version.

So for now we're loading /?subs/#/ until Firefox gets fixed.