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

           Summary: allow wikibits.js to load without any required globals
           Product: MediaWiki
           Version: 1.16-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
            Blocks: 2114


Currently wikibits.js breaks (causes JS errors) anytime someone has no
javascript globals (no call to Skin::makeGlobalVariablesScript). There are
currently 3 globals fetched on the assumption that they are defined. It would
be nice to have it not puke and die (and not define any mediawiki js functions
at all, and often abort all further javascript on a page) when/if they're
missing. 

This can happen when someone is using a custom skin that wasn't upgraded along
with MediaWiki (either they recently upgraded, or grabbed a skin not meant for
the version they have). Several times people have complained of javascript
problems with their skin, due to their skin sucking. It wouldn't be so bad,
except it breaks /all/ javascript for them, until they can either fix the skin
themselves, or find the maintainer (if one exists) to fix it.

Also, wikibits.js might be a useful js to include with action=render for things
like custom mini static dumps, and such.


-- 
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