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

Unified Diff: third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html

Issue 1708923002: Ensure WebView plugins run their lifecycle even absent main frame Layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to disabling stylesheet Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html
diff --git a/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html b/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..d6ab5ff1a1f9b3c38ed96044a5999c99993c862f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+html:first-letter { color: papayawhip; }
esprehn 2016/02/18 03:27:43 why does the first letter matter? what does it cau
+</style>
+<script>
+function boom() {
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ // Trigger a full-document style recalc.
+ document.getElementsByTagName("style")[0].disabled = true;
+ // Force the style to update without running the rest of the lifecycle.
+ document.querySelector("embed").align;
+}
+</script>
+<body onload="boom()">
+<embed type="html">
+Test passes if no crash.
+
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698