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

Unified Diff: LayoutTests/fullscreen/full-screen-contentEditable-crash.html

Issue 414303006: Fix use-after-free related to RenderFullScreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: new deal Created 6 years, 5 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/fullscreen/full-screen-contentEditable-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/full-screen-contentEditable-crash.html
diff --git a/LayoutTests/fullscreen/full-screen-contentEditable-crash.html b/LayoutTests/fullscreen/full-screen-contentEditable-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..7c6df542bcf9e5794f46ddffa89ff92742c95908
--- /dev/null
+++ b/LayoutTests/fullscreen/full-screen-contentEditable-crash.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+Pass if there is no crash.
+<div></div>
+<span></span>
+Click anywhere to test manually.
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+function requestFullscreen()
+{
+ document.querySelector("span").webkitRequestFullScreen();
+}
+
+document.addEventListener("webkitfullscreenchange", function()
+{
+ document.body.contentEditable = "true";
+ var range = document.createRange();
+ range.selectNode(document.body);
+ document.getSelection().addRange(range);
+ document.execCommand("hiliteColor", false, "#000");
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+});
+
+document.addEventListener("click", requestFullscreen);
+
+if (window.eventSender) {
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-contentEditable-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698