Skip to content

Commit

Permalink
Bug 1888423 [wpt PR 45408] - [bfcache] Rename reasons to match the sp…
Browse files Browse the repository at this point in the history
…ec, a=testonly

Automatic update from web-platform-tests
[bfcache] Rename reasons to match the spec

This CL renames the reporting strings of NotRestoredReasons API so that
they match the spec draft[1].

[1]: whatwg/html#10154

Bug: 331754704
Change-Id: If805ad7e30c14ff64b440c8d9515eaee38370fd8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5392283
Commit-Queue: Yuzu Saijo <yuzus@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1280059}

--

wpt-commits: e99b8186f7272559b3d419445faef703958bfdd1
wpt-pr: 45408
  • Loading branch information
rubberyuzu authored and moz-wptsync-bot committed Apr 10, 2024
1 parent 150c679 commit 285f3ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ promise_test(async t => {

// Check the BFCache result and the reported reasons.
await assertBFCacheEligibility(rc1, /*shouldRestoreFromBFCache=*/ false);
await assertNotRestoredFromBFCache(rc1, ['navigation-failure']);
await assertNotRestoredFromBFCache(rc1, ['response-status-not-ok']);
});
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ promise_test(async t => {
await openWebRTC(rc1);
// The page should not be eligible for BFCache because of open WebRTC connection and live MediaStreamTrack.
await assertBFCacheEligibility(rc1, /*shouldRestoreFromBFCache=*/ false);
await assertNotRestoredFromBFCache(rc1, ['webrtc', 'media-stream']);
await assertNotRestoredFromBFCache(rc1, ['rtc', 'mediastream']);
});

0 comments on commit 285f3ac

Please sign in to comment.