Last modified: 2014-07-11 21:57:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57683, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55683 - Bugs caught by mw.loader.inspect() (tracking)
Bugs caught by mw.loader.inspect() (tracking)
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: tracking
Depends on: uls-diet 58192 65988 55550 55684 56107 67891
Blocks: tracking
  Show dependency treegraph
 
Reported: 2013-10-14 03:21 UTC by MZMcBride
Modified: 2014-07-11 21:57 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2013-10-14 03:21:25 UTC
A tracking bug for bugs caught by mw.loader.inspect(). Related: <http://lists.wikimedia.org/pipermail/wikitech-l/2013-October/072378.html>.
Comment 1 Nemo 2014-05-31 10:43:39 UTC
(In reply to MZMcBride from comment #0)
> A tracking bug for bugs caught by mw.loader.inspect(). Related:
> <http://lists.wikimedia.org/pipermail/wikitech-l/2013-October/072378.html>.

Feature is still undocumented: https://www.mediawiki.org/w/index.php?title=Special:Search&search=%22mw.loader.inspect%28%29%3B%22&fulltext=Ricerca&profile=all
Lately I only get "undefined", am I doing something wrong?
Comment 2 MZMcBride 2014-05-31 14:10:49 UTC
(In reply to Nemo from comment #1)
> Feature is still undocumented:
> https://www.mediawiki.org/w/index.php?title=Special:Search&search=%22mw.
> loader.inspect%28%29%3B%22&fulltext=Ricerca&profile=all
> Lately I only get "undefined", am I doing something wrong?

Copying Ori.
Comment 3 Ori Livneh 2014-06-01 05:38:18 UTC
(In reply to Nemo from comment #1)
> (In reply to MZMcBride from comment #0)
> > A tracking bug for bugs caught by mw.loader.inspect(). Related:
> > <http://lists.wikimedia.org/pipermail/wikitech-l/2013-October/072378.html>.
> 
> Feature is still undocumented:
> https://www.mediawiki.org/w/index.php?title=Special:Search&search=%22mw.
> loader.inspect%28%29%3B%22&fulltext=Ricerca&profile=all
> Lately I only get "undefined", am I doing something wrong?

mw.loader.inspect() is a function that prints to the console but doesn't return a value, so it evaluates to undefined. It's no different than console.log() in that way. I'm not sure why you're not getting the rest of the output, though. It works fine for me (just tested on Chrome 37, Firefox 32, Safari 7 on OS X). As for documentation, help? :)
Comment 4 Nemo 2014-06-01 08:12:10 UTC
Weird, I can't get it to work on Firefox 29.0.1 with or with extensions, logged in or not: I only get "ReferenceError: mw is not defined" as output.
But I tweaked some settings and it now works on Chromium, so it's not that important. I'll add some docs when I figure it out a bit more.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links