Commit Graph

39 Commits

Author SHA1 Message Date
mozilla.mano@sent.com
b161ae9326 Bug 366479 - [mac] Copy command is broken in the JS console. r=gavin,neil. sr=neil. 2007-03-22 16:28:22 -07:00
hg@mozilla.com
05e5d33a57 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00
jwalden%mit.edu
64a42da2fc Fix previous checkin -- bug 373362 strikes again! 2007-03-11 03:11:22 +00:00
jwalden%mit.edu
e5e87de812 Bug 279698 - Some .js files in jars are not stripped of license headers via preprocessing (pass 1). r=mconnor 2007-03-11 02:21:48 +00:00
asqueella%gmail.com
413675d228 Fix bug 86093 - Tab chars in html source show up as "[]" (square) in Error Console
(replace all whitespace characters with spaces)
p=Simon Bunzli <zeniko@gmail.com>
r=gavin, sr=neil
2007-03-01 07:17:54 +00:00
jwalden%mit.edu
4bf4774ca6 Bug 342662 - JS strings aren't properly escaped before being evaluated in the error console. r=gavin 2007-01-09 00:20:14 +00:00
gavin%gavinsharp.com
5d86121dc4 Bug 250156: fix doctypes, patch by Wei-ju Wu <weiju@web.de>, r=me, daniel@glazman.org 2006-10-13 17:08:26 +00:00
timeless%mozdev.org
d745e257c4 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
2006-09-17 01:59:37 +00:00
timeless%mozdev.org
cd70f66472 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 :).
2006-08-14 22:03:34 +00:00
gavin%gavinsharp.com
a2f1db0eaf 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 2006-07-26 18:31:45 +00:00
gavin%gavinsharp.com
313ad0fa87 Fix whitespace nits to sync with xpfe, r=sparky 2006-07-20 00:42:01 +00:00
gavin%gavinsharp.com
15076987ab Bug 322169: Clear Private Data does not clear JS Console, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor, r=darin 2006-07-19 12:49:33 +00:00
doronr%us.ibm.com
2fa7d62cb9 Bug 289927 - JS console shouldn't show line number if line is 0. r=mconnor 2006-07-18 16:41:50 +00:00
gavin%gavinsharp.com
0891958a58 Bug 338899: be nice to -jsconsole (no duplicate windows, no unrequested windows), patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor 2006-06-04 07:14:10 +00:00
gavin%gavinsharp.com
8dec5f3a77 Bug 332191: The Error Console doesn't remember its maximized state, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor 2006-06-04 06:57:20 +00:00
gavin%gavinsharp.com
b581167b49 Bug 265871: rename JavaScript console to Error console, patch by Kurt <supernova_00@yahoo.com>, r=mconnor, ui-r=beltzner, sr=neil/bzbarsky 2006-05-25 21:22:32 +00:00
kairo%kairo.at
7e6c92af99 bug 334997 - add an id to toolkit console (to be able to overly a menubar into it), r+a1.8.1=mconnor 2006-04-22 10:38:41 +00:00
gavin%gavinsharp.com
2271437486 Bug 306223: Allow to easily filter errors by category, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor 2006-03-28 17:27:54 +00:00
gavin%gavinsharp.com
1595ec755f Bug 328932: Evaluating Components.classes in JS Console throws an exception, r=bzbarsky, sr=jag 2006-03-03 00:48:52 +00:00
mozilla.mano%sent.com
3a825a8b69 Bug 296700 - Can't overlay the console's keyset/commandset. patch from Simon Bnzli <zeniko@gmail.com>, r=me. 2005-09-06 11:02:12 +00:00
aaronleventhal%moonset.net
9ecbd670ca Bug 302402. Some XUL links opening twice. r+a=mconnor 2005-08-05 16:11:10 +00:00
aaronleventhal%moonset.net
be531d3dfc Bug 301398. Another round of link fixes. Now we're down to 2 link implementations. r+a=mconnor 2005-07-25 19:23:12 +00:00
bsmedberg%covad.net
e18c0f3cfa Bug 293161 - make -jsconsole flag work again r=darin a=shaver 2005-05-09 18:00:34 +00:00
bsmedberg%covad.net
84cfc83215 Bug 286450 - Make nsIScriptError.message display a formatted message with file/line information, for future logging purposes r=dbradley sr=bz 2005-03-30 11:34:59 +00:00
gerv%gerv.net
93180ced26 Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-02-01 17:07:35 +00:00
Stefan.Borggraefe%gmx.de
a97f484e76 Bug 277342: JS Console behaving incorrectly with right-click on source file
r=mconnor, sr=neil
2005-01-31 00:26:02 +00:00
dbaron%dbaron.org
d94716da9b Merge cvs removes from aviary branch (in browser and toolkit directories) to the trunk. 2004-12-02 02:46:06 +00:00
ben%bengoodger.com
a3b1eda480 Landing the Aviary Branch (Toolkit sections excluding toolkit/content). 2004-11-30 22:54:13 +00:00
steffen.wilberg%web.de
861c5ee01c Bug 245455 - remove unused files. r=mconnor 2004-07-22 11:33:50 +00:00
ben%bengoodger.com
6898ec04af winstripe landing 2004-06-18 22:10:49 +00:00
mconnor%myrealbox.com
2e4b04cdf4 bug 240655, port neil's fix from 133606 to toolkit 2004-06-01 14:50:13 +00:00
bzbarsky%mit.edu
7a292c3f22 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
2004-04-15 01:51:32 +00:00
ben%bengoodger.com
5ccac856fe 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) 2003-12-01 05:40:41 +00:00
chanial%noos.fr
aeb90b4015 sync the console with the suite 2003-10-22 08:00:39 +00:00
chanial%noos.fr
bcb2454800 Landing Arvid's new icons and animations 2003-04-25 08:15:34 +00:00
chanial%noos.fr
bccb238eaa Console cleanup: it is now independent from communicator.
Adding access keys and shortcut to focus the command line
2003-03-02 04:15:09 +00:00
chanial%noos.fr
999d01efa3 console.css cleanup 2003-03-01 15:27:39 +00:00
chanial%noos.fr
8aaf6fcff5 add .cvsignore files 2003-03-01 14:55:39 +00:00
chanial%noos.fr
f171e1c165 Move the js console and dependencies as new extensions in toolkit/components.
NPOB
2003-03-01 08:07:13 +00:00