Browser window navigate: Ensure child.quirks is initialised.

This commit is contained in:
Michael Drake 2019-08-05 21:44:51 +01:00
parent f3ac1fad69
commit 03c6ae3812

View File

@ -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);