diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index d5cc7aad1d0..50d3e11eb17 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -6292,9 +6292,11 @@ nsDocShell::InternalLoad(nsIURI * aURI, nsCOMPtr owner(aOwner); // - // Get an owner from the current document if necessary + // Get an owner from the current document if necessary, but only + // if this is not an external load. // - if (!owner && (aFlags & INTERNAL_LOAD_FLAGS_INHERIT_OWNER)) + if (aLoadType != LOAD_NORMAL_EXTERNAL && !owner && + (aFlags & INTERNAL_LOAD_FLAGS_INHERIT_OWNER)) GetCurrentDocumentOwner(getter_AddRefs(owner)); //