Bug 1486486 - Remove bogus link override code in about:memory. r=bz

It's throwing because things like `about:memory#end0` aren't valid selectors.

--HG--
extra : rebase_source : 7de7b57347a7bc5dc3b08c58c31a48dc8be93804
This commit is contained in:
Nicholas Nethercote 2018-08-31 12:35:44 +10:00
Родитель 8cac942c02
Коммит f65957c65b
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -1429,14 +1429,6 @@ function appendProcessAboutMemoryElements(aP, aN, aProcess, aTrees,
link.title = "Go to the " + aThere + " of " + aProcess;
link.style = "text-decoration: none";
// This jumps to the anchor without the page location getting the anchor
// name tacked onto its end, which is what happens with a vanilla link.
link.addEventListener("click", function(event) {
document.documentElement.scrollTop =
document.querySelector(event.target.href).offsetTop;
event.preventDefault();
});
// This gives nice spacing when we copy and paste.
appendElementWithText(aP, "span", "", "\n");
};