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

       Web browser: ---
             Bug #: 34276
           Summary: "Invalid argument" error when mw.util.addCSS is used
                    and various modules are loaded
           Product: MediaWiki
           Version: (wikimedia-deployment)
          Platform: All
               URL: http://pt.wikibooks.org/w/index.php?title=Test&action=
                    edit&debug=1&uselang=en
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Javascript
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: mybugs.m...@gmail.com
                CC: krinklem...@gmail.com, tpars...@wikimedia.org
    Classification: Unclassified


If I go to
http://pt.wikibooks.org/wiki/Especial:Prefer%C3%AAncias?uselang=qqx#mw-prefsection-gadgets
and enable this first group of gadgets:
[1] IEbug
[2] Edittools
[3] Correlatos
[4] ExpandAllOnPrint
[5] FeedbackHighlight
[6] rev-e-avisos
[7] ProgressLevel

or this second group of gadgets: [1], [2], [3], [4] and
[8] BookGadgets

and open the page
http://pt.wikibooks.org/w/index.php?title=Test&action=edit&debug=1&uselang=en
using IE9, I get the error
----
Line: 170
Error: Invalid argument.
----

The line 170 is this part of the definition of mw.util.addCSS:
s.styleSheet.cssText = text; // IE
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/mediawiki/mediawiki.util.js?view=markup#l164

The error disapears if
* I disable any of the gadgets in the first group above (and keep the other 6
enabled) or
* I disable any of the gadgets in the second group above (and keep the other 4
enabled)

The code of [[MediaWiki:Gadget-IEbug.js]] is just
mw.util.addCSS( 'a { color: red; }' );
mw.util.addCSS( 'a { color: blue; }' );
and was created to try to find the cause of the bug, which was happening on
https://pt.wikibooks.org/wiki/MediaWiki:Gadget-Internet_Explorer.js
(which was copied from [[MediaWiki:Common.js]])

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to