Don't report resource timing to parent frame for history items
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Dec 2018 23:01:29 +0000 (23:01 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Dec 2018 23:01:29 +0000 (23:01 +0000)
commit3e041096226e446104fecddfef9421fcf3c45146
tree2904fbe91bea12626db8dc8a5d87c3b14db080a9
parentaee41f98b815174b21bb341e43a0ca47e6eea364
Don't report resource timing to parent frame for history items
https://bugs.webkit.org/show_bug.cgi?id=192273
<rdar://problem/45163764>

Reviewed by Youenn Fablet.

Source/WebCore:

We should not report history items to its parent frame as those are less
interested to its parent and might not be the first navigation in the iframes.

This change aligns the behavior when a cached document is not available for the
history item with the available case as we don't report resource timing for any
cached main document.

Test: http/tests/misc/resource-timing-navigation-in-restored-iframe-2.html

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadDifferentDocumentItem):

LayoutTests:

* http/tests/misc/resource-timing-navigation-in-restored-iframe-2-expected.txt: Added.
* http/tests/misc/resource-timing-navigation-in-restored-iframe-2.html: Copied from LayoutTests/http/tests/misc/resource-timing-navigation-in-restored-iframe.html.
* http/tests/misc/resource-timing-navigation-in-restored-iframe.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/misc/resource-timing-navigation-in-restored-iframe-2-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/misc/resource-timing-navigation-in-restored-iframe-2.html [new file with mode: 0644]
LayoutTests/http/tests/misc/resource-timing-navigation-in-restored-iframe.html
Source/WebCore/ChangeLog
Source/WebCore/loader/FrameLoader.cpp