Bug 1233899 - fix the feeds converter to use default user context origin attributes. r=baku

(HEAD -> Bug_1233899)
passing origin attributes from loading channel to feed rendering page.
This commit is contained in:
Dave Huseby 2016-06-06 14:22:00 +02:00
Родитель 41ab04a4e2
Коммит 47d1fa5cde
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -255,8 +255,11 @@ FeedConverter.prototype = {
let aboutFeedsURI = ios.newURI("about:feeds", null, null);
chromeChannel = ios.newChannelFromURIWithLoadInfo(aboutFeedsURI, loadInfo);
chromeChannel.originalURI = result.uri;
// carry the origin attributes from the channel that loaded the feed.
chromeChannel.owner =
Services.scriptSecurityManager.createCodebasePrincipal(aboutFeedsURI, {});
Services.scriptSecurityManager.createCodebasePrincipal(aboutFeedsURI,
loadInfo.originAttributes);
} else {
chromeChannel = ios.newChannelFromURIWithLoadInfo(result.uri, loadInfo);
}