Bug 1805873 - Clean up HasWorkerLoadContext code related to non-cc'd load context;r=jonco

Differential Revision: https://phabricator.services.mozilla.com/D165040
This commit is contained in:
Yulia Startsev 2022-12-19 15:34:10 +00:00
Родитель 5fb1e00941
Коммит 6952f8568d
1 изменённых файлов: 0 добавлений и 6 удалений

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

@ -112,12 +112,6 @@ void ScriptLoadRequest::Cancel() {
if (HasScriptLoadContext()) {
GetScriptLoadContext()->MaybeCancelOffThreadScript();
}
if (HasWorkerLoadContext()) {
// The back reference needs to be cleared for workers, as there is no CC.
// However, we don't want to remove our pointer to the worker load
// context as it is used to determine load failure information.
GetWorkerLoadContext()->mRequest = nullptr;
}
}
void ScriptLoadRequest::DropBytecodeCacheReferences() {