Bug 1484373: Follow-up: Fix null deref. r=bustage CLOSED TREE
This commit is contained in:
@@ -541,7 +541,10 @@ ExtensionPolicyService::CheckWindow(nsPIDOMWindowOuter* aWindow)
|
||||
void
|
||||
ExtensionPolicyService::CheckContentScripts(const DocInfo& aDocInfo, bool aIsPreload)
|
||||
{
|
||||
nsCOMPtr<nsPIDOMWindowInner> win = aDocInfo.GetWindow()->GetCurrentInnerWindow();
|
||||
nsCOMPtr<nsPIDOMWindowInner> win;
|
||||
if (!aIsPreload) {
|
||||
win = aDocInfo.GetWindow()->GetCurrentInnerWindow();
|
||||
}
|
||||
|
||||
for (auto iter = mExtensions.Iter(); !iter.Done(); iter.Next()) {
|
||||
if (!win->IsCurrentInnerWindow()) {
|
||||
|
||||
Reference in New Issue
Block a user