Skip to content
  • beidson@apple.com's avatar
    WebCore: · b16bd43e
    beidson@apple.com authored
    2009-07-01  Brady Eidson  <beidson@apple.com>
    
            Reviewed by Sam Weinig.
    
            Add a preference/setting to toggle whether content sniffing is enabled for file URLs.
    
            * WebCore.base.exp:
    
            * page/Settings.cpp:
            (WebCore::Settings::setLocalFileContentSniffingEnabled):
            * page/Settings.h:
            (WebCore::Settings::localFileContentSniffingEnabled):
    
            * platform/network/mac/ResourceHandleMac.mm:
            (WebCore::ResourceHandle::start):
            (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
    
    WebKit/mac:
    
    2009-07-01  Brady Eidson  <beidson@apple.com>
    
            Reviewed by Sam Weinig.
    
            Add a preference/setting to toggle whether content sniffing is enabled for file URLs.
    
            * WebView/WebPreferenceKeysPrivate.h:
    
            * WebView/WebPreferences.mm:
            (+[WebPreferences initialize]):
            (-[WebPreferences localFileContentSniffingEnabled]):
            (-[WebPreferences setLocalFileContentSniffingEnabled:]):
            * WebView/WebPreferencesPrivate.h:
    
            * WebView/WebView.mm:
            (-[WebView _preferencesChangedNotification:]):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@45458 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b16bd43e