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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/custom-event-detail-leak.html

Issue 1372513002: Store |detail| as a hidden value of custom event wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: third_party/WebKit/LayoutTests/fast/events/custom-event-detail-leak.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/custom-event-detail-leak.html b/third_party/WebKit/LayoutTests/fast/events/custom-event-detail-leak.html
new file mode 100644
index 0000000000000000000000000000000000000000..c81c4de3199cb9b4b7dc9d3c613b091f2e987867
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/custom-event-detail-leak.html
@@ -0,0 +1,6 @@
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+// This shouldn't leak document objects.
+var e = new CustomEvent('custom', {'detail': new Error()});
+</script>

Powered by Google App Engine
This is Rietveld 408576698