mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 911444 part 3. Store the principal a PDF viewer document would have had if the PDF viewer had not messed with the principal. r=bdahl,bholley
Differential Revision: https://phabricator.services.mozilla.com/D63709 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
aa65e88c73
commit
4750163d3b
@ -1182,7 +1182,12 @@ PdfStreamConverter.prototype = {
|
||||
uri,
|
||||
aRequest.loadInfo.originAttributes
|
||||
);
|
||||
// Remember the principal we would have had before we mess with it.
|
||||
let originalPrincipal = Services.scriptSecurityManager.getChannelResultPrincipal(
|
||||
aRequest
|
||||
);
|
||||
aRequest.owner = resourcePrincipal;
|
||||
aRequest.setProperty("noPDFJSPrincipal", originalPrincipal);
|
||||
|
||||
channel.asyncOpen(proxy);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user