Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: LayoutTests/http/tests/navigation/resources/back-send-referrer-helper.php

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/navigation/resources/back-send-referrer-helper.php
diff --git a/LayoutTests/http/tests/navigation/resources/back-send-referrer-helper.php b/LayoutTests/http/tests/navigation/resources/back-send-referrer-helper.php
index cfc1f5c420d18645ed63a90f077b90661a66caa0..80116864c0564db00905fc32b8ab0b8ae45a36ab 100644
--- a/LayoutTests/http/tests/navigation/resources/back-send-referrer-helper.php
+++ b/LayoutTests/http/tests/navigation/resources/back-send-referrer-helper.php
@@ -18,8 +18,8 @@ window.name: <script>document.write(window.name)</script>
<script>
if (window.name == 1) {
- // Navigate once more (in a timeout) to add a history entry.
- setTimeout(function() {document.loopback.submit();}, 0);
+ // Navigate once more (in a RAF) to add a history entry.
+ requestAnimationFrame(function() {document.loopback.submit();});
} else if (window.name == 2) {
history.go(-1);
} else {

Powered by Google App Engine
This is Rietveld 408576698