Bug 311433 - venkman takes a very long time to load if you've visited very long data urls

r=ajvincent@gmail.com (Alex Vincent)
Venkman Only (NPOTB).


git-svn-id: svn://10.0.0.236/trunk@233933 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gijskruitbosch%gmail.com 2007-09-05 13:28:30 +00:00
parent 90cf275982
commit 05a0b1cb70

View File

@ -799,24 +799,25 @@ console.hooks = new Object();
console.hooks["hook-script-instance-sealed"] =
function hookScriptSealed (e)
{
var url = e.scriptInstance.url;
if (!("componentPath" in console))
{
var ary = e.scriptInstance.url.match (/(.*)venkman-service\.js$/);
if (ary)
const VNK_SVC = "venkman-service.js";
if (url.substr(-VNK_SVC.length) == VNK_SVC)
{
if (!console.prefs["enableChromeFilter"])
{
dispatch ("debug-instance-on",
{ scriptInstance: e.scriptInstance });
}
console.componentPath = ary[1];
console.componentPath = url.substr(0, url.length - VNK_SVC.length);
}
}
for (var fbp in console.fbreaks)
{
if (console.fbreaks[fbp].enabled &&
e.scriptInstance.url.indexOf(console.fbreaks[fbp].url) != -1)
url.indexOf(console.fbreaks[fbp].url) != -1)
{
e.scriptInstance.setBreakpoint(console.fbreaks[fbp].lineNumber,
console.fbreaks[fbp]);