Bug 377392 - 'Copy Link Location' strips random characters from URLs copied to the clipboard. Patch by Rich Walsh <rich@e-vertise.com>, r=wuno, r=bzbarsky, a1.9.0.next=dveditz

git-svn-id: svn://10.0.0.236/trunk@261969 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alqahira%ardisson.org 2011-02-24 06:26:32 +00:00
parent b021039e1e
commit 90681eca07

View File

@ -4086,7 +4086,7 @@ NS_IMETHODIMP PresShell::GetLinkLocation(nsIDOMNode* aNode, nsAString& aLocation
NS_ENSURE_ARG_POINTER(aNode); NS_ENSURE_ARG_POINTER(aNode);
nsresult rv; nsresult rv;
nsAutoString anchorText; nsAutoString anchorText;
static char strippedChars[] = {'\t','\r','\n'}; static const char strippedChars[] = "\t\r\n";
// are we an anchor? // are we an anchor?
nsCOMPtr<nsIDOMHTMLAnchorElement> anchor(do_QueryInterface(aNode)); nsCOMPtr<nsIDOMHTMLAnchorElement> anchor(do_QueryInterface(aNode));