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

       Web browser: ---
             Bug #: 33566
           Summary: WikiEditor's beforeunload logic should be rewritten to
                    play nicely with other handlers
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikiEditor
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


This is a followup to bug 33497.

On further consultation with some JavaScript developers, WikiEditor seems to be
doing its beforeunload handler incorrectly, or at least not optimally.  The
style of:

window.onbeforeunload = function() {
  return something();
};

assumes there is only one such handler on beforeunload, and will clash with
other beforeunload handlers in extensions, such as this style:

$(window)
    .bind('beforeunload', myFunc);

WikiEditor's logic should be rewritten to play nicely with other handlers.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
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