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

Side by Side Diff: LayoutTests/compositing/overflow/do-not-crash-use-after-free-update-widget-positions.html

Issue 490473003: Defer call to updateWidgetPositions() outside of RenderLayerScrollableArea. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: doctype Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/do-not-crash-use-after-free-update-widget-positions-expected.txt » ('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 <!-- This test is to catch a flakey use-after-free for ASAN bots. (see crbug.com /402407) -->
3 <script>
4 function start() {
5 svgIframe = document.createElement('iframe');
6 svgIframe.src = 'resources/do-not-crash-use-after-free-update-widget-positio ns.svg';
7
8 bodyElement = document.body;
9
10 articleElement = document.createElement('article');
11 acronymElement = document.createElement('acronym');
12
13 bodyElement.style.overflow = 'scroll';
14
15 selectionRange = document.createRange();
16 selectionRange.selectNodeContents(articleElement);
17 selectionRange.surroundContents(bodyElement);
18
19 w3Iframe = document.createElementNS('http://www.w3.org/1999/xhtml', 'iframe' );
20 w3Iframe.src = 'resources/do-not-crash-use-after-free-update-widget-position s-iframe.html';
21 w3Iframe.onload = iframeOnLoad;
22 document.documentElement.appendChild(w3Iframe);
23
24 selectionRange.insertNode(svgIframe);
25 bodyElement.style.position = 'fixed';
26
27 while (svgIframe.parentNode) {
28 svgIframe = svgIframe.parentNode;
29 }
30
31 svgIframe.createElement;
32
33 document.documentElement.appendChild(svgIframe);
34
35 acronymElement.style.position = 'absolute';
36 }
37
38 function iframeOnLoad() {
39 bodyElement.appendChild(acronymElement);
40 acronymElement.offsetWidth;
41
42 acronymElement.appendChild(w3Iframe);
43 w3Iframe.offsetWidth;
44
45 window.setTimeout('window.iframeCallback()', 50);
46 }
47
48 function iframeCallback() {
49 bodyElement.style.cssText = null;
50
51 w3Iframe.contentDocument.location.hash = 'element0';
52 }
53
54 if (window.testRunner) {
55 testRunner.dumpAsText();
56 }
57 </script>
58 <body onload = "start()">
59 This test passes if it doesn't crash.
60 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/do-not-crash-use-after-free-update-widget-positions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698