https://bugzilla.wikimedia.org/show_bug.cgi?id=22680

--- Comment #5 from Roan Kattouw <[email protected]> 2010-06-07 11:55:35 
UTC ---
(In reply to comment #4)
> For details please see
> https://developer.mozilla.org/En/Using_Firefox_1.5_caching
> 
> Pagehide fires before unload, like the beforeunload event, and allows you to
> stop the page leave.
> 
Actually, no, it doesn't allow you to stop anything. I've tried using
event.preventDefault() and return false in a pagehide handler in Firefox 3.6,
and they don't have any effect. The HTML 5 spec draft that includes the
pagehide event also explicitly says it's uncancelable.

Also, the documentation you link to says hooking the unload event breaks
caching, but we only use the *before*unload event, which isn't mentioned. In
fact, page caching seems to work fine for me: on a regular edit page, the
content of the textarea is restored after clicking OK in the edit warning and
going back.

If wikEd has issues with this despite all that, it should probably disable
EditWarning. This is not cleanly possible just yet, but will be soon per bug
23807.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to