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

       Web browser: ---
            Bug ID: 55669
           Summary: Script includes should check window.mw
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ResourceLoader
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

The HTML includes lines like

<script
src="https://bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&lang=en&modules=user.groups&skin=vector&user=John+Vandenberg&version=20131012T104928Z&*";></script>

load.php returns JS which starts with

mw.loader.implement("user.groups",function(){...}

However object 'mw' doesnt exist when the browser fails the isCompatible test
here:

https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/resources%2Fstartup.js

load.php should return JS which starts with

if (window.mw) { mw.loader.implement("user.groups",function(){...} }

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