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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/css-fontface-rule-crash.html
===================================================================
--- LayoutTests/fast/css/css-fontface-rule-crash.html (revision 100570)
+++ LayoutTests/fast/css/css-fontface-rule-crash.html (working copy)
@@ -1,37 +0,0 @@
-<html>
-<head>
-<script src="../../resources/gc.js"></script>
-<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
-}
-
-function load()
-{
- style = document.createElement('style');
- style.textContent = '@font-face { font-family: "A"; }';
- document.head.appendChild(style);
- rulestyle = document.styleSheets[0].cssRules[0].style;
- document.head.removeChild(style);
- style = null;
- setTimeout(crash, 0);
-}
-
-function crash()
-{
- gc();
- obj = rulestyle.parentRule;
- // If the gc() actually successfully reaps everything it can, then obj
- // will end up null (post-fix). gc() is not guaranteed to reap the font-face
- // rule, however, particularly in the browser context.
- if (obj)
- obj = obj.foo;
- document.body.innerText = 'PASS';
- if (window.layoutTestController)
- layoutTestController.notifyDone()
-}
-</script>
-</head>
-<body onload="load()"></body>
-</html>
« 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