Bug 1179161 - originAttributes does not have such isInBrowser member (follow-up bug 1171915). r=ferjm

This commit is contained in:
Jose Antonio Olivera Ortega 2015-07-02 12:16:50 +02:00
parent da8ddddc60
commit 69e941f4df

View File

@ -149,7 +149,7 @@ this.AboutServiceWorkers = {
!message.principal.origin || !message.principal.origin ||
!message.principal.originAttributes || !message.principal.originAttributes ||
!message.principal.originAttributes.appId || !message.principal.originAttributes.appId ||
!message.principal.originAttributes.isInBrowser) { (message.principal.originAttributes.inBrowser == null)) {
self.sendError(message.id, "MissingPrincipal"); self.sendError(message.id, "MissingPrincipal");
return; return;
} }
@ -157,7 +157,7 @@ this.AboutServiceWorkers = {
let principal = Services.scriptSecurityManager.getAppCodebasePrincipal( let principal = Services.scriptSecurityManager.getAppCodebasePrincipal(
Services.io.newURI(message.principal.origin, null, null), Services.io.newURI(message.principal.origin, null, null),
message.principal.originAttributes.appId, message.principal.originAttributes.appId,
message.principal.originAttributes.isInBrowser message.principal.originAttributes.inBrowser
); );
if (!message.scope) { if (!message.scope) {