resourceloader: Remove elaborate dom-based console shim
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 9 May 2018 17:27:44 +0000 (18:27 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 9 May 2018 17:31:45 +0000 (18:31 +0100)
commitff791194c251c832038200b9cc495ef4bf9e191b
tree3fc9fcd37b798c0e6db22db082703e8202a2a785
parente52b056322ec74b41484401f37501014bbfe1dcb
resourceloader: Remove elaborate dom-based console shim

This was a hack loosely inspired by Firebug Lite, that essentially
created a footer toolbar like the one from "mediawiki.debug", and
write console messages to it, if the browser doesn't have a console
natively.

We don't currently support any browsers in JS-mode that don't have
a console feature of some kind.

I'm keeping the file for now, because it is still useful for
mw.log (not to be confused with mw.log.warn or mw.log.error) to
not do anything in production mode by default. This because there
can be significant overhead from writing to real console object,
regardless of the fact that it isn't visible in browsers by default.

Test Plan:
* Both before and after this commit,
  - On a normal page view, `mw.log("msg")` does nothing when run
    from the browser console.
  - On a page with ?debug=true, `mw.log("msg")` acts
    like `console.log("msg")` would.

Bug: T192623
Change-Id: Ifc8dd91f473c9235e1d4e27c202c97802530a272
resources/src/mediawiki/mediawiki.log.js