Skip to content
Permalink
Browse files
Flaky API Test: TestWebKitAPI.ProcessSwap.NavigateToDataURLThenBack
https://bugs.webkit.org/show_bug.cgi?id=194545

Reviewed by Brady Eidson.

Make sure the test navigates forward and then back only once. Previously, navigating
back would trigger a navigation again in a timer.

* TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:


Canonical link: https://commits.webkit.org/209472@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
cdumez committed Feb 28, 2019
1 parent 5aa5a80 commit bbbe94bc3eaf9374dafd53125e8b96428606e324
Showing 2 changed files with 18 additions and 0 deletions.
@@ -1,3 +1,15 @@
2019-02-27 Chris Dumez <cdumez@apple.com>

Flaky API Test: TestWebKitAPI.ProcessSwap.NavigateToDataURLThenBack
https://bugs.webkit.org/show_bug.cgi?id=194545

Reviewed by Brady Eidson.

Make sure the test navigates forward and then back only once. Previously, navigating
back would trigger a navigation again in a timer.

* TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:

2019-02-13 Ryan Haddad <ryanhaddad@apple.com>

High Sierra Debug JSC test queue should use faster hardware
@@ -3748,6 +3748,12 @@ function loaded() {
static const char* navigateToDataURLThenBackBytes = R"PSONRESOURCE(
<script>
onpageshow = function(event) {
if (sessionStorage.getItem('navigated') == 'true') {
sessionStorage.clear();
return;
}
sessionStorage.setItem('navigated', 'true');

// Location changes need to happen outside the onload handler to generate history entries.
setTimeout(function() {
window.location.href = "data:text/html,<body onload='history.back()'></body>";

0 comments on commit bbbe94b

Please sign in to comment.