#24468 call submit_resource_timing after creating the document parser

This commit is contained in:
Shinichi Morimoto 2019-12-08 00:33:08 +09:00 committed by Josh Matthews
parent 2457a6be0f
commit faee09ffa9

View file

@ -774,6 +774,8 @@ impl FetchResponseListener for ParserContext {
self.parser = Some(Trusted::new(&*parser));
self.submit_resource_timing();
match content_type {
Some(ref mime) if mime.type_() == mime::IMAGE => {
self.is_synthesized_document = true;