[Resource Timing] Expose timing information for iframes
https://bugs.webkit.org/show_bug.cgi?id=103927

Reviewed by Nate Chapin.

Source/WebCore:

The only catch with main documents is that we only want to record the load that was initiated by
adding the <iframe> to a document. We don't want any subsequent navigations within the iframe to
be reported.

Test: http/tests/w3c/webperf/submission/Google/resource-timing/html/test_resource_iframe_self_navigation.html

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::revalidateResource):
(WebCore::CachedResourceLoader::loadResource):
(WebCore::CachedResourceLoader::loadDone): Make sure iframes are reported in the parent.

LayoutTests:

* http/tests/w3c/webperf/submission/Google/resource-timing/html/test_resource_frame_initiator_type.html: Fix timeout.
* http/tests/w3c/webperf/submission/Google/resource-timing/html/test_resource_iframe_self_navigation-expected.txt: Added.
* http/tests/w3c/webperf/submission/Google/resource-timing/html/test_resource_iframe_self_navigation.html: Added.
* http/tests/w3c/webperf/submission/Google/resource-timing/html/test_resource_initiator_types-expected.txt: Remove bad line.
* platform/chromium/TestExpectations: Unskip tests that relied on iframes.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147387 268f45cc-cd09-0410-ab3c-d52691b4dbfc