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

Unified Diff: LayoutTests/fast/dom/document-softleak-mouse-navigation.html

Issue 206453010: NavigationAction should not retain Event. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-softleak-mouse-navigation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/document-softleak-mouse-navigation.html
diff --git a/LayoutTests/fast/dom/document-softleak-mouse-navigation.html b/LayoutTests/fast/dom/document-softleak-mouse-navigation.html
new file mode 100644
index 0000000000000000000000000000000000000000..f339d2b5f3fd0722b8d8fd968e4b09559a56d970
--- /dev/null
+++ b/LayoutTests/fast/dom/document-softleak-mouse-navigation.html
@@ -0,0 +1,34 @@
+<!doctype html>
+<html>
+<body>
+<iframe id="target"></iframe>
+<script src="../../resources/js-test.js"></script>
+<script src="../../resources/leak-check.js"></script>
+<script>
+jsTestIsAsync = true;
+
+var countersBefore;
+var iframe = document.getElementById("target");
+
+function onAboutBlankLoad() {
+ setTimeout(function() {
+ countersBefore = getCounterValues();
+ iframe.onload = null;
+ iframe.src = "resources/link.html";
+ }, 0);
+}
+
+function onDone() {
+ setTimeout(function() {
+ var countersAfter = getCounterValues();
+ compareValues(countersBefore, countersAfter, {'numberOfLiveDocuments': 0});
+ finishJSTest();
+ }, 0);
+}
+
+iframe.onload = onAboutBlankLoad;
+iframe.src = "about:blank";
+window.addEventListener("message", onDone, false);
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-softleak-mouse-navigation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698