From e66341ec5962358b8029bb8264e53a05117c605c Mon Sep 17 00:00:00 2001 From: Boik Date: Tue, 12 Sep 2017 21:27:49 +0800 Subject: [PATCH] add back the missing 'resourceType' property --- atom/browser/net/atom_network_delegate.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/net/atom_network_delegate.cc b/atom/browser/net/atom_network_delegate.cc index 18076ccf64db..2e04f42e8d5a 100644 --- a/atom/browser/net/atom_network_delegate.cc +++ b/atom/browser/net/atom_network_delegate.cc @@ -86,6 +86,8 @@ void ToDictionary(base::DictionaryValue* details, net::URLRequest* request) { content::RenderFrameHost::FromID(process_id, frame_id)); details->SetInteger("webContentsId", atom::api::WebContents::GetIDFromWrappedClass(webContents)); + details->SetString("resourceType", + ResourceTypeToString(info->GetResourceType())); } else { details->SetString("resourceType", "other"); }