Skip to content
  • abarth@webkit.org's avatar
    Always enable ENABLE(OFFLINE_WEB_APPLICATIONS) · f3ad7acf
    abarth@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=68767
    
    Reviewed by Eric Seidel.
    
    .: 
    
    * Source/cmake/OptionsEfl.cmake:
    * Source/cmake/OptionsWinCE.cmake:
    * Source/cmakeconfig.h.cmake:
    * configure.ac:
    
    Source/JavaScriptCore: 
    
    * Configurations/FeatureDefines.xcconfig:
    
    Source/WebCore: 
    
    As discussed on webkit-dev, almost everyone has this enable turned on
    and this feature is unlikely to be removed from the web platform given
    its popularity.
    
    * CMakeLists.txt:
    * Configurations/FeatureDefines.xcconfig:
    * GNUmakefile.am:
    * GNUmakefile.list.am:
    * WebCore.exp.in:
    * WebCore.pro:
    * bindings/cpp/WebDOMEventTarget.cpp:
    (toWebKit):
    * bindings/js/JSEventTarget.cpp:
    (WebCore::toJS):
    (WebCore::toEventTarget):
    * bindings/v8/V8DOMWrapper.cpp:
    (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
    * dom/EventTarget.cpp:
    (WebCore::EventTarget::toDOMApplicationCache):
    * dom/EventTarget.h:
    * features.pri:
    * history/PageCache.cpp:
    (WebCore::logCanCacheFrameDecision):
    (WebCore::PageCache::canCachePageContainingThisFrame):
    * html/HTMLHtmlElement.cpp:
    (WebCore::HTMLHtmlElement::insertedByParser):
    * html/HTMLHtmlElement.h:
    * html/HTMLMediaElement.cpp:
    (WebCore::createFileURLForApplicationCacheResource):
    (WebCore::HTMLMediaElement::loadResource):
    * html/ImageDocument.cpp:
    (WebCore::ImageDocument::createDocumentStructure):
    * html/MediaDocument.cpp:
    (WebCore::MediaDocumentParser::createDocumentStructure):
    * html/PluginDocument.cpp:
    (WebCore::PluginDocumentParser::createDocumentStructure):
    * html/parser/HTMLConstructionSite.cpp:
    (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML):
    * inspector/InspectorApplicationCacheAgent.cpp:
    * inspector/InspectorApplicationCacheAgent.h:
    * inspector/InspectorController.cpp:
    (WebCore::InspectorController::InspectorController):
    (WebCore::InspectorController::connectFrontend):
    (WebCore::InspectorController::disconnectFrontend):
    * inspector/InspectorController.h:
    * inspector/InspectorInstrumentation.cpp:
    (WebCore::InspectorInstrumentation::updateApplicationCacheStatusImpl):
    * inspector/InspectorInstrumentation.h:
    (WebCore::InspectorInstrumentation::networkStateChanged):
    (WebCore::InspectorInstrumentation::updateApplicationCacheStatus):
    * inspector/InstrumentingAgents.h:
    (WebCore::InstrumentingAgents::InstrumentingAgents):
    (WebCore::InstrumentingAgents::setInspectorApplicationCacheAgent):
    * inspector/WorkerInspectorController.cpp:
    (WebCore::WorkerInspectorController::connectFrontend):
    * inspector/generate-inspector-idl:
    * loader/DocumentLoader.cpp:
    (WebCore::DocumentLoader::DocumentLoader):
    (WebCore::DocumentLoader::mainReceivedError):
    (WebCore::DocumentLoader::stopLoading):
    (WebCore::DocumentLoader::detachFromFrame):
    (WebCore::DocumentLoader::handledOnloadEvents):
    * loader/DocumentLoader.h:
    (WebCore::DocumentLoader::applicationCacheHost):
    * loader/EmptyClients.h:
    (WebCore::EmptyChromeClient::reachedApplicationCacheOriginQuota):
    * loader/FrameLoader.cpp:
    (WebCore::FrameLoader::loadResourceSynchronously):
    * loader/MainResourceLoader.cpp:
    (WebCore::MainResourceLoader::willSendRequest):
    (WebCore::MainResourceLoader::didReceiveResponse):
    (WebCore::MainResourceLoader::didReceiveData):
    (WebCore::MainResourceLoader::didFinishLoading):
    (WebCore::MainResourceLoader::didFail):
    (WebCore::MainResourceLoader::load):
    * loader/ResourceLoader.cpp:
    (WebCore::ResourceLoader::start):
    (WebCore::ResourceLoader::willSendRequest):
    (WebCore::ResourceLoader::didSendData):
    (WebCore::ResourceLoader::didReceiveResponse):
    (WebCore::ResourceLoader::didReceiveData):
    (WebCore::ResourceLoader::didFinishLoading):
    (WebCore::ResourceLoader::didFail):
    (WebCore::ResourceLoader::wasBlocked):
    (WebCore::ResourceLoader::cannotShowURL):
    (WebCore::ResourceLoader::shouldUseCredentialStorage):
    (WebCore::ResourceLoader::willCacheResponse):
    * loader/ResourceLoader.h:
    * loader/appcache/ApplicationCache.cpp:
    * loader/appcache/ApplicationCache.h:
    * loader/appcache/ApplicationCacheGroup.cpp:
    * loader/appcache/ApplicationCacheGroup.h:
    * loader/appcache/ApplicationCacheHost.cpp:
    * loader/appcache/ApplicationCacheHost.h:
    * loader/appcache/ApplicationCacheResource.cpp:
    * loader/appcache/ApplicationCacheResource.h:
    * loader/appcache/ApplicationCacheStorage.cpp:
    * loader/appcache/ApplicationCacheStorage.h:
    * loader/appcache/DOMApplicationCache.cpp:
    * loader/appcache/DOMApplicationCache.h:
    * loader/appcache/DOMApplicationCache.idl:
    * loader/appcache/ManifestParser.cpp:
    (WebCore::parseManifest):
    * loader/appcache/ManifestParser.h:
    * loader/chromium/ResourceLoaderChromium.cpp:
    (WebCore::ResourceLoader::didDownloadData):
    * page/ChromeClient.h:
    * page/DOMWindow.cpp:
    (WebCore::DOMWindow::clear):
    (WebCore::DOMWindow::applicationCache):
    * page/DOMWindow.h:
    (WebCore::DOMWindow::optionalApplicationCache):
    * page/DOMWindow.idl:
    * xml/parser/XMLDocumentParserLibxml2.cpp:
    (WebCore::XMLDocumentParser::startElementNs):
    * xml/parser/XMLDocumentParserQt.cpp:
    (WebCore::XMLDocumentParser::parseStartElement):
    
    Source/WebKit/chromium: 
    
    * features.gypi:
    * src/ApplicationCacheHost.cpp:
    * src/ApplicationCacheHostInternal.h:
    * src/AssertMatchingEnums.cpp:
    * src/ChromeClientImpl.cpp:
    (WebKit::ChromeClientImpl::reachedApplicationCacheOriginQuota):
    * src/ChromeClientImpl.h:
    * src/WebDataSourceImpl.cpp:
    (WebKit::WebDataSourceImpl::applicationCacheHost):
    * src/WebRuntimeFeatures.cpp:
    (WebKit::WebRuntimeFeatures::enableApplicationCache):
    (WebKit::WebRuntimeFeatures::isApplicationCacheEnabled):
    
    Source/WebKit/efl: 
    
    * WebCoreSupport/ChromeClientEfl.cpp:
    (WebCore::ChromeClientEfl::reachedApplicationCacheOriginQuota):
    * WebCoreSupport/ChromeClientEfl.h:
    * ewk/ewk_main.cpp:
    (_ewk_init_body):
    * ewk/ewk_settings.cpp:
    (ewk_settings_cache_directory_path_set):
    (ewk_settings_cache_directory_path_get):
    
    Source/WebKit/gtk: 
    
    * WebCoreSupport/ChromeClientGtk.cpp:
    (WebKit::ChromeClient::reachedApplicationCacheOriginQuota):
    * WebCoreSupport/ChromeClientGtk.h:
    * webkit/webkitapplicationcache.cpp:
    (webkit_application_cache_get_maximum_size):
    (webkit_application_cache_set_maximum_size):
    (webkit_application_cache_get_database_directory_path):
    * webkit/webkitglobals.cpp:
    (webkitInit):
    
    Source/WebKit/haiku: 
    
    * WebCoreSupport/ChromeClientHaiku.cpp:
    (WebCore::ChromeClientWx::reachedApplicationCacheOriginQuota):
    * WebCoreSupport/ChromeClientHaiku.h:
    
    Source/WebKit/mac: 
    
    * Configurations/FeatureDefines.xcconfig:
    * Misc/WebCache.mm:
    (+[WebCache empty]):
    * WebCoreSupport/WebApplicationCache.mm:
    * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
    (-[WebApplicationCacheQuotaManager usage]):
    (-[WebApplicationCacheQuotaManager quota]):
    (-[WebApplicationCacheQuotaManager setQuota:]):
    * WebCoreSupport/WebChromeClient.h:
    * WebCoreSupport/WebChromeClient.mm:
    * WebView/WebDataSource.mm:
    (-[WebDataSource _transferApplicationCache:]):
    * WebView/WebFrame.mm:
    (-[WebFrame _cacheabilityDictionary]):
    * WebView/WebView.mm:
    (WebKitInitializeApplicationCachePathIfNecessary):
    
    Source/WebKit/qt: 
    
    * Api/qwebsecurityorigin.cpp:
    (QWebSecurityOrigin::setApplicationCacheQuota):
    * Api/qwebsettings.cpp:
    (QWebSettings::setOfflineWebApplicationCachePath):
    (QWebSettings::offlineWebApplicationCachePath):
    (QWebSettings::setOfflineWebApplicationCacheQuota):
    (QWebSettings::offlineWebApplicationCacheQuota):
    * WebCoreSupport/ChromeClientQt.cpp:
    (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
    * WebCoreSupport/ChromeClientQt.h:
    * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
    (DumpRenderTreeSupportQt::clearAllApplicationCaches):
    
    Source/WebKit/win: 
    
    * WebCoreSupport/WebChromeClient.cpp:
    (WebChromeClient::reachedApplicationCacheOriginQuota):
    * WebCoreSupport/WebChromeClient.h:
    
    Source/WebKit/wince: 
    
    * WebCoreSupport/ChromeClientWinCE.cpp:
    (WebKit::ChromeClientWinCE::reachedApplicationCacheOriginQuota):
    * WebCoreSupport/ChromeClientWinCE.h:
    
    Source/WebKit/wx: 
    
    * WebKitSupport/ChromeClientWx.cpp:
    (WebCore::ChromeClientWx::reachedApplicationCacheOriginQuota):
    * WebKitSupport/ChromeClientWx.h:
    
    Source/WebKit2: 
    
    * Configurations/FeatureDefines.xcconfig:
    * UIProcess/qt/WebContextQt.cpp:
    (WebKit::WebContext::applicationCacheDirectory):
    * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
    (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
    (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
    (WebKit::WebApplicationCacheManager::deleteAllEntries):
    * WebProcess/WebCoreSupport/WebChromeClient.cpp:
    (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota):
    * WebProcess/WebCoreSupport/WebChromeClient.h:
    * WebProcess/WebProcess.cpp:
    (WebKit::WebProcess::initializeWebProcess):
    (WebKit::WebProcess::clearApplicationCache):
    * WebProcess/WebProcess.h:
    
    Tools: 
    
    * Scripts/build-webkit:
    
    WebKitLibraries: 
    
    * win/tools/vsprops/FeatureDefines.vsprops:
    * win/tools/vsprops/FeatureDefinesCairo.vsprops:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f3ad7acf