From c3db21ff3446ac6bbb2d785c2441d0e5d5824bf5 Mon Sep 17 00:00:00 2001 From: "ager@google.com" Date: Fri, 3 Oct 2008 10:49:10 +0000 Subject: Let's try this again. The regressions were caused by an incorrect use of the current context instead of last entered context. Create node wrappers in the context to which the nodes belong instead of the context of the code accessing them. This fixes the issue where the prototype library does not work if the JavaScript console is open. Review URL: http://codereview.chromium.org/6442 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2826 0039d316-1c4b-4281-b951-d872f2087c98 --- .../fast/dom/resources/wrapper-context-inner.html | 28 ++++++++++++++++++ .../chrome/fast/dom/wrapper-context-expected.txt | 1 + .../chrome/fast/dom/wrapper-context.html | 33 ++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html create mode 100644 webkit/data/layout_tests/chrome/fast/dom/wrapper-context-expected.txt create mode 100644 webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html (limited to 'webkit/data') diff --git a/webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html b/webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html new file mode 100644 index 0000000..c47aa6e --- /dev/null +++ b/webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html @@ -0,0 +1,28 @@ + + + + + diff --git a/webkit/data/layout_tests/chrome/fast/dom/wrapper-context-expected.txt b/webkit/data/layout_tests/chrome/fast/dom/wrapper-context-expected.txt new file mode 100644 index 0000000..7ef22e9 --- /dev/null +++ b/webkit/data/layout_tests/chrome/fast/dom/wrapper-context-expected.txt @@ -0,0 +1 @@ +PASS diff --git a/webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html b/webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html new file mode 100644 index 0000000..3f038d8 --- /dev/null +++ b/webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html @@ -0,0 +1,33 @@ + + +
+ + + + -- cgit v1.1