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

       Web browser: ---
             Bug #: 42011
           Summary: "document.write() call ignored from an asynchronically
                    loaded external script"
           Product: MediaWiki
           Version: 1.21-git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: ResourceLoader
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


(Possibly related or same thing: bug 31895)

As reported to me on pl.wiki[1], ResourceLoader's addScript() function
sometimes uses the document.write variant after the document is already loaded.
Firefox ignores this (to avoid clearing the document), resulting in scripts not
loading. (Or at least that's how I interpret the message.)

Full error message (in Polish) was:
[15:07:34.698] Zignorowano wywołanie document.write() z asynchronicznie
pobranego skryptu zewnętrznego. @
http://bits.wikimedia.org/pl.wikipedia.org/load.php?debug=false&lang=pl&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20121105T173042Z:152

The only thing in that code mentioning document.write() is addScript(). The
document.write way is marked with a FIXME and apparently half-broken - why are
we even using it?

[1]
https://pl.wikipedia.org/w/index.php?title=Dyskusja_wikipedysty:Matma_Rex&oldid=33447258#Odp:Problem_z_disFixerem

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