From 28a7d9c7d5cfa95d339f8a73274b20c1bc36dce1 Mon Sep 17 00:00:00 2001 From: Eugen Sawin Date: Sun, 21 Jul 2019 19:06:22 +0000 Subject: [PATCH] Bug 1501108 - [7.0] Add empty origin attribute values to fix yet another desktop test. Differential Revision: https://phabricator.services.mozilla.com/D38820 --HG-- extra : moz-landing-system : lando --- .../content/test/caps/browser_principalSerialization_csp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/browser/base/content/test/caps/browser_principalSerialization_csp.js b/browser/base/content/test/caps/browser_principalSerialization_csp.js index 9a952a096da8..ca99c617f8a5 100644 --- a/browser/base/content/test/caps/browser_principalSerialization_csp.js +++ b/browser/base/content/test/caps/browser_principalSerialization_csp.js @@ -54,6 +54,7 @@ add_task(async function test_deserialize_principal_with_csp() { inIsolatedMozBrowser: false, privateBrowsingId: 0, userContextId: 0, + geckoViewSessionContextId: "", }, }, }, @@ -67,6 +68,7 @@ add_task(async function test_deserialize_principal_with_csp() { inIsolatedMozBrowser: false, privateBrowsingId: 0, userContextId: 0, + geckoViewSessionContextId: "", }, // Within Bug 965637 we removed CSP from Principals. Already serialized Principals however should still deserialize correctly (just without the CSP). // "cspJSON": "{\"csp-policies\":[{\"child-src\":[\"https://www.googletagmanager.com\",\"https://www.google-analytics.com\",\"https://www.youtube-nocookie.com\",\"https://trackertest.org\",\"https://www.surveygizmo.com\",\"https://accounts.firefox.com\",\"https://accounts.firefox.com.cn\",\"https://www.youtube.com\"],\"connect-src\":[\"'self'\",\"https://*.mozilla.net\",\"https://*.mozilla.org\",\"https://*.mozilla.com\",\"https://www.googletagmanager.com\",\"https://www.google-analytics.com\",\"https://accounts.firefox.com/\",\"https://accounts.firefox.com.cn/\"],\"default-src\":[\"'self'\",\"https://*.mozilla.net\",\"https://*.mozilla.org\",\"https://*.mozilla.com\"],\"frame-src\":[\"https://www.googletagmanager.com\",\"https://www.google-analytics.com\",\"https://www.youtube-nocookie.com\",\"https://trackertest.org\",\"https://www.surveygizmo.com\",\"https://accounts.firefox.com\",\"https://accounts.firefox.com.cn\",\"https://www.youtube.com\"],\"img-src\":[\"'self'\",\"https://*.mozilla.net\",\"https://*.mozilla.org\",\"https://*.mozilla.com\",\"data:\",\"https://mozilla.org\",\"https://www.googletagmanager.com\",\"https://www.google-analytics.com\",\"https://adservice.google.com\",\"https://adservice.google.de\",\"https://adservice.google.dk\",\"https://creativecommons.org\",\"https://ad.doubleclick.net\"],\"report-only\":false,\"script-src\":[\"'self'\",\"https://*.mozilla.net\",\"https://*.mozilla.org\",\"https://*.mozilla.com\",\"'unsafe-inline'\",\"'unsafe-eval'\",\"https://www.googletagmanager.com\",\"https://www.google-analytics.com\",\"https://tagmanager.google.com\",\"https://www.youtube.com\",\"https://s.ytimg.com\"],\"style-src\":[\"'self'\",\"https://*.mozilla.net\",\"https://*.mozilla.org\",\"https://*.mozilla.com\",\"'unsafe-inline'\"]}]}",