Bug 1871376 - enable keepalive tests. r=necko-reviewers,kershaw

Differential Revision: https://phabricator.services.mozilla.com/D206509
This commit is contained in:
sunil mayya 2024-06-13 06:27:18 +00:00
parent 1d1d486194
commit 7efb7e9888
5 changed files with 2 additions and 8 deletions

View File

@ -1 +1,2 @@
leak-threshold: [tab:51200]
prefs: [dom.fetchKeepalive.enabled:true]

View File

@ -1,2 +0,0 @@
[keepalive.any.html]
disabled: true

View File

@ -1,2 +0,0 @@
[cors-keepalive.any.html]
disabled: true

View File

@ -1,2 +0,0 @@
[redirect-keepalive.any.html]
disabled:true

View File

@ -18,7 +18,7 @@ const {
* document event.
*/
function keepaliveSimpleRequestTest(method) {
for (const evt of ['load', 'pagehide', 'unload']) {
for (const evt of ['load', 'unload', 'pagehide']) {
const desc =
`[keepalive] simple ${method} request on '${evt}' [no payload]`;
promise_test(async (test) => {
@ -30,7 +30,6 @@ function keepaliveSimpleRequestTest(method) {
if (evt != 'load') {
iframe.remove();
}
assert_equals(await getTokenFromMessage(), token1);
assertStashedTokenAsync(desc, token1);
}, `${desc}; setting up`);