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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/crashes/offsetParent-layoutObject-lifecycle.html

Issue 2148173002: Fix layout object lifecycle in HTMLElement.offset* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('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 <script>
5 // This case is created from reproduction case by cloudfuzzer.
6 window.addEventListener('load', () => {
7 test(() => {
8 var link = document.createElement('link');
9 link.setAttribute('rel','import');
10 document.head.appendChild(link);
11
12 var style = document.createElement('style');
13 style.textContent = '@import url(x)';
14 document.head.appendChild(style);
15
16 var frame = document.createElement('frame');
17 document.body.appendChild(frame);
18
19 // This could cause crash.
20 frame.offsetHeight;
21 assert_true(true, 'This test must run without crash.');
22 }, "HTMLElement.offsetHeight should not cause crash.");
23 }, false);
24 </script>
25 <body></body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698