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

Side by Side Diff: LayoutTests/fast/css/css-fontface-rule-crash.html

Issue 8587026: Revert 100566 - Merge 99649 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month 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 | LayoutTests/fast/css/css-fontface-rule-crash-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 <html>
2 <head>
3 <script src="../../resources/gc.js"></script>
4 <script>
5 if (window.layoutTestController) {
6 layoutTestController.dumpAsText();
7 layoutTestController.waitUntilDone();
8 }
9
10 function load()
11 {
12 style = document.createElement('style');
13 style.textContent = '@font-face { font-family: "A"; }';
14 document.head.appendChild(style);
15 rulestyle = document.styleSheets[0].cssRules[0].style;
16 document.head.removeChild(style);
17 style = null;
18 setTimeout(crash, 0);
19 }
20
21 function crash()
22 {
23 gc();
24 obj = rulestyle.parentRule;
25 // If the gc() actually successfully reaps everything it can, then obj
26 // will end up null (post-fix). gc() is not guaranteed to reap the font-face
27 // rule, however, particularly in the browser context.
28 if (obj)
29 obj = obj.foo;
30 document.body.innerText = 'PASS';
31 if (window.layoutTestController)
32 layoutTestController.notifyDone()
33 }
34 </script>
35 </head>
36 <body onload="load()"></body>
37 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/css-fontface-rule-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698