Firefox Mobile and window.console Support

Desktop Firefox added native support for a subset of the window.console API. It’s a subset in that only the following API methods are supported:

  • console.log(arguments)
  • console.info(arguments)
  • console.warn(arguments)
  • console.error(arguments)

Also, the Firebug string formatting features are not supported yet.

Last night we turned on basic support in Firefox Mobile too. It’s basic in the sense that the window.console is merely forwarded to the Error Console.

3 Comments

  1. Tweets that mention Mark Finkle’s Weblog » Firefox Mobile and window.console Support -- Topsy.com said,

    January 7, 2011 @ 7:31 pm

    [...] This post was mentioned on Twitter by Planet Mozilla. Planet Mozilla said: Mark Finkle: Firefox Mobile and window.console Support: Desktop Firefox added native support for a subset of the… http://bit.ly/dXSLWc [...]

  2. Michael(tm) Smith said,

    January 8, 2011 @ 12:55 am

    Extremely cool. Is there an open bug for tracking further refinements to this? (adding support for additional methods — assert, dir, etc.)

  3. Mark Finkle said,

    January 8, 2011 @ 1:03 am

    I couldn’t find any bugs filed for that yet. I am working on an add-on that would support more methods in Mobile Firefox.

RSS feed for comments on this post