зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1484373: Follow-up: Fix null deref. r=bustage CLOSED TREE
This commit is contained in:
Родитель
d040edd44f
Коммит
bb1e69402e
|
@ -547,10 +547,6 @@ ExtensionPolicyService::CheckContentScripts(const DocInfo& aDocInfo, bool aIsPre
|
|||
}
|
||||
|
||||
for (auto iter = mExtensions.Iter(); !iter.Done(); iter.Next()) {
|
||||
if (!win->IsCurrentInnerWindow()) {
|
||||
break;
|
||||
}
|
||||
|
||||
RefPtr<WebExtensionPolicy> policy = iter.Data();
|
||||
|
||||
for (auto& script : policy->ContentScripts()) {
|
||||
|
@ -558,6 +554,9 @@ ExtensionPolicyService::CheckContentScripts(const DocInfo& aDocInfo, bool aIsPre
|
|||
if (aIsPreload) {
|
||||
ProcessScript().PreloadContentScript(script);
|
||||
} else {
|
||||
if (!win->IsCurrentInnerWindow()) {
|
||||
break;
|
||||
}
|
||||
RefPtr<Promise> promise;
|
||||
ProcessScript().LoadContentScript(script, win, getter_AddRefs(promise));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче