mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 1484373: Follow-up: Fix null deref. r=bustage CLOSED TREE
--HG-- extra : rebase_source : c7805928b5f4e84112a2928df36383d5d56866e3 extra : amend_source : c4862f4c0af9590ba6981dbc12a216a70ede54fb
This commit is contained in:
parent
1894266228
commit
0bf3a103cc
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user