[Ext] Console² 0.9a2 Pre-Release

Announce and Discuss the Latest Theme and Extension Releases.
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

[Ext] Console² 0.9a2 Pre-Release

Post by Philip Chee »

http://downloads.mozdev.org/console2/console2-0.9dev.xpi

This is a version for testing. Please kick the tires and let me know if something is broken.

Changes since v0.8:
  • [new] Message FIFO limit is now controlled by a hidden preference "extensions.console2.max-errors" currently 1000. (Patch by Kris Maglione).
  • [new] Enable blocklist domains from resource:// URLs
    [new] Enable filter for "resource://" URLs
    [fix] Alias resource:/// to resource://app/ to allow these resource urls to be filtered and blocklisted.
    (Patches by titoBouzout).
  • [fix] Use white-space: pre-wrap for the console message descriptions to allow newlines and formatted messages (Patch by titoBouzout).
  • [new] Add support for Komodo alphas appversion >= 6.9 (Patch by titoBouzout).
  • [fix] css problems with textonly toolbarbuttons in icon mode toolbars.
  • [new] Show timestamps if available from nsIScriptError/nsIScriptError2.

Phil
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

Re: [Ext] Console² 0.9a2 Pre-Release

Post by Philip Chee »

Philip Chee wrote:
  • [new] Show timestamps if available from nsIScriptError/nsIScriptError2.

I'm not sure whether to place the timestamp on the left or right. Also for non en-US locales, do the format of the timestamps look OK? Currently I'm using the following code:

Code: Select all

var ts = new Date(aMessage.timeStamp);
var tss = ts.toTimeString();
tss = ts.toDateString() + " " + tss.substr(0, tss.indexOf(" "));
row.setAttribute("timestamp", tss);

Phil
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: [Ext] Console² 0.9a2 Pre-Release

Post by therube »

(Screenshots for those who have not put in 0.9dev of yet?)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
johnjinsf
Posts: 61
Joined: February 20th, 2005, 7:57 am
Location: Melbourne, Australia

Re: [Ext] Console² 0.9a2 Pre-Release

Post by johnjinsf »

I just installed this pre-release and when I have "Show Timestamps" selected, each line in the error console shows "INVALID DATE INVALID" on the right hand side.

I am running Firefox 8.0 and Thunderbird 8.0 on a Toshiba NB200 notebook under Fedora 16 with XFCE Desktop
Toshiba Notebook NB200 2GB Ram
Linux - Fedora 19 with MATE Desktop
Firefox 26.0 Thunderbird 24.1
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

Re: [Ext] Console² 0.9a2 Pre-Release

Post by Philip Chee »

sfchains wrote:I just installed this pre-release and when I have "Show Timestamps" selected, each line in the error console shows "INVALID DATE INVALID" on the right hand side.

I am running Firefox 8.0 and Thunderbird 8.0 on a Toshiba NB200 notebook under Fedora 16 with XFCE Desktop

:shock: I'll look into this. I wonder if it works in Firefox 9.0b or 10a2. What Firefox locale are you using?

Phil
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

Re: [Ext] Console² 0.9a2 Pre-Release

Post by Philip Chee »

What does the following evaluate to?

Code: Select all

("nsIScriptError2" in Components.interfaces)

Phil
johnjinsf
Posts: 61
Joined: February 20th, 2005, 7:57 am
Location: Melbourne, Australia

Re: [Ext] Console² 0.9a2 Pre-Release

Post by johnjinsf »

general.useragent.locale = en-US

("nsIScriptError2" in Components.interfaces) = true

userAgent/Build ID = Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0 - Build ID: 20111108090109

Thanks

John
Toshiba Notebook NB200 2GB Ram
Linux - Fedora 19 with MATE Desktop
Firefox 26.0 Thunderbird 24.1
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

Re: [Ext] Console² 0.9a2 Pre-Release

Post by Philip Chee »

sfchains wrote:("nsIScriptError2" in Components.interfaces) = true
userAgent/Build ID = Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0 - Build ID: 20111108090109

Thanks!

Sigh. Firefox 8 has nsIScriptError2 but doesn't have timeStamp. Firefox 9 does. #-o

I've updated the XPI. Please download again. The time timestamps should not be visible at all in Firefox < 9.
http://downloads.mozdev.org/console2/console2-0.9dev.xpi

Phil
Last edited by Philip Chee on December 16th, 2011, 9:52 am, edited 1 time in total.
makondo
Posts: 1961
Joined: October 18th, 2007, 5:26 pm
Location: Rocky Mountains

Re: [Ext] Console² 0.9a2 Pre-Release

Post by makondo »

Thanks, Phil! I have Fx 9b4 and it all seems to be working fine so far.
johnjinsf
Posts: 61
Joined: February 20th, 2005, 7:57 am
Location: Melbourne, Australia

Re: [Ext] Console² 0.9a2 Pre-Release

Post by johnjinsf »

Thanks Phil

That cleared up the date message.

John
Toshiba Notebook NB200 2GB Ram
Linux - Fedora 19 with MATE Desktop
Firefox 26.0 Thunderbird 24.1
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

Re: [Ext] Console² 0.9a2 Pre-Release

Post by Philip Chee »

And Firefox 11 (or maybe Firefox 10 - I've lost count) will have timeStamp in nsIScriptError as well as nsIScriptError2. Yay for unfrozen interfaces and rapid release ](*,)

Phil
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: [Ext] Console² 0.9a2 Pre-Release

Post by therube »

If you copy/paste a message into a (dumb) text document (like Notepad), there is no spacing between the Date/Time & the start of the message.

Though it looks OK if pasted here.

So guessing it has to do with the EOL character being used?

Ditto if you copy/paste multiple messages, they all end up as a single stream with no intervening "----------".

Code: Select all

Sat Dec 17 2011 08:06:35
Warning: WARN addons.updates: Update manifest for modern@themes.mozilla.org did not contain an updates property
Source file: resource://gre/modules/AddonUpdateChecker.jsm
Line: 305


Yes, that's it, $0A$.


Image
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

Re: [Ext] Console² 0.9a2 Pre-Release

Post by Philip Chee »

Philip Chee wrote:And Firefox 11 (or maybe Firefox 10 - I've lost count) will have timeStamp in nsIScriptError as well as nsIScriptError2.

This will be in Firefox 11 actually.

Phil
User avatar
Philip Chee
Posts: 6475
Joined: March 1st, 2005, 3:03 pm
Contact:

Re: [Ext] Console² 0.9a2 Pre-Release

Post by Philip Chee »

therube wrote:If you copy/paste a message into a (dumb) text document (like Notepad), there is no spacing between the Date/Time & the start of the message.

Though it looks OK if pasted here.

So guessing it has to do with the EOL character being used?

http://www.sitepoint.com/line-endings-in-javascript/
Summary: Firefox uses "\n" (LF) on all platforms. DOS and Windows use "\r\n" (CRLF). An added complication is that MSIE tries to guess what you want and sometimes guesses wrong so sometimes you get back LF and sometimes CRLF. :?

Phil
Locked