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

           Summary: Loading of Javascript doesn't work in embedded special
                    pages
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: http://discoursedb.org/wiki/RunQuery_embed_test
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Special pages
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: yaro...@gmail.com


It appears that special pages defined as inheriting from
'IncludableSpecialPage', and then embedded within another page, don't get their
Javascript loaded correctly. The extension Semantic Forms defines such a
special page, 'RunQuery', and you can see the problem when trying to press the
button here:

http://discoursedb.org/wiki/RunQuery_embed_test

Here, by contrast, is the same page when not embedded:

http://discoursedb.org/wiki/Special:RunQuery/Author

If you look at the HTML source for the two pages, in the former page the
Javascript resources that the special page loads are missing.

This problem seems to have been in effect since at least MediaWiki 1.16.

I looked into it a little, and it looks like the problem comes about because,
when the special page is embedded, the OutputPage object that gets displayed to
the screen is different from the $wgOut that the special page adds its
Javascript to.

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