@bz_moz yo! I had some more time to look at the scroll issue. Even if I set body height inside the "popstate" callback, scroll position is not restored. I updated the example: http://scroll-back-bug.surge.sh/
It also logs `innerHTML`, which oddly enough is different in FF versus chrome.
I see identical innerHTML in Firefox and Chrome there. Just setting the height likely runs into https://bugzilla.mozilla.org/show_bug.cgi?id=1442958 … which we should fix in Gecko. Does doing a layout flush after setting the height (before returning from popstate handler) make things work?
-
-
Hey Boris, not sure what I was looking at, sorry you're right that innerHTML is the same. But yeah, that certainly seems to be the bug I'm bumping into. If I do anything that causes a layout flush it works.
Thanks. 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.