Future-proof redirection to fragments in Gecko
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 19 Mar 2010 20:45:29 +0000 (20:45 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 19 Mar 2010 20:45:29 +0000 (20:45 +0000)
commitfbe139e9c057c597ccae84194b9c28967e60e812
tree456b69c85a928289051b22ed9d057383efc39630
parente9186e2ec3ef4bcbf2c018cb558c87cecda1290b
Future-proof redirection to fragments in Gecko

Previously, in Gecko we wouldn't set document.location.hash at all until
the page loaded.  This means that if they fix their bug, so setting
document.location.hash to an id that doesn't yet exist (but will before
load is finished) works properly, we still would only jump to the right
place onload, not ASAP.  Now we'll jump to the right place ASAP, and
then jump again on load, which is better (although still annoying if the
gap ends up being perceptible).

Too bad I can't think of a way to feature-test this.
RELEASE-NOTES
skins/common/wikibits.js