bug 453915 - JavaScript Test by Chris Evans.
authorBob Clary <bclary@bclary.com>
Thu, 27 Nov 2008 02:29:27 -0800
changeset 22021 395be2ab5c6bf9c7562a8d65d7dcb4f0456f6139
parent 22020 b97ae6c5dca079099016b898b1895d77f0674cc3
child 22022 39f2f17c31ee0cd52d0e0ac4e5a47708b0cd3288
push id3781
push usersdwilsh@shawnwilsher.com
push dateThu, 27 Nov 2008 18:58:50 +0000
treeherdermozilla-central@c3f3ce1d99a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs453915
milestone1.9.1b3pre
bug 453915 - JavaScript Test by Chris Evans.
js/tests/e4x/Regress/regress-453915.js
new file mode 100644
--- /dev/null
+++ b/js/tests/e4x/Regress/regress-453915.js
@@ -0,0 +1,54 @@
+/* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is JavaScript Engine testing utilities.
+ *
+ * The Initial Developer of the Original Code is
+ * Mozilla Foundation.
+ * Portions created by the Initial Developer are Copyright (C) 2008
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s): Chris Evans
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+gTestfile = 'regress-453915.js';
+
+var summary = 'XML Injection possible via default xml namespace';
+var BUGNUMBER = 453915;
+var actual = '';
+var expect = '';
+
+printBugNumber(BUGNUMBER);
+START(summary);
+
+default xml namespace = '\'';
+<foo/>
+
+TEST(1, expect, actual);
+
+END();