Index: third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-mutation-crash.html |
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-mutation-crash.html b/third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-mutation-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e3f805ca2bdf64ddbf800dcc29c85ac4cb403e15 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-mutation-crash.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<script src="../resources/picker-common.js"></script> |
+<select id=select1> |
+<script> |
+test(() => { |
+ var select1 = document.getElementById("select1") |
+ openPicker(select1, {}); |
+ var div = select1.appendChild(document.createElement("div")) |
+ div.appendChild(document.createElement("optgroup")) |
+ select1.innerText = ""; |
+ div.replaceChild(select1, div.lastChild) |
+}, "No crash even if an internal MutationObserver callback is called after the MutationObserver was diconnected."); |
+</script> |