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

Unified Diff: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-document-write.html

Issue 2657743004: Handle stale m_owner in FrameView::needsScrollbarReconstruction. (Closed)
Patch Set: rebase Created 3 years, 11 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/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-document-write.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-document-write.html b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-document-write.html
new file mode 100644
index 0000000000000000000000000000000000000000..f23909750486163b13b10726588af153985e6edc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-reconstruction-document-write.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<iframe></iframe>
+<script>
+
+function writeDoc() {
+ var doc = document.querySelector("iframe").contentDocument;
+ doc.open();
+ doc.write(`
+ <style>
+ ::-webkit-scrollbar-thumb { background-color: blue; }
+ ::-webkit-scrollbar { width: 50px; height: 50px; }
+ body { height: 400px; overflow: scroll; }
+ </style>`);
+ doc.close();
+ assert_equals(doc.documentElement.offsetWidth, 250);
+}
+
+test(() => {
+ writeDoc();
+ writeDoc();
+}, "Preserve iframe custom scrollbar after replacing contents with document.write.");
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698