mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
Allow anchorObject.hash getters do unescape only if dom.url.getters_decode_hash is true
This commit is contained in:
+1
-1
@@ -515,7 +515,7 @@ URL::GetHash(nsString& aHash, ErrorResult& aRv) const
|
||||
nsresult rv = mURI->GetRef(ref);
|
||||
if (NS_SUCCEEDED(rv) && !ref.IsEmpty()) {
|
||||
aHash.Assign(char16_t('#'));
|
||||
if (nsContentUtils::EncodeDecodeURLHash()) {
|
||||
if (nsContentUtils::GettersDecodeURLHash()) {
|
||||
NS_UnescapeURL(ref); // XXX may result in random non-ASCII bytes!
|
||||
}
|
||||
AppendUTF8toUTF16(ref, aHash);
|
||||
|
||||
Reference in New Issue
Block a user