[Webkit-unassigned] [Bug 188729] svg/custom/glyph-selection-bidi-mirror.svg and other SVG tests abandon their document because of references via SVGFontFaceElement
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 29 22:16:12 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188729
--- Comment #5 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
To fix this we need to clear font caches, something like:
diff --git a/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp b/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp
index 1a32c605f5f2b713b6430309e1dee833318311ee..4d22a40e70a19ed493fb8c9d7a2760d33af3f21d 100644
--- a/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp
+++ b/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp
@@ -45,6 +45,7 @@
#include "WebPageGroupProxy.h"
#include <WebCore/DatabaseTracker.h>
#include <WebCore/MemoryCache.h>
+#include <WebCore/MemoryRelease.h>
#include <WebCore/PageCache.h>
#include <WebCore/ResourceLoadObserver.h>
#include <WebCore/ServiceWorkerThreadProxy.h>
@@ -268,6 +269,7 @@ void WKBundleClearPageCache(WKBundleRef bundle)
void WKBundleClearMemoryCache(WKBundleRef bundle)
{
MemoryCache::singleton().evictResources();
+ WebCore::releaseMemory(WTF::Critical::Yes, WTF::Synchronous::Yes); // Some redundant work here.
}
WKDataRef WKBundleCreateWKDataFromUInt8Array(WKBundleRef bundle, JSContextRef context, JSValueRef data)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180830/8f2507f0/attachment.html>
More information about the webkit-unassigned
mailing list