Test for bug 537474
authorDão Gottwald <dao@mozilla.com>
Sat, 02 Jan 2010 11:03:06 +0100
changeset 33473 f4b78e19d0b7701c6972e323a8de09a1c6a5d5b2
parent 33472 83efa96f014317080686f984c08b22f0106a1551
child 33474 c438ba15483a24dcb9ca4eaf435cb8dfadd4526e
push id988
push userdgottwald@mozilla.com
push dateMon, 04 Jan 2010 16:47:55 +0000
bugs537474
milestone1.9.2b6pre
Test for bug 537474
browser/base/content/test/Makefile.in
browser/base/content/test/browser_bug537474.js
--- a/browser/base/content/test/Makefile.in
+++ b/browser/base/content/test/Makefile.in
@@ -97,16 +97,17 @@ include $(topsrcdir)/config/rules.mk
                  browser_bug455852.js \
                  browser_bug462673.js \
                  browser_bug481560.js \
                  browser_bug484315.js \
                  browser_bug477014.js \
                  browser_bug495058.js \
                  browser_bug517902.js \
                  browser_bug521216.js \
+                 browser_bug537474.js \
                  browser_discovery.js \
                  browser_tabfocus.js \
                  discovery.html \
                  moz.png \
                  test_bug435035.html \
                  test_bug462673.html \
                  browser_getshortcutoruri.js \
                  browser_page_style_menu.js \
new file mode 100644
--- /dev/null
+++ b/browser/base/content/test/browser_bug537474.js
@@ -0,0 +1,8 @@
+function test() {
+  var currentWin = content;
+  var newWin =
+    browserDOMWindow.openURI(makeURI("about:"), null,
+                             Ci.nsIBrowserDOMWindow.OPEN_CURRENTWINDOW, null)
+  is(newWin, currentWin, "page loads in the current content window");
+  gBrowser.stop();
+}