mediawiki-extensions-Visual.../modules/ve-mw
Roan Kattouw ea3fccccaa Reduce complexity around onbeforeunload handler
We used to attempt to not break Firefox's bfcache, but this
didn't really work very well, and it's not clear that avoiding
bfcache breakage is even a good idea. It's more sensible and
consistent to deliberately break bfcache while VE is active.
On top of that, the Firefox people believe that our trick
shouldn't even have worked to begin with:
https://bugzilla.mozilla.org/show_bug.cgi?id=1102664

Because the onbeforeunload handler is removed when VE
is deactivated, bfcache still works if you first click
Read, then navigate away.

Also clean up the management of the unload handler, using
addEventListener() and removing the return value fallback
code that is needed for beforeunload but not unload.
For beforeunload this is harder to clean up because
the addEventListener()-based API for returning a value
isn't consistent across browsers.

Change-Id: Ie4fe9ea3a59a54ba462733aa5e42bfc0ed5b15eb
2015-03-03 16:36:22 +01:00
..
ce Use mw.Api to run requests rather than our own stuff in ve.init.mw.Target 2015-02-25 01:57:22 +00:00
dm Fix transfer of reference contents from removed reference 2015-03-02 22:26:05 +01:00
i18n Merge "Promote the Language tool Beta Feature to always-on status" 2015-03-02 23:58:27 +00:00
init Reduce complexity around onbeforeunload handler 2015-03-03 16:36:22 +01:00
tests [BrowserTest] Update the Edit tab scenario 2015-02-26 12:59:34 +02:00
ui Merge "MWCategoryWidget: Remove entries from this.categories when appropriate" 2015-02-28 01:00:15 +00:00