mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Browser window navigate: Ensure child.quirks is initialised.
This commit is contained in:
parent
f3ac1fad69
commit
03c6ae3812
@ -2797,6 +2797,8 @@ browser_window_navigate(struct browser_window *bw,
|
|||||||
child.charset = content_get_encoding(parent, CONTENT_ENCODING_NORMAL);
|
child.charset = content_get_encoding(parent, CONTENT_ENCODING_NORMAL);
|
||||||
if ((parent != NULL) && (content_get_type(parent) == CONTENT_HTML)) {
|
if ((parent != NULL) && (content_get_type(parent) == CONTENT_HTML)) {
|
||||||
child.quirks = content_get_quirks(parent);
|
child.quirks = content_get_quirks(parent);
|
||||||
|
} else {
|
||||||
|
child.quirks = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
url = nsurl_ref(url);
|
url = nsurl_ref(url);
|
||||||
|
Loading…
Reference in New Issue
Block a user