| Index: Source/core/inspector/InspectorResourceAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp
|
| index 288df606ad693e798debe7988d57b55920940eb7..297a8d7fd30966b76cb14583b567280d809f272f 100644
|
| --- a/Source/core/inspector/InspectorResourceAgent.cpp
|
| +++ b/Source/core/inspector/InspectorResourceAgent.cpp
|
| @@ -44,6 +44,7 @@
|
| #include "core/fileapi/FileReaderLoader.h"
|
| #include "core/fileapi/FileReaderLoaderClient.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "core/html/HTMLFrameOwnerElement.h"
|
| #include "core/inspector/IdentifiersFactory.h"
|
| #include "core/inspector/InspectorOverlay.h"
|
| #include "core/inspector/InspectorPageAgent.h"
|
| @@ -675,6 +676,8 @@ PassRefPtr<TypeBuilder::Network::Initiator> InspectorResourceAgent::buildInitiat
|
| return initiatorObject;
|
| }
|
|
|
| + while (document && !document->scriptableDocumentParser())
|
| + document = document->ownerElement() ? document->ownerElement()->ownerDocument() : nullptr;
|
| if (document && document->scriptableDocumentParser()) {
|
| RefPtr<TypeBuilder::Network::Initiator> initiatorObject = TypeBuilder::Network::Initiator::create()
|
| .setType(TypeBuilder::Network::Initiator::Type::Parser);
|
|
|