+2018-09-17 Simon Fraser <simon.fraser@apple.com>
+
+ Many modern media control tests leak documents in testing
+ https://bugs.webkit.org/show_bug.cgi?id=189437
+
+ Reviewed by Darin Adler.
+
+ In order to accurately detect leaks in media controls tests which use lots of
+ SVGImages, we have to:
+ - Fire a zero-delay timer after the postTask, in order for ImagesLoader's m_derefElementTimer
+ to clear references to elements.
+ - Have releaseCriticalMemory() call CachedResourceLoader's garbageCollectDocumentResources()
+ to drop the last handle to the CachedResource for an SVGImage.
+ - Call WKBundleReleaseMemory() after the GC and timer, since we need garbageCollectDocumentResources()
+ to run again after that timer has fired.
+
+ This should fix most of the spurious leak reports involving SVGImage documents.
+
+ * page/MemoryRelease.cpp:
+ (WebCore::releaseCriticalMemory):
+
2018-09-17 Jer Noble <jer.noble@apple.com>
Add support for HEVC codec types in Media Capabilities