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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <iframe></iframe>
5 <script>
6
7 function writeDoc() {
8 var doc = document.querySelector("iframe").contentDocument;
9 doc.open();
10 doc.write(`
11 <style>
12 ::-webkit-scrollbar-thumb { background-color: blue; }
13 ::-webkit-scrollbar { width: 50px; height: 50px; }
14 body { height: 400px; overflow: scroll; }
15 </style>`);
16 doc.close();
17 assert_equals(doc.documentElement.offsetWidth, 250);
18 }
19
20 test(() => {
21 writeDoc();
22 writeDoc();
23 }, "Preserve iframe custom scrollbar after replacing contents with document.writ e.");
24
25 </script>
OLDNEW
« 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