commit f285e70076c7a1a056221d226a29648ff4f20968
parent 49150a9a555a73e21dc20181c204b6003b17c167
Author: Simon Farre <sfarre@mozilla.com>
Date: Tue, 11 Nov 2025 16:21:22 +0000
Bug 1999467 - Make test compliant with earlier test r=dom-core,jjaschke
Removed the line that checks for history.length, so that this change will not affect chrome or other browsers. Reasoning for this is that we already have the web platform test /html/browsers/history/joint-session-history/joint-session-history-remove-iframe.html
Differential Revision: https://phabricator.services.mozilla.com/D272127
Diffstat:
2 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/testing/web-platform/meta/navigation-api/navigate-event/navigate-history-back-noop.html.ini b/testing/web-platform/meta/navigation-api/navigate-event/navigate-history-back-noop.html.ini
@@ -1,3 +0,0 @@
-[navigate-history-back-noop.html]
- [history.back() does not fire a navigate event when there's nothing to navigate]
- expected: FAIL
diff --git a/testing/web-platform/tests/navigation-api/navigate-event/navigate-history-back-noop.html b/testing/web-platform/tests/navigation-api/navigate-event/navigate-history-back-noop.html
@@ -22,7 +22,6 @@ promise_test(async t => {
i.remove();
assert_equals(navigation.entries().length, start_length);
assert_equals(navigation.currentEntry.index, start_index);
- assert_equals(history.length, start_history_length + 1);
// back() here should do nothing. The iframe that would have navigated has
// been removed. No navigate event should be fired.