зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
41ab04a4e2
Коммит
47d1fa5cde
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче