Fix Firebird bugs
217195 (patch by Jesse Ruderman) - security hole in markLinkVisited (exploited with link.href usage) 219875 (patch by Mike Connor) - localize strings for provisional security UI in Advanced Options panel git-svn-id: svn://10.0.0.236/trunk@171092 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -105,10 +105,18 @@ function markLinkVisited(href, linkNode)
|
||||
.getService(Components.interfaces.nsIGlobalHistory);
|
||||
if (!globalHistory.isVisited(href)) {
|
||||
globalHistory.addPage(href);
|
||||
var oldHref = linkNode.href;
|
||||
linkNode.href = "";
|
||||
linkNode.href = oldHref;
|
||||
}
|
||||
var oldHref = linkNode.getAttribute("href");
|
||||
if (typeof oldHref == "string") {
|
||||
// Use setAttribute instead of direct assignment.
|
||||
// (bug 217195, bug 187195)
|
||||
linkNode.setAttribute("href", "");
|
||||
linkNode.setAttribute("href", oldHref);
|
||||
}
|
||||
else {
|
||||
// Converting to string implicitly would be a
|
||||
// minor security hole (similar to bug 202994).
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function urlSecurityCheck(url, doc)
|
||||
|
||||
Reference in New Issue
Block a user