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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html

Issue 2706913003: FrameView can be null in addTextMatchMaker() after appendChild(iframe) (Closed)
Patch Set: Rebase Created 3 years, 10 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/paint/invalidation/add-text-match-maker-crash.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html b/third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..6dc7b18a1347c795520ba299aa6c1be8a859ebd6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html
@@ -0,0 +1,14 @@
+<script src="../../resources/js-test.js"></script>
tkent 2017/02/21 23:19:44 Please do not add new test using js-test.js. IMO,
hiroshige 2017/02/21 23:29:56 Removed.
+<script>
+description("Tests that internals.addTextMatchMaker doesn't crash with " +
+ "range with null FrameView https://crbug.com/693848");
+
+onload = function () {
+ var iframe = document.getElementById('iframe');
+ var range = iframe.contentWindow.document.createRange();
+ document.getElementById('parent').appendChild(iframe);
+ iframe.contentWindow.internals.addTextMatchMarker(range, false);
+}
+</script>
+<div id=parent></div>
+<iframe id=iframe></iframe>

Powered by Google App Engine
This is Rietveld 408576698