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

Unified Diff: LayoutTests/fast/dynamic/focus-clear-resolver-crash.html

Issue 259213002: Ensure style resolver is created to avoid crash. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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/dynamic/focus-clear-resolver-crash-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dynamic/focus-clear-resolver-crash.html
diff --git a/LayoutTests/fast/dynamic/focus-clear-resolver-crash.html b/LayoutTests/fast/dynamic/focus-clear-resolver-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..af176d356569c9d85b858d2b880ae58643928718
--- /dev/null
+++ b/LayoutTests/fast/dynamic/focus-clear-resolver-crash.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+div { color: pink }
+:focus { outline: none }
+:focus #inner { color: green }
+</style>
+<div id="focused" tabIndex="1" onfocus="document.styleSheets[0].deleteRule(0);">
+ <span id="inner">This text should be green - no crash.</span>
+</div>
+<script>
+document.getElementById("focused").focus();
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dynamic/focus-clear-resolver-crash-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698