24 Commits

Author SHA1 Message Date
timeless%mozdev.org
e473aecf19 Bug 348627 O(N^2) or worse algorithm in error console
algorithm by neil, function per Seno.Aiko@gmail.com, whatever's left of the patch is by me :)
r=neil sr=neil


git-svn-id: svn://10.0.0.236/trunk@211878 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-17 01:59:37 +00:00
timeless%mozdev.org
180af87a17 Bug 348627 O(N^2) or worse algorithm in error console
r=bz sr=bz

Perhaps an explanation. String concatenation is a chance for garbage collection.
If you have unbounded input, this can be pretty bad. When you start running low
on memory, the garbage collector gets desperate and won't take shortcuts. Worst of
all, the original code generates one string of garbage every iteration starting with
the second or third.

This code uses a=[] to construct an array and a[n] to set the upper array boundary,
0 being the lower, and there are n slots between a[0] and a[n].
join() will build a string with n copies of the join argument, where n is the number                                                        of slots between between cells. So for:
a=[]; a[1]=''; there's 1 slot between [0] and [1]. The array's length is actually 2,
but the joined length will be 1.

While it is possible to use new Array(x), the behavior is different because the
array has length x and there are x-1 spaces between cells. This leads to code which
would be both much longer and harder to read. And definitely not particularly
intuitive.

The code used here otoh, while magical will hopefully require you to pause, think,
and quickly understand what's going on. If not, you paused long enough for this
bubble to appear and explain it to you :).


git-svn-id: svn://10.0.0.236/trunk@207376 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-14 22:03:34 +00:00
gavin%gavinsharp.com
b13e3183ed Fix bug 345327: "clear" button in the console doesn't work, regression from bug 322169, patch by Simon Bünzli <zeniko@gmail.com>, r=mconnor
git-svn-id: svn://10.0.0.236/trunk@203740 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-26 18:31:45 +00:00
gavin%gavinsharp.com
1270541bbe Fix whitespace nits to sync with xpfe, r=sparky
git-svn-id: svn://10.0.0.236/trunk@203207 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-20 00:42:01 +00:00
gavin%gavinsharp.com
09597af3f8 Bug 322169: Clear Private Data does not clear JS Console, patch by Simon Bünzli <zeniko@gmail.com>, r=mconnor, r=darin
git-svn-id: svn://10.0.0.236/trunk@203096 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 12:49:33 +00:00
doronr%us.ibm.com
ef5c410927 Bug 289927 - JS console shouldn't show line number if line is 0. r=mconnor
git-svn-id: svn://10.0.0.236/trunk@202686 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 16:41:50 +00:00
gavin%gavinsharp.com
c73e55fa39 Bug 332191: The Error Console doesn't remember its maximized state, patch by Simon Bünzli <zeniko@gmail.com>, r=mconnor
git-svn-id: svn://10.0.0.236/trunk@198993 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-04 06:57:20 +00:00
gavin%gavinsharp.com
fa5240b78f Bug 265871: rename JavaScript console to Error console, patch by Kurt <supernova_00@yahoo.com>, r=mconnor, ui-r=beltzner, sr=neil/bzbarsky
git-svn-id: svn://10.0.0.236/trunk@198424 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-25 21:22:32 +00:00
kairo%kairo.at
50907bec3e bug 334997 - add an id to toolkit console (to be able to overly a menubar into it), r+a1.8.1=mconnor
git-svn-id: svn://10.0.0.236/trunk@195150 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-22 10:38:49 +00:00
gavin%gavinsharp.com
5e95ab43b2 Bug 306223: Allow to easily filter errors by category, patch by Simon Bünzli <zeniko@gmail.com>, r=mconnor
git-svn-id: svn://10.0.0.236/trunk@193136 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-28 17:27:54 +00:00
gavin%gavinsharp.com
e1dc5a251a Bug 328932: Evaluating Components.classes in JS Console throws an exception, r=bzbarsky, sr=jag
git-svn-id: svn://10.0.0.236/trunk@191643 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-03 00:48:52 +00:00
mozilla.mano%sent.com
f4ea468afd Bug 296700 - Can't overlay the console's keyset/commandset. patch from Simon Bnzli <zeniko@gmail.com>, r=me.
git-svn-id: svn://10.0.0.236/trunk@179690 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-06 11:02:12 +00:00
aaronleventhal%moonset.net
612986ef10 Bug 302402. Some XUL links opening twice. r+a=mconnor
git-svn-id: svn://10.0.0.236/trunk@177169 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-05 16:11:10 +00:00
aaronleventhal%moonset.net
e0de08bd63 Bug 301398. Another round of link fixes. Now we're down to 2 link implementations. r+a=mconnor
git-svn-id: svn://10.0.0.236/trunk@176547 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-25 19:23:12 +00:00
bsmedberg%covad.net
e6a0f5c282 Bug 286450 - Make nsIScriptError.message display a formatted message with file/line information, for future logging purposes r=dbradley sr=bz
git-svn-id: svn://10.0.0.236/trunk@171379 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 11:34:59 +00:00
gerv%gerv.net
f58b146997 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@168638 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-01 17:07:35 +00:00
Stefan.Borggraefe%gmx.de
34bc6b4cc2 Bug 277342: JS Console behaving incorrectly with right-click on source file
r=mconnor, sr=neil


git-svn-id: svn://10.0.0.236/trunk@168537 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 00:26:02 +00:00
mconnor%myrealbox.com
675a1864f9 bug 240655, port neil's fix from 133606 to toolkit
git-svn-id: svn://10.0.0.236/trunk@157235 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-01 14:50:13 +00:00
bzbarsky%mit.edu
16f1f02320 Make getElementsByAttribute be an nsContentList so that it's got that live
DOMNodeList goodness that all nodelists should have.  Change some JS to not
break, and some other JS to be a little more efficient with the new world of
lazy listness.  Bug 240186, r=neil on the JS changes, r=jst on the content
changes, sr=jst


git-svn-id: svn://10.0.0.236/trunk@154907 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 01:51:32 +00:00
ben%bengoodger.com
0947d91a21 Ensure that window closing that would cause the app to quit goes through the same codepath as an actual application quit. (The bug was that you would get the download cancel confirmation prompt when shutting down via File->Exit, but not when you closed all windows)
git-svn-id: svn://10.0.0.236/trunk@149867 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-01 05:40:41 +00:00
chanial%noos.fr
32ea2705a6 sync the console with the suite
git-svn-id: svn://10.0.0.236/trunk@148273 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 08:00:39 +00:00
chanial%noos.fr
8c0c7e1adc Console cleanup: it is now independent from communicator.
Adding access keys and shortcut to focus the command line


git-svn-id: svn://10.0.0.236/trunk@138767 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-02 04:15:09 +00:00
chanial%noos.fr
93040f0d97 console.css cleanup
git-svn-id: svn://10.0.0.236/trunk@138759 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-01 15:27:39 +00:00
chanial%noos.fr
efb45ba9c7 Move the js console and dependencies as new extensions in toolkit/components.
NPOB


git-svn-id: svn://10.0.0.236/trunk@138755 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-01 08:07:13 +00:00