[project @ 2006-03-22 03:56:44 by adrianl]
Prevent access to non-existent base stylesheet if it fails to load svn path=/import/netsurf/; revision=2149
This commit is contained in:
parent
190672dc98
commit
99c1bfc195
|
@ -744,7 +744,10 @@ bool html_find_stylesheets(struct content *c, xmlNode *head)
|
|||
/* content_broadcast(c, CONTENT_MSG_STATUS, msg_data); */
|
||||
/* } */
|
||||
|
||||
css_set_origin(c->data.html.stylesheet_content[STYLESHEET_BASE],
|
||||
/* any of our stylesheets pointers could be NULL at this point if the
|
||||
CSS file(s) failed to load/fetch */
|
||||
if (c->data.html.stylesheet_content[STYLESHEET_BASE])
|
||||
css_set_origin(c->data.html.stylesheet_content[STYLESHEET_BASE],
|
||||
CSS_ORIGIN_UA);
|
||||
if (c->data.html.stylesheet_content[STYLESHEET_ADBLOCK])
|
||||
css_set_origin(c->data.html.stylesheet_content[
|
||||
|
|
Loading…
Reference in New Issue