Skip to content

Commit

Permalink
Bug 1486486 - Remove bogus link override code in about:memory. r=bz
Browse files Browse the repository at this point in the history
It's throwing because things like `about:memory#end0` aren't valid selectors.

--HG--
extra : rebase_source : 7de7b57347a7bc5dc3b08c58c31a48dc8be93804
  • Loading branch information
nnethercote committed Aug 31, 2018
1 parent 8cac942 commit f65957c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions toolkit/components/aboutmemory/content/aboutMemory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
};
Expand Down

0 comments on commit f65957c

Please sign in to comment.