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