From 6501779376fc890a5613519050756a9d6cf48ee8 Mon Sep 17 00:00:00 2001 From: "fqian@google.com" Date: Wed, 10 Sep 2008 16:42:41 +0000 Subject: BUG = 1357667 Redo the fix of issue 1357667. Previous fix does not address all cases (HTMLLinkElement.sheet). It works by create a hidden reference from JS wrapper of StyleSheet object to its owner node. This is down when creating the JS wrapper object. Add a test for HTMLLinkElement that crashes both Chrome and Safari 3.1.2. Review URL: http://codereview.chromium.org/1678 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1990 0039d316-1c4b-4281-b951-d872f2087c98 --- .../ownerNode-lifetime-expected-2-expected.txt | 3 ++ .../StyleSheet/ownerNode-lifetime-expected-2.html | 35 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2-expected.txt create mode 100644 webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2.html (limited to 'webkit/data/layout_tests') diff --git a/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2-expected.txt b/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2-expected.txt new file mode 100644 index 0000000..5e51726 --- /dev/null +++ b/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2-expected.txt @@ -0,0 +1,3 @@ +This test verifies that style sheet do not outlive their elements. Since you can get back to the element with the ownerNode attribute, it's important to keep the element alive. + +Test passed. diff --git a/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2.html b/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2.html new file mode 100644 index 0000000..bf6d252 --- /dev/null +++ b/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2.html @@ -0,0 +1,35 @@ + + + + + +

+This test verifies that style sheet do not outlive their elements. +Since you can get back to the element with the ownerNode attribute, +it's important to keep the element alive. +

+

TEST HAS NOT RUN YET.

+ + -- cgit v1.1