Commit Graph
47 Commits
Author SHA1 Message Date
Ian Neal f5e40d1ccd Bug 1177381 - View source from error console uses deprecated API. r=neil 2015-07-27 10:07:00 -04:00
Birunthan Mohanathas fe337d7c5e Bug 1166840 - Remove unused document argument in uses of nsIClipboardHelper.copyString. r=ehsan 2015-05-21 21:49:30 +01:00
Geoff Lankow b7c235f031 Bug 1138336 - Adapt nsIScriptError so it can display log messages with filename and line number; r=jst,neil,past 2015-04-28 18:39:47 +12:00
Cykesiopka b10a249ff7 Bug 799089 - Remove error console filter timeout hack. r=Neil 2013-04-01 10:37:50 -04:00
Cykesiopka 2c461d3a1b Bug 800522 - Add javascript.options.showInConsole to all.js so that Error Console can use a field instead of rolling its own lazy getter. r=Neil 2013-03-27 11:49:02 -04:00
Jared Wein d22f071960 Bug 841712 - Copy in Error Console has shows source code instead of line number. r=neil 2013-02-15 20:17:59 -05:00
Ehsan Akhgari 5ab06de081 Bug 817477 - Remove support for global private browsing mode; r=jdm,glandium 2013-01-29 13:12:13 -05:00
Jared Wein 1ec752c874 Bug 831020 - Errors in the error console with very long reference lines hang the browser. r=neil 2013-01-23 13:10:07 -05:00
Seth Fowler d917af9530 Bug 796179 - Don't store full source URI in an attribute in the error console, and display it in abbreviated form to the user. r=rcampbell r=Neil 2012-11-12 11:50:03 -08:00
Neil Rashbrook 2c2100dc8b Bug 664695 Improve signature of nsIConsoleService::GetMessageArray r=bsmedberg r=msucan 2012-11-03 10:59:29 +00:00
Ryan VanderMeulen 6475737e98 Backout 06b998c1100d (bug 664695) due to mochitest-other orange. 2012-11-02 17:12:22 -04:00
Neil Rashbrook 34eea29bb2 Bug 664695 Improve signature of nsIConsoleService::GetMessageArray r=bsmedberg 2012-11-02 20:07:50 +00:00
Andres Hernandez 8593b1934f Bug 769298 - Avoid logging script errors coming from private windows in the global error console 2012-10-19 15:52:21 -06:00
Josh Matthews 87d161c755 Backed out changeset 12002e126b39 (bug 769298) 2012-10-18 17:27:23 -04:00
Andres Hernandez 5a8d02fcc9 Bug 769298 - Avoid logging script errors coming from private windows in the global error console 2012-10-18 00:24:56 -06:00
aceman 50cc3bfa5b Bug 711723 - Move the timestamp in the Error console to the left and on the same line as message text. r=Neil 2012-10-11 21:31:38 -04:00
aceman 2c8cec4cb5 Bug 799653 - Convert Error console to Services.jsm. r=gavin 2012-10-10 21:11:15 -04:00
Ehsan Akhgari f4bd388765 Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
This patch does the following:

* It adds nsITransferable::Init(nsILoadContext*).  The load context
  might be null, which means that the transferable is non-private, but
  if it's non-null, we extract the boolean value for the privacy mode
  and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
  called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
  represent the document that the string is coming from.
  nsIClipboardHelper implementation internally gets the nsILoadContext
  from that and passes it on to the transferable upon creation.  The
  reason that I did this was that nsIClipboardHelper is supposed to be a
  high-level helper, and in most of its call sites, we have easy access
  to a document object.
* It modifies all of the call sites of the above interfaces according to
  this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
  the call sites.
2012-04-16 22:14:01 -04:00
Tom Schuster fa5981d8bc Bug 764346 - Let Error Console filter match more properties like source, line. r=jaws 2012-06-19 17:24:58 +02:00
Geoff Lankow 25d09c3e64 Bug 764333 - Link from error console to view source doesn't work for errors in subscripts; r=Unfocused 2012-06-14 21:20:06 +12:00
Tom Schuster 92f7b5bd2a Bug 760951 - Add a filter box to the error console. r=jaws 2012-06-07 17:22:34 +02:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Vivien Nicolas 8cc5af1825 Bug 748895 - Error message if an error message arrived after the destruction of the console binding. r=enndeakin 2012-05-04 20:05:40 +02:00
aceman e7f0a658cf Bug 122213 - Display time and date of messages in toolkit's Error Console. r=neil sr=bz 2011-12-17 05:22:26 +01:00
Simon Bünzli 29a0ed8442 Bug 331940 - Should be able to pass a line number to the external viewer/editor. r=gavin 2008-09-08 14:06:06 +02:00
d6dc792297 Fix places where XUL was using display:inline to avoid block-wrapping. b=321402 r=mconnor, r+sr=roc, a=blocking1.9+/M9 2007-10-25 16:29:24 -07:00
cae078a626 Bug 396176 - "Make change in viewSource() due to Bug 382074 backward compatible" [[email protected] (Philip Chee) r=Mano a1.9=mconnor] 2007-09-17 18:07:14 -07:00
31e2643fc3 Bug 374982 - The enabled state of the copy command is incorrect in few edge cases. r=gavin. 2007-05-07 17:50:09 -07:00
fbbdf8e23c bug 379439 - When closing error console: assertion "XPConnect is being called on a scope without a 'Components' property!"add matching removeController() call to the binding's destructor.r=mano 2007-05-02 05:23:59 -07:00
2070a12949 Bug 366479 - [mac] Copy command is broken in the JS console. r=gavin,neil. sr=neil. 2007-03-22 16:28:22 -07:00
[email protected] dfb54ca967 Fix bug 86093 - Tab chars in html source show up as "[]" (square) in Error Console
(replace all whitespace characters with spaces)
p=Simon Bunzli <[email protected]>
r=gavin, sr=neil
2007-03-01 07:17:54 +00:00
[email protected] 019672395e Bug 250156: fix doctypes, patch by Wei-ju Wu <[email protected]>, r=me, [email protected] 2006-10-13 17:08:26 +00:00
[email protected] 7a6d82ea48 Bug 348627 O(N^2) or worse algorithm in error console
algorithm by neil, function per [email protected], whatever's left of the patch is by me :)
r=neil sr=neil
2006-09-17 01:59:37 +00:00
[email protected] 66a0e94f19 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
[email protected] 770b92c7e4 Fix bug 345327: "clear" button in the console doesn't work, regression from bug 322169, patch by Simon B�nzli <[email protected]>, r=mconnor 2006-07-26 18:31:45 +00:00
[email protected] 1b38a14957 Bug 322169: Clear Private Data does not clear JS Console, patch by Simon B�nzli <[email protected]>, r=mconnor, r=darin 2006-07-19 12:49:33 +00:00
[email protected] 23bf356396 Bug 289927 - JS console shouldn't show line number if line is 0. r=mconnor 2006-07-18 16:41:50 +00:00
[email protected] 33ab6fb80c Bug 306223: Allow to easily filter errors by category, patch by Simon B�nzli <[email protected]>, r=mconnor 2006-03-28 17:27:54 +00:00
[email protected] 01206f1adf Bug 302402. Some XUL links opening twice. r+a=mconnor 2005-08-05 16:11:10 +00:00
[email protected] 045941ac44 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
[email protected] e592db2d2f 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
[email protected] 12fef8a78f Bug 277342: JS Console behaving incorrectly with right-click on source file
r=mconnor, sr=neil
2005-01-31 00:26:02 +00:00
[email protected] d529ab8ba0 bug 240655, port neil's fix from 133606 to toolkit 2004-06-01 14:50:13 +00:00
[email protected] 7468e7d997 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
[email protected] 7044918845 sync the console with the suite 2003-10-22 08:00:39 +00:00
[email protected] d965c98d5c 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
[email protected] 676292f97e Move the js console and dependencies as new extensions in toolkit/components.
NPOB
2003-03-01 08:07:13 +00:00