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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-mutation-crash.html

Issue 2040123002: SELECT popup: Fix a crash by DOM mutation during opening popup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698