зеркало из https://github.com/mozilla/gecko-dev.git
Bug 885751 - dbg-server.jsm compartment is leaking 500,000-char JavaScript warning strings like a sieve; r=dcamp
This commit is contained in:
Родитель
f832714d32
Коммит
b8dd40d720
|
@ -551,7 +551,7 @@ WebConsoleActor.prototype =
|
|||
else {
|
||||
message = {
|
||||
_type: "LogMessage",
|
||||
message: aMessage.message,
|
||||
message: this._createStringGrip(aMessage.message),
|
||||
timeStamp: aMessage.timeStamp,
|
||||
};
|
||||
}
|
||||
|
@ -948,10 +948,15 @@ WebConsoleActor.prototype =
|
|||
*/
|
||||
preparePageErrorForRemote: function WCA_preparePageErrorForRemote(aPageError)
|
||||
{
|
||||
let lineText = aPageError.sourceLine;
|
||||
if (lineText && lineText.length > DebuggerServer.LONG_STRING_INITIAL_LENGTH) {
|
||||
lineText = lineText.substr(0, DebuggerServer.LONG_STRING_INITIAL_LENGTH);
|
||||
}
|
||||
|
||||
return {
|
||||
errorMessage: this._createStringGrip(aPageError.errorMessage),
|
||||
sourceName: aPageError.sourceName,
|
||||
lineText: this._createStringGrip(aPageError.sourceLine),
|
||||
lineText: lineText,
|
||||
lineNumber: aPageError.lineNumber,
|
||||
columnNumber: aPageError.columnNumber,
|
||||
category: aPageError.category,
|
||||
|
|
Загрузка…
Ссылка в новой задаче