In the web inspector if you execute a command the return is truncated with no apparent way to see full sting. Example if you type document.cookie - the cookie string is returned in the console but it is truncated if it is to long.
We should have a way to click or toggle the truncation for each output. We truncate to prevent flooding the console incase the result was longer than the user expected. Maybe the default truncation length could be extended too.
I actually never meant the output to be truncated when implementing the Console (it just came along for free with using Object.describe). But I agree that it's a good idea not to flood the console if, for example, the user types "document.body.innerHTML" on a large page. Firebug doesn't truncate the output, but I think we can do better here.
<rdar://problem/5712805>
Created attachment 19070 [details] patch with changelog
Comment on attachment 19070 [details] patch with changelog I should note that this patch does nothing to prevent flooding the console with a long string, since that was easier and matches Firebug's behavior.
Comment on attachment 19070 [details] patch with changelog The one change I proposed to Adam on IRC was to remove some of the _format functions that all do the same thing. r=me.
Fixed in r30146