diff options
author | ager@chromium.org <ager@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 12:27:47 +0000 |
---|---|---|
committer | ager@chromium.org <ager@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 12:27:47 +0000 |
commit | a57da952311609a16aaa23d24de00a6179db627b (patch) | |
tree | 3dbf00dcfde1f626bef48b9bbbdae610b2e19579 /webkit/data | |
parent | 66e8f989b6f2e48f3f9160bd77969e62b35f09a6 (diff) | |
download | chromium_src-a57da952311609a16aaa23d24de00a6179db627b.zip chromium_src-a57da952311609a16aaa23d24de00a6179db627b.tar.gz chromium_src-a57da952311609a16aaa23d24de00a6179db627b.tar.bz2 |
Fix crash when attempting to construct XMLHttpRequest object in a
detached document.
If there is no frame corresponding to the DOMWindow object from which
we are retrieving the constructor function, return undefined.
Attempts to construct the object will therefore throw an exception
because an attempt is made to call undefined as a function.
BUG=10861
Review URL: http://codereview.chromium.org/115079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/data')
2 files changed, 10 insertions, 0 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/xmlhttprequest-constructor-in-detached-document-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/xmlhttprequest-constructor-in-detached-document-expected.txt new file mode 100644 index 0000000..b648fe2 --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/xmlhttprequest-constructor-in-detached-document-expected.txt @@ -0,0 +1,5 @@ +CONSOLE MESSAGE: line 160: Uncaught TypeError: undefined is not a function
+Text for bug 25290: Crash when constructing XMLHttpRequest in a detached document.
+
+PASS
+
diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/xmlhttprequest-constructor-in-detached-document-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/xmlhttprequest-constructor-in-detached-document-expected.txt new file mode 100644 index 0000000..b648fe2 --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/xmlhttprequest-constructor-in-detached-document-expected.txt @@ -0,0 +1,5 @@ +CONSOLE MESSAGE: line 160: Uncaught TypeError: undefined is not a function
+Text for bug 25290: Crash when constructing XMLHttpRequest in a detached document.
+
+PASS
+
|