mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1145812
- Fix assertion with dom.url.encode_decode_hash pref set to true r=mcmanus
This commit is contained in:
parent
9d41c408f3
commit
e0df3a1d76
@ -2514,9 +2514,11 @@ nsStandardURL::SetRef(const nsACString &input)
|
||||
mRef.mLen = 0;
|
||||
}
|
||||
|
||||
// If precent encoding is necessary, `ref` will point to `buf`'s content.
|
||||
// `buf` needs to outlive any use of the `ref` pointer.
|
||||
nsAutoCString buf;
|
||||
if (nsContentUtils::EncodeDecodeURLHash()) {
|
||||
// encode ref if necessary
|
||||
nsAutoCString buf;
|
||||
bool encoded;
|
||||
GET_SEGMENT_ENCODER(encoder);
|
||||
encoder.EncodeSegmentCount(ref, URLSegment(0, refLen), esc_Ref,
|
||||
|
Loading…
Reference in New Issue
Block a user