mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Issue #686: Un-deprecate the Application Cache API
This commit is contained in:
parent
e4eb8532f5
commit
d330e7e8fc
4 changed files with 0 additions and 28 deletions
|
|
@ -44,7 +44,6 @@ DEPRECATED_OPERATION(PannerNodeDoppler)
|
|||
DEPRECATED_OPERATION(NavigatorGetUserMedia)
|
||||
DEPRECATED_OPERATION(WebrtcDeprecatedPrefix)
|
||||
DEPRECATED_OPERATION(RTCPeerConnectionGetStreams)
|
||||
DEPRECATED_OPERATION(AppCache)
|
||||
DEPRECATED_OPERATION(PrefixedImageSmoothingEnabled)
|
||||
DEPRECATED_OPERATION(PrefixedFullscreenAPI)
|
||||
DEPRECATED_OPERATION(LenientSetter)
|
||||
|
|
|
|||
|
|
@ -195,8 +195,6 @@ IgnoringWillChangeOverBudgetWarning=Will-change memory consumption is too high.
|
|||
HittingMaxWorkersPerDomain2=A Worker could not be started immediately because other documents in the same origin are already using the maximum number of workers. The Worker is now queued and will be started after some of the other workers have completed.
|
||||
# LOCALIZATION NOTE: Do not translate "setVelocity", "PannerNode", "AudioListener", "speedOfSound" and "dopplerFactor"
|
||||
PannerNodeDopplerWarning=Use of setVelocity on the PannerNode and AudioListener, and speedOfSound and dopplerFactor on the AudioListener are deprecated and those members will be removed. For more help https://developer.mozilla.org/en-US/docs/Web/API/AudioListener#Deprecated_features
|
||||
# LOCALIZATION NOTE: Do not translate "Application Cache API", "AppCache" and "ServiceWorker".
|
||||
AppCacheWarning=The Application Cache API (AppCache) is deprecated and will be removed at a future date. Please consider using ServiceWorker for offline support.
|
||||
# LOCALIZATION NOTE: Do not translate "Worker".
|
||||
EmptyWorkerSourceWarning=Attempting to create a Worker from an empty source. This is probably unintentional.
|
||||
WebrtcDeprecatedPrefixWarning=WebRTC interfaces with the “moz” prefix (mozRTCPeerConnection, mozRTCSessionDescription, mozRTCIceCandidate) have been deprecated.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
@ -8186,21 +8178,6 @@ nsHttpChannel::ResumeInternal()
|
|||
return NS_FAILED(rvTransaction) ? rvTransaction : rvCache;
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -452,8 +452,6 @@ private:
|
|||
|
||||
void SetPushedStream(Http2PushedStream *stream);
|
||||
|
||||
void MaybeWarnAboutAppCache();
|
||||
|
||||
void SetDoNotTrack();
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue