Test for bug 537474
authorDão Gottwald <dao@mozilla.com>
Sat, 02 Jan 2010 11:03:06 +0100
changeset 36815 15ce1058e9cef3ce5ece7aff48254c3b44bfc362
parent 36814 4e8eb0e5e8c9cedc5f7ac8b7ea70626e61f7f284
child 36816 e9f33e85a9799e6b84c820ac5141add9ff01df66
push id10995
push userdgottwald@mozilla.com
push dateSat, 02 Jan 2010 10:03:22 +0000
treeherdermozilla-central@15ce1058e9ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs537474
milestone1.9.3a1pre
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();
+}