Bug 1879726 - Save-link-as feature should use the loading principal and context menu using nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD. r=frg
This commit is contained in:
Родитель
760fc50167
Коммит
422e88bffc
|
@ -1248,7 +1248,8 @@ nsContextMenu.prototype = {
|
|||
// set up a channel to do the saving
|
||||
var channel = NetUtil.newChannel({
|
||||
uri: makeURI(linkURL),
|
||||
loadUsingSystemPrincipal: true,
|
||||
loadingPrincipal: this.principal,
|
||||
contentPolicyType: Ci.nsIContentPolicy.TYPE_SAVEAS_DOWNLOAD,
|
||||
securityFlags: Ci.nsILoadInfo.SEC_ALLOW_CROSS_ORIGIN_SEC_CONTEXT_IS_NULL
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче