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

Side by Side Diff: LayoutTests/fast/dom/StyleSheet/detached-sheet-owner-node-link.html

Issue 10265007: Merge 113887 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../js/resources/js-test-pre.js"></script> 2 <script src="../../js/resources/js-test-pre.js"></script>
3 <script> 3 <script>
4 4
5 description('This tests that accessing ownerNode on a disconnected style sheet d oes not crash'); 5 description('This tests that accessing ownerNode on a disconnected style sheet d oes not crash');
6 6
7 jsTestIsAsync = true; 7 jsTestIsAsync = true;
8 8
9 window.onload = function() { 9 window.onload = function() {
10 var innerDocument = document.querySelector('iframe').contentDocument; 10 var innerDocument = document.querySelector('iframe').contentDocument;
11 document.body.removeChild(document.querySelector('iframe')); 11 document.body.removeChild(document.querySelector('iframe'));
12 12
13 innerDocument.querySelector('link').rel = 'icon'; // this triggers process 13 innerDocument.querySelector('link').rel = 'icon'; // this triggers process
14 innerDocument.documentElement.textContent = ''; 14 innerDocument.documentElement.textContent = '';
15 15
16 gc(); 16 gc();
17 innerDocument.styleSheets[0] && innerDocument.styleSheets[0].ownerNode; 17 innerDocument.styleSheets[0] && innerDocument.styleSheets[0].ownerNode;
18 finishJSTest(); 18 finishJSTest();
19 }; 19 };
20 20
21 </script> 21 </script>
22 <iframe src="data:text/html,<link rel='stylesheet' href='data:text/css,*{}'>"></ iframe> 22 <iframe src="data:text/html,<link rel='stylesheet' href='data:text/css,*{}'>"></ iframe>
23 <script src="../../js/resources/js-test-post.js"></script> 23 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698