| Index: Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
|
| index 34fd9352c511149f23717e83905bf790bbc0693c..6f4e32ed7915b27e8a982d2ebae64beefd4d5f43 100644
|
| --- a/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/Source/core/loader/FrameFetchContext.cpp
|
| @@ -563,8 +563,12 @@ bool FrameFetchContext::updateTimingInfoForIFrameNavigation(ResourceTimingInfo*
|
| // FIXME: Resource timing is broken when the parent is a remote frame.
|
| if (!frame()->deprecatedLocalOwner() || frame()->deprecatedLocalOwner()->loadedNonEmptyDocument())
|
| return false;
|
| - info->setInitiatorType(frame()->deprecatedLocalOwner()->localName());
|
| frame()->deprecatedLocalOwner()->didLoadNonEmptyDocument();
|
| + // Do not report iframe navigation that restored from history, since its
|
| + // location may have been changed after initial navigation.
|
| + if (frame()->loader().loadType() == FrameLoadTypeInitialHistoryLoad)
|
| + return false;
|
| + info->setInitiatorType(frame()->deprecatedLocalOwner()->localName());
|
| return true;
|
| }
|
|
|
|
|