Bug 1549168 - Remove use of principal SerializationHelper in browser.js and replace with E10S.serializePrincipal. r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D29958

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jonathan Kingston 2019-05-05 13:43:10 +00:00
Родитель f0abfc328a
Коммит cb55df3ae6
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -1253,7 +1253,7 @@ function _loadURI(browser, uri, params = {}) {
let loadParams = {
uri,
triggeringPrincipal: triggeringPrincipal
? gSerializationHelper.serializeToString(triggeringPrincipal)
? E10SUtils.serializePrincipal(triggeringPrincipal)
: null,
flags,
referrerInfo: E10SUtils.serializeReferrerInfo(referrerInfo),
@ -3523,9 +3523,7 @@ function getSecurityInfo(securityInfoAsString) {
if (!securityInfoAsString)
return null;
const serhelper = Cc["@mozilla.org/network/serialization-helper;1"]
.getService(Ci.nsISerializationHelper);
let securityInfo = serhelper.deserializeObject(securityInfoAsString);
let securityInfo = gSerializationHelper.deserializeObject(securityInfoAsString);
securityInfo.QueryInterface(Ci.nsITransportSecurityInfo);
return securityInfo;