Remove a SnowLeopard-era quirk for QuickLook
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Dec 2014 00:32:33 +0000 (00:32 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Dec 2014 00:32:33 +0000 (00:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=139208
<rdar://problem/19121822>

Reviewed by Alexey Proskuryakov.

* WebCore.exp.in:
* WebCore.xcodeproj/project.pbxproj:
* loader/EmptyClients.h:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::subresourceCachePolicy):
* loader/FrameLoaderClient.h:
* platform/mac/QuickLookMac.h: Removed.
* platform/mac/QuickLookMac.mm: Removed.

* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::encode):
(WebKit::WebProcessCreationParameters::decode):
* Shared/WebProcessCreationParameters.h:
* UIProcess/mac/WebContextMac.mm:
(WebKit::WebContext::platformInitializeWebProcess):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::needsQuickLookResourceCachingQuirks): Deleted.
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::WebProcess):
* WebProcess/WebProcess.h:
(WebKit::WebProcess::needsQuickLookResourceCachingQuirks): Deleted.
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeWebProcess):

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

20 files changed:
Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/loader/EmptyClients.h
Source/WebCore/loader/FrameLoader.cpp
Source/WebCore/loader/FrameLoaderClient.h
Source/WebCore/platform/mac/QuickLookMac.h [deleted file]
Source/WebCore/platform/mac/QuickLookMac.mm [deleted file]
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.h
Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/WebProcessCreationParameters.cpp
Source/WebKit2/Shared/WebProcessCreationParameters.h
Source/WebKit2/UIProcess/mac/WebContextMac.mm
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.h
Source/WebKit2/WebProcess/WebProcess.cpp
Source/WebKit2/WebProcess/WebProcess.h
Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm

index 69e198a73bc9bd2db923e788e4fbc972978c4b29..281da5ab349e89b5dee1117a3a24b0a9cdb1775d 100644 (file)
@@ -1,3 +1,20 @@
+2014-12-02  Tim Horton  <timothy_horton@apple.com>
+
+        Remove a SnowLeopard-era quirk for QuickLook
+        https://bugs.webkit.org/show_bug.cgi?id=139208
+        <rdar://problem/19121822>
+
+        Reviewed by Alexey Proskuryakov.
+
+        * WebCore.exp.in:
+        * WebCore.xcodeproj/project.pbxproj:
+        * loader/EmptyClients.h:
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::subresourceCachePolicy):
+        * loader/FrameLoaderClient.h:
+        * platform/mac/QuickLookMac.h: Removed.
+        * platform/mac/QuickLookMac.mm: Removed.
+
 2014-12-02  Anders Carlsson  <andersca@apple.com>
 
         Begin stubbing out a StorageNamespaceProvider class
index 26910b1764f01e0d3d54b516edc3eb3368e1ba93..f366b29d7c1a41d5b8a2541e556694d59ff69b98 100644 (file)
@@ -242,7 +242,6 @@ __ZN7WebCore12PrintContext9spoolPageERNS_15GraphicsContextEif
 __ZN7WebCore12PrintContext9spoolRectERNS_15GraphicsContextERKNS_7IntRectE
 __ZN7WebCore12PrintContextC1EPNS_5FrameE
 __ZN7WebCore12PrintContextD1Ev
-__ZN7WebCore12QuickLookMac42computeNeedsQuickLookResourceCachingQuirksEv
 __ZN7WebCore12RenderObject16paintingRootRectERNS_10LayoutRectE
 __ZN7WebCore12RenderObject19scrollRectToVisibleERKNS_10LayoutRectERKNS_15ScrollAlignmentES6_
 __ZN7WebCore12RenderWidget9setWidgetEN3WTF10PassRefPtrINS_6WidgetEEE
index 13d0880c80b5bf3bcc3127d0aea54cb1c4256b90..caf44b3d69465d05d91f64156bdcba98e58f4ab5 100644 (file)
                45BAC2B01360BBAB005DA258 /* IconURL.h in Headers */ = {isa = PBXBuildFile; fileRef = 45BAC2AF1360BBAB005DA258 /* IconURL.h */; settings = {ATTRIBUTES = (Private, ); }; };
                45FEA5CF156DDE8C00654101 /* Decimal.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 45FEA5CD156DDE8C00654101 /* Decimal.cpp */; };
                45FEA5D0156DDE8C00654101 /* Decimal.h in Headers */ = {isa = PBXBuildFile; fileRef = 45FEA5CE156DDE8C00654101 /* Decimal.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               4643783119F720EF001E38B3 /* QuickLookMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 4643782F19F720EF001E38B3 /* QuickLookMac.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               4643783219F720EF001E38B3 /* QuickLookMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4643783019F720EF001E38B3 /* QuickLookMac.mm */; };
                4689F1AF1267BAE100E8D380 /* FileMetadata.h in Headers */ = {isa = PBXBuildFile; fileRef = 4689F1AE1267BAE100E8D380 /* FileMetadata.h */; };
                490707E61219C04300D90E51 /* ANGLEWebKitBridge.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 490707E41219C04300D90E51 /* ANGLEWebKitBridge.cpp */; };
                490707E71219C04300D90E51 /* ANGLEWebKitBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 490707E51219C04300D90E51 /* ANGLEWebKitBridge.h */; };
                45BAC2AF1360BBAB005DA258 /* IconURL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IconURL.h; sourceTree = "<group>"; };
                45FEA5CD156DDE8C00654101 /* Decimal.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Decimal.cpp; sourceTree = "<group>"; };
                45FEA5CE156DDE8C00654101 /* Decimal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Decimal.h; sourceTree = "<group>"; };
-               4643782F19F720EF001E38B3 /* QuickLookMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QuickLookMac.h; sourceTree = "<group>"; };
-               4643783019F720EF001E38B3 /* QuickLookMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = QuickLookMac.mm; sourceTree = "<group>"; };
                4689F1AE1267BAE100E8D380 /* FileMetadata.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FileMetadata.h; path = platform/FileMetadata.h; sourceTree = "<group>"; };
                490707E41219C04300D90E51 /* ANGLEWebKitBridge.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ANGLEWebKitBridge.cpp; sourceTree = "<group>"; };
                490707E51219C04300D90E51 /* ANGLEWebKitBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANGLEWebKitBridge.h; sourceTree = "<group>"; };
                                BC94D1070C274F88006BC617 /* PlatformScreenMac.mm */,
                                29E4D8E016B0959800C84704 /* PlatformSpeechSynthesizerMac.mm */,
                                0081FEFE16B0A2B6008AAA7A /* PublicSuffixMac.mm */,
-                               4643782F19F720EF001E38B3 /* QuickLookMac.h */,
-                               4643783019F720EF001E38B3 /* QuickLookMac.mm */,
                                BCAE1FA512939DB7004CB026 /* ScrollAnimatorMac.h */,
                                BC51156D12B1749C00C96754 /* ScrollAnimatorMac.mm */,
                                BC8B853C0E7C7F1100AB6984 /* ScrollbarThemeMac.h */,
                                442AF7A9102CDDEA008FD4D3 /* QuickLook.h in Headers */,
                                CE1252391A166FA000864480 /* QuickLookSPI.h in Headers */,
                                A10DBF4718F92317000D70C6 /* QuickLookHandleClient.h in Headers */,
-                               4643783119F720EF001E38B3 /* QuickLookMac.h in Headers */,
                                072AE1E8183C0741000A5988 /* QuickTimePluginReplacement.h in Headers */,
                                379E371713736A6600B9E919 /* QuotedPrintable.h in Headers */,
                                5A574F29131DB96D00471B88 /* QuotesData.h in Headers */,
                                CDEE393717974259001D7580 /* PublicURLManager.cpp in Sources */,
                                550A0BC9085F6039007353D6 /* QualifiedName.cpp in Sources */,
                                442AF7AA102CDDEA008FD4D3 /* QuickLook.mm in Sources */,
-                               4643783219F720EF001E38B3 /* QuickLookMac.mm in Sources */,
                                072AE1E6183C0741000A5988 /* QuickTimePluginReplacement.mm in Sources */,
                                379E371613736A6600B9E919 /* QuotedPrintable.cpp in Sources */,
                                5A574F28131DB96D00471B88 /* QuotesData.cpp in Sources */,
index e79976640f1e9e40f5161511e021ae025f428e09..8c7a43236c3cdb122cf7eb388e1349a6e796c6ab 100644 (file)
@@ -403,10 +403,6 @@ public:
     virtual void didRequestAutocomplete(PassRefPtr<FormState>) override { }
 #endif
 
-#if PLATFORM(MAC)
-    virtual bool needsQuickLookResourceCachingQuirks() const override { return false; }
-#endif
-
     virtual bool isEmptyFrameLoaderClient() override { return true; }
 };
 
index 7416bdc82395965e61dec9b014ce151ed67f64e6..cebb3aaaccd401137b9f958786570e38d1b3cf31 100644 (file)
@@ -2152,11 +2152,6 @@ CachePolicy FrameLoader::subresourceCachePolicy() const
         return CachePolicyRevalidate;
 
     const ResourceRequest& request(documentLoader()->request());
-#if PLATFORM(MAC)
-    if (request.cachePolicy() == ReloadIgnoringCacheData && !equalIgnoringCase(request.httpMethod(), "post") && m_client.needsQuickLookResourceCachingQuirks())
-        return CachePolicyRevalidate;
-#endif
-
     if (request.cachePolicy() == ReturnCacheDataElseLoad)
         return CachePolicyHistoryBuffer;
 
index 8f614c8bb3509a2feee0acd98ce38447162bd4b2..882888ab1f52a3a65e1486269ca02dd971a43144 100644 (file)
@@ -283,10 +283,6 @@ namespace WebCore {
 
         virtual void registerForIconNotification(bool listen = true) = 0;
 
-#if PLATFORM(MAC)
-        virtual bool needsQuickLookResourceCachingQuirks() const = 0;
-#endif
-
 #if PLATFORM(COCOA)
         // Allow an accessibility object to retrieve a Frame parent if there's no PlatformWidget.
         virtual RemoteAXObjectRef accessibilityRemoteObject() = 0;
diff --git a/Source/WebCore/platform/mac/QuickLookMac.h b/Source/WebCore/platform/mac/QuickLookMac.h
deleted file mode 100644 (file)
index 4f177ef..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef QuickLookMac_h
-#define QuickLookMac_h
-
-namespace WebCore {
-
-class QuickLookMac {
-public:
-    WEBCORE_EXPORT static bool computeNeedsQuickLookResourceCachingQuirks();
-};
-
-} // namespace WebCore
-
-#endif // QuickLookMac_h
diff --git a/Source/WebCore/platform/mac/QuickLookMac.mm b/Source/WebCore/platform/mac/QuickLookMac.mm
deleted file mode 100644 (file)
index 7e37d6a..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (C) 2006, 2007, 2008, 2014 Apple, Inc.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "config.h"
-#import "QuickLookMac.h"
-
-#import "RuntimeApplicationChecks.h"
-
-namespace WebCore {
-
-bool QuickLookMac::computeNeedsQuickLookResourceCachingQuirks()
-{
-    if (applicationIsSafari())
-        return false;
-
-    NSArray *frameworks = [NSBundle allFrameworks];
-
-    if (!frameworks)
-        return false;
-
-    for (NSBundle *bundle in frameworks) {
-        NSString *bundleID = [bundle bundleIdentifier];
-        if (bundleID && [bundleID caseInsensitiveCompare:@"com.apple.QuickLookUIFramework"] == NSOrderedSame)
-            return true;
-    }
-    return false;
-}
-
-} // namespace WebCore
index e2507889071cb51d90d6379d5939914f1b607be3..4070d9b5ea64a12cc9865d506d8b8f1aa7b601fc 100644 (file)
@@ -1,3 +1,14 @@
+2014-12-02  Tim Horton  <timothy_horton@apple.com>
+
+        Remove a SnowLeopard-era quirk for QuickLook
+        https://bugs.webkit.org/show_bug.cgi?id=139208
+        <rdar://problem/19121822>
+
+        Reviewed by Alexey Proskuryakov.
+
+        * WebCoreSupport/WebFrameLoaderClient.h:
+        * WebCoreSupport/WebFrameLoaderClient.mm:
+
 2014-12-02  Tim Horton  <timothy_horton@apple.com>
 
         Loading Lookup causes http/tests/cache/post-redirect-get.php to fail
index 6fec43265925be01dcaa964a46968f503289731a..8415a539aa601d5b90e5fdd3582e24d26cdc0cff 100644 (file)
@@ -239,10 +239,6 @@ private:
     virtual void didCreateQuickLookHandle(WebCore::QuickLookHandle&) override;
 #endif
 
-#if PLATFORM(MAC)
-    virtual bool needsQuickLookResourceCachingQuirks() const override;
-#endif
-
     virtual void contentFilterDidBlockLoad(std::unique_ptr<WebCore::ContentFilter>) override;
 
     RetainPtr<WebFrame> m_webFrame;
index 0823d1903c89649970a6befb041b9137faad8c24..eac877049e5b7e23599133e6c50a81bdb72e9db7 100644 (file)
@@ -2249,14 +2249,6 @@ void WebFrameLoaderClient::didCreateQuickLookHandle(WebCore::QuickLookHandle& ha
 }
 #endif
 
-#if PLATFORM(MAC)
-bool WebFrameLoaderClient::needsQuickLookResourceCachingQuirks() const
-{
-    static const bool shouldUseQuickLookResourceCachingQuirks = QuickLookMac::computeNeedsQuickLookResourceCachingQuirks();
-    return shouldUseQuickLookResourceCachingQuirks;
-}
-#endif
-
 void WebFrameLoaderClient::contentFilterDidBlockLoad(std::unique_ptr<WebCore::ContentFilter> contentFilter)
 {
     m_webFrame->_private->contentFilterForBlockedLoad = WTF::move(contentFilter);
index 75895a166832e4bf4f76f3a88e616d6a0c55a857..a2182d67730b0fa3ed1a3f38c8d3b303e0191701 100644 (file)
@@ -1,3 +1,27 @@
+2014-12-02  Tim Horton  <timothy_horton@apple.com>
+
+        Remove a SnowLeopard-era quirk for QuickLook
+        https://bugs.webkit.org/show_bug.cgi?id=139208
+        <rdar://problem/19121822>
+
+        Reviewed by Alexey Proskuryakov.
+
+        * Shared/WebProcessCreationParameters.cpp:
+        (WebKit::WebProcessCreationParameters::encode):
+        (WebKit::WebProcessCreationParameters::decode):
+        * Shared/WebProcessCreationParameters.h:
+        * UIProcess/mac/WebContextMac.mm:
+        (WebKit::WebContext::platformInitializeWebProcess):
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+        (WebKit::WebFrameLoaderClient::needsQuickLookResourceCachingQuirks): Deleted.
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
+        * WebProcess/WebProcess.cpp:
+        (WebKit::WebProcess::WebProcess):
+        * WebProcess/WebProcess.h:
+        (WebKit::WebProcess::needsQuickLookResourceCachingQuirks): Deleted.
+        * WebProcess/cocoa/WebProcessCocoa.mm:
+        (WebKit::WebProcess::platformInitializeWebProcess):
+
 2014-12-02  Beth Dakin  <bdakin@apple.com>
 
         Build fix.
index 836b8640772db0c0b8c981170924cba9e0a7c2aa..55979a0ba4b7c566444e63abb51645478d53529b 100644 (file)
@@ -108,7 +108,6 @@ void WebProcessCreationParameters::encode(IPC::ArgumentEncoder& encoder) const
 #if PLATFORM(COCOA)
     encoder << presenterApplicationPid;
     encoder << accessibilityEnhancedUserInterfaceEnabled;
-    encoder << needsQuickLookResourceCachingQuirks;
     encoder << nsURLCacheMemoryCapacity;
     encoder << nsURLCacheDiskCapacity;
     encoder << acceleratedCompositingPort;
@@ -237,8 +236,6 @@ bool WebProcessCreationParameters::decode(IPC::ArgumentDecoder& decoder, WebProc
         return false;
     if (!decoder.decode(parameters.accessibilityEnhancedUserInterfaceEnabled))
         return false;
-    if (!decoder.decode(parameters.needsQuickLookResourceCachingQuirks))
-        return false;
     if (!decoder.decode(parameters.nsURLCacheMemoryCapacity))
         return false;
     if (!decoder.decode(parameters.nsURLCacheDiskCapacity))
index f40e68ccf28798e164adecc00835e5ab908949a4..5ce2224a49183a50b53dfad7157ff7b181155edb 100644 (file)
@@ -126,7 +126,6 @@ struct WebProcessCreationParameters {
     pid_t presenterApplicationPid;
 
     bool accessibilityEnhancedUserInterfaceEnabled;
-    bool needsQuickLookResourceCachingQuirks;
 
     uint64_t nsURLCacheMemoryCapacity;
     uint64_t nsURLCacheDiskCapacity;
index 212ee5aed26ce5118dd4300ffa06c3cfc656524b..de6350bf2054323d718372de8362d97101218710 100644 (file)
@@ -167,11 +167,8 @@ void WebContext::platformInitializeWebProcess(WebProcessCreationParameters& para
 
 #if PLATFORM(MAC)
     parameters.accessibilityEnhancedUserInterfaceEnabled = [[NSApp accessibilityAttributeValue:@"AXEnhancedUserInterface"] boolValue];
-    static const bool shouldUseQuickLookResourceCachingQuirks = QuickLookMac::computeNeedsQuickLookResourceCachingQuirks();
-    parameters.needsQuickLookResourceCachingQuirks = shouldUseQuickLookResourceCachingQuirks;
 #else
     parameters.accessibilityEnhancedUserInterfaceEnabled = false;
-    parameters.needsQuickLookResourceCachingQuirks = false;
 #endif
 
     NSURLCache *urlCache = [NSURLCache sharedURLCache];
index 761f511f62c67ccb00f7b9372cd6a5e5323910f5..f30191a3f43b09e2de5b2875b5abb4b9ff4c451d 100644 (file)
@@ -1642,11 +1642,4 @@ void WebFrameLoaderClient::didRequestAutocomplete(PassRefPtr<WebCore::FormState>
 }
 #endif
 
-#if PLATFORM(MAC)
-bool WebFrameLoaderClient::needsQuickLookResourceCachingQuirks() const
-{
-    return WebProcess::shared().needsQuickLookResourceCachingQuirks();
-}
-#endif
-
 } // namespace WebKit
index 8bf19ce12e9702895ff09b4af28eadb46effc9a6..f366e6bdf87a7e31eadfc517308f0abd52cf3617 100644 (file)
@@ -231,10 +231,6 @@ private:
     virtual void didCreateQuickLookHandle(WebCore::QuickLookHandle&) override;
 #endif
 
-#if PLATFORM(MAC)
-    virtual bool needsQuickLookResourceCachingQuirks() const override;
-#endif
-
 #if ENABLE(CONTENT_FILTERING)
     virtual void contentFilterDidBlockLoad(std::unique_ptr<WebCore::ContentFilter>) override;
 #endif
index d04c368853ccc7537d8de41d10f1ca9263cf95d5..4a28e56c66e03564666758e977bd3abfee97bde4 100644 (file)
@@ -160,9 +160,6 @@ WebProcess::WebProcess()
 #if PLATFORM(COCOA)
     , m_compositingRenderServerPort(MACH_PORT_NULL)
     , m_clearResourceCachesDispatchGroup(0)
-#endif
-#if PLATFORM(MAC)
-    , m_needsQuickLookResourceCachingQuirks(false)
 #endif
     , m_fullKeyboardAccessEnabled(false)
     , m_textCheckerState()
index 4df9687ef9c96824d58d466a9ca330acabebb871..e5bdcb95b9ead54ca412b95cd6bb9ec2ba9aa00c 100644 (file)
@@ -118,10 +118,6 @@ public:
     mach_port_t compositingRenderServerPort() const { return m_compositingRenderServerPort; }
 #endif
 
-#if PLATFORM(MAC)
-    bool needsQuickLookResourceCachingQuirks() const { return m_needsQuickLookResourceCachingQuirks; }
-#endif
-
     bool shouldPlugInAutoStartFromOrigin(WebPage&, const String& pageOrigin, const String& pluginOrigin, const String& mimeType);
     void plugInDidStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType, WebCore::SessionID);
     void plugInDidReceiveUserInteraction(const String& pageOrigin, const String& pluginOrigin, const String& mimeType, WebCore::SessionID);
@@ -323,9 +319,6 @@ private:
     dispatch_group_t m_clearResourceCachesDispatchGroup;
     bool m_shouldForceScreenFontSubstitution;
 #endif
-#if PLATFORM(MAC)
-    bool m_needsQuickLookResourceCachingQuirks;
-#endif
 
     bool m_fullKeyboardAccessEnabled;
 
index 2bb68f5d6eaf47b5cb4284a74f371b1d42844ad7..778a68feba34655ef3ff05394cb067e24a2dc07f 100644 (file)
@@ -195,9 +195,6 @@ void WebProcess::platformInitializeWebProcess(const WebProcessCreationParameters
     MemoryPressureHandler::ReliefLogger::setLoggingEnabled(parameters.shouldEnableMemoryPressureReliefLogging);
 
     setEnhancedAccessibility(parameters.accessibilityEnhancedUserInterfaceEnabled);
-#if PLATFORM(MAC)
-    m_needsQuickLookResourceCachingQuirks = parameters.needsQuickLookResourceCachingQuirks;
-#endif
 
 #if USE(APPKIT)
     [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions" : @YES }];