Bug 1585582 - Don't parse manifest when storage is disabled r=baku

Differential Revision: https://phabricator.services.mozilla.com/D47958

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jonathan Kingston 2019-10-16 15:36:51 +00:00
Родитель ebf4d3f7df
Коммит 5f72da5f69
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -998,6 +998,11 @@ void nsContentSink::ProcessOfflineManifest(const nsAString& aManifestSpec) {
return;
}
// If offline storage is disabled skip processing
if (!StaticPrefs::browser_cache_offline_storage_enable()) {
return;
}
// If this document has been interecepted, let's skip the processing of the
// manifest.
if (mDocument->GetController().isSome()) {