summaryrefslogtreecommitdiffstats
path: root/netwerk
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-08-05 17:50:00 +0200
committerGitHub <noreply@github.com>2018-08-05 17:50:00 +0200
commitf4e8c30f3eb92595607aa667a6aa1df7480560d1 (patch)
treed85dc4fd5cf8d33be1a8526bdcd35efd7f96b6ac /netwerk
parent559824514dc95e02fbe81f1786e6ac13ee8e9d55 (diff)
parente5064882f1a6d2c55649957b1bcc22d3a1949861 (diff)
downloadUXP-f4e8c30f3eb92595607aa667a6aa1df7480560d1.tar
UXP-f4e8c30f3eb92595607aa667a6aa1df7480560d1.tar.gz
UXP-f4e8c30f3eb92595607aa667a6aa1df7480560d1.tar.lz
UXP-f4e8c30f3eb92595607aa667a6aa1df7480560d1.tar.xz
UXP-f4e8c30f3eb92595607aa667a6aa1df7480560d1.zip
Merge pull request #697 from SpockFan02/undeprecate-appcache
Issue #686: Un-deprecate the Application Cache API
Diffstat (limited to 'netwerk')
-rw-r--r--netwerk/protocol/http/nsHttpChannel.cpp23
-rw-r--r--netwerk/protocol/http/nsHttpChannel.h2
2 files changed, 0 insertions, 25 deletions
diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp
index ac855b478..d7247eeab 100644
--- a/netwerk/protocol/http/nsHttpChannel.cpp
+++ b/netwerk/protocol/http/nsHttpChannel.cpp
@@ -3372,10 +3372,6 @@ nsHttpChannel::ContinueProcessFallback(nsresult rv)
}
NS_ENSURE_SUCCESS(rv, rv);
- if (mLoadFlags & LOAD_INITIAL_DOCUMENT_URI) {
- MaybeWarnAboutAppCache();
- }
-
// close down this channel
Cancel(NS_BINDING_REDIRECTED);
@@ -4261,10 +4257,6 @@ nsHttpChannel::OnOfflineCacheEntryAvailable(nsICacheEntry *aEntry,
mCacheEntry = aEntry;
mCacheEntryIsWriteOnly = false;
- if (mLoadFlags & LOAD_INITIAL_DOCUMENT_URI && !mApplicationCacheForWrite) {
- MaybeWarnAboutAppCache();
- }
-
return NS_OK;
}
@@ -8187,21 +8179,6 @@ nsHttpChannel::ResumeInternal()
}
void
-nsHttpChannel::MaybeWarnAboutAppCache()
-{
- // First, accumulate a telemetry ping about appcache usage.
- Telemetry::Accumulate(Telemetry::HTTP_OFFLINE_CACHE_DOCUMENT_LOAD,
- true);
-
- // Then, issue a deprecation warning.
- nsCOMPtr<nsIDeprecationWarner> warner;
- GetCallback(warner);
- if (warner) {
- warner->IssueWarning(nsIDocument::eAppCache, false);
- }
-}
-
-void
nsHttpChannel::SetDoNotTrack()
{
/**
diff --git a/netwerk/protocol/http/nsHttpChannel.h b/netwerk/protocol/http/nsHttpChannel.h
index 3a322e8e2..2e24d6e81 100644
--- a/netwerk/protocol/http/nsHttpChannel.h
+++ b/netwerk/protocol/http/nsHttpChannel.h
@@ -452,8 +452,6 @@ private:
void SetPushedStream(Http2PushedStream *stream);
- void MaybeWarnAboutAppCache();
-
void SetDoNotTrack();
private: