Only report resource timing to parent frame for the first iframe load
[WebKit-https.git] / Source / WebCore / ChangeLog
index 47bc5d6..609a1cf 100644 (file)
@@ -1,3 +1,24 @@
+2018-10-11  Jiewen Tan  <jiewen_tan@apple.com>
+
+        Only report resource timing to parent frame for the first iframe load
+        https://bugs.webkit.org/show_bug.cgi?id=190498
+        <rdar://problem/44347398>
+
+        Reviewed by Youenn Fablet.
+
+        Only the first iframe navigation or the first iframe navigation after about:blank should be reported.
+        https://www.w3.org/TR/resource-timing-2/#resources-included-in-the-performanceresourcetiming-interface
+
+        Test: http/tests/misc/resource-timing-navigation-in-restored-iframe.html
+
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::loadWithDocumentLoader):
+        * loader/FrameLoader.h:
+        (WebCore::FrameLoader::shouldReportResourceTimingToParentFrame):
+        (WebCore::FrameLoader::setShouldReportResourceTimingToParentFrame): Deleted.
+        * loader/ResourceTimingInformation.cpp:
+        (WebCore::ResourceTimingInformation::addResourceTiming):
+
 2018-10-24  Brent Fulgham  <bfulgham@apple.com>
 
         Cure Windows Direct2D Backend of a nasty case of bitrot
 2018-10-24  Brent Fulgham  <bfulgham@apple.com>
 
         Cure Windows Direct2D Backend of a nasty case of bitrot