Skip to content

Commit 3fad667

Browse files
Bug #16855: Allow blobs to be downloaded on first-party pages
This patch may be made obsolete by Tanvi's work: https://bugzilla.mozilla.org/show_bug.cgi?id=1198559#c15
1 parent 769e682 commit 3fad667

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docshell/base/nsDocShell.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10538,9 +10538,14 @@ nsDocShell::DoURILoad(nsIURI* aURI,
1053810538

1053910539
nsCOMPtr<nsINode> requestingNode;
1054010540
if (mScriptGlobal) {
10541-
requestingNode = mScriptGlobal->GetFrameElementInternal();
10542-
if (!requestingNode) {
10541+
if (!aFileName.IsVoid()) {
10542+
// File is being downloaded. Assign current document to requesting node.
1054310543
requestingNode = mScriptGlobal->GetExtantDoc();
10544+
} else {
10545+
requestingNode = mScriptGlobal->GetFrameElementInternal();
10546+
if (!requestingNode) {
10547+
requestingNode = mScriptGlobal->GetExtantDoc();
10548+
}
1054410549
}
1054510550
}
1054610551

0 commit comments

Comments
 (0)