There's always an ApplicationCacheHost on the DocumentLoader. applicationCacheHost() should return a reference.
Created attachment 244917 [details] Patch
Comment on attachment 244917 [details] Patch Attachment 244917 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5840873489170432 New failing tests: http/tests/appcache/different-origin-manifest.html http/tests/appcache/document-write-html-element.html http/tests/appcache/cyrillic-uri.html http/tests/appcache/online-whitelist.html http/tests/appcache/insert-html-element-with-manifest-2.html http/tests/appcache/crash-when-navigating-away-then-back.html http/tests/appcache/navigating-away-while-cache-attempt-in-progress.html http/tests/appcache/max-size.html http/tests/appcache/origin-quota.html http/tests/appcache/top-frame-1.html http/tests/appcache/whitelist-wildcard.html http/tests/appcache/disabled.html http/tests/appcache/main-resource-fallback-for-network-error-crash.html http/tests/appcache/reload.html http/tests/appcache/history-test.html http/tests/appcache/main-resource-redirect.html http/tests/appcache/fail-on-update.html http/tests/appcache/top-frame-3.html http/tests/appcache/resource-redirect-2.html http/tests/appcache/wrong-signature-2.html http/tests/appcache/manifest-parsing.html http/tests/appcache/origin-quota-continued-download-multiple-manifests.html http/tests/appcache/origins-with-appcache.html http/tests/appcache/update-cache.html http/tests/appcache/offline-access.html http/tests/appcache/foreign-fallback.html http/tests/security/cross-origin-appcache.html http/tests/appcache/local-content.html http/tests/appcache/fail-on-update-2.html
Created attachment 244923 [details] Archive of layout-test-results from ews105 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Comment on attachment 244917 [details] Patch Attachment 244917 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/5559445622882304 Number of test failures exceeded the failure limit.
Created attachment 244942 [details] Archive of layout-test-results from ews100 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-mavericks Platform: Mac OS X 10.9.5
Comment on attachment 244917 [details] Patch Cleared Anders Carlsson's review+ from obsolete attachment 244917 [details] so that this bug does not appear in http://webkit.org/pending-commit.