Bug 1589074 - Fix geckoview test failures after changing default referrer policy to strict-origin-when-cross-origin. r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D88554
This commit is contained in:
Dimi Lee 2021-01-22 08:48:11 +00:00
Родитель 047a585e08
Коммит 3222982679
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1393,7 +1393,7 @@ class NavigationDelegateTest : BaseSessionTest() {
@Test fun loadUriReferrerSession() {
val uri = "https://example.com/bar"
val referrer = "https://example.org/foo"
val referrer = "https://example.org/"
sessionRule.session.loadUri(referrer)
sessionRule.session.waitForPageStop()

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

@ -130,7 +130,7 @@ class WebExecutorTest {
assertThat("Headers should match", body.getJSONObject("headers").getString("Header1"), equalTo("Value"))
assertThat("Headers should match", body.getJSONObject("headers").getString("Header2"), equalTo("Value1, Value2"))
assertThat("Headers should match", body.getJSONObject("headers").getString("Content-Type"), equalTo("text/plain"))
assertThat("Referrer should match", body.getJSONObject("headers").getString("Referer"), equalTo(referrer))
assertThat("Referrer should match", body.getJSONObject("headers").getString("Referer"), equalTo("http://foo/"))
assertThat("Data should match", body.getString("data"), equalTo(bodyString));
}