MozillaZine

[Ext] Console² 0.9a2 Pre-Release

Announce and Discuss the Latest Theme and Extension Releases.
Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 15th, 2011, 8:16 am

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

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 15th, 2011, 8:19 am

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

therube

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

Post Posted December 15th, 2011, 12:50 pm

(Screenshots for those who have not put in 0.9dev of yet?)
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

Post Posted December 15th, 2011, 9:18 pm

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

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 16th, 2011, 4:40 am

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

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 16th, 2011, 4:43 am

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

Post Posted December 16th, 2011, 6:04 am

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

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 16th, 2011, 9:18 am

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

Post Posted December 16th, 2011, 9:44 am

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

Post Posted December 16th, 2011, 2:47 pm

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

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 16th, 2011, 9:03 pm

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

therube

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

Post Posted December 17th, 2011, 6:35 am

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

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 17th, 2011, 8:45 am

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

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 17th, 2011, 9:03 am

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

Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted December 19th, 2011, 3:53 am

Someone wanted a screenshot:

Image

Phil

Return to Extension/Theme Releases


Who is online

Users browsing this forum: Google Adsense [Bot] and 4 guests