diff --git a/dom/browser-element/mochitest/Makefile.in b/dom/browser-element/mochitest/Makefile.in index 373fbe575f41..aad9c8621707 100644 --- a/dom/browser-element/mochitest/Makefile.in +++ b/dom/browser-element/mochitest/Makefile.in @@ -59,6 +59,9 @@ MOCHITEST_FILES = \ browserElement_TargetBlank.js \ test_browserElement_inproc_TargetBlank.html \ file_browserElement_TargetBlank.html \ + browserElement_TargetTop.js \ + test_browserElement_inproc_TargetTop.html \ + file_browserElement_TargetTop.html \ browserElement_PromptCheck.js \ test_browserElement_inproc_PromptCheck.html \ browserElement_PromptConfirm.js \ @@ -120,6 +123,7 @@ MOCHITEST_FILES += \ test_browserElement_oop_Alert.html \ test_browserElement_oop_AlertInFrame.html \ test_browserElement_oop_TargetBlank.html \ + test_browserElement_oop_TargetTop.html \ test_browserElement_oop_PromptCheck.html \ test_browserElement_oop_PromptConfirm.html \ test_browserElement_oop_Close.html \ diff --git a/dom/browser-element/mochitest/browserElement_TargetTop.js b/dom/browser-element/mochitest/browserElement_TargetTop.js new file mode 100644 index 000000000000..2cae2d99091b --- /dev/null +++ b/dom/browser-element/mochitest/browserElement_TargetTop.js @@ -0,0 +1,32 @@ +/* Any copyright is dedicated to the public domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +// Bug 771273 - Check that window.open(url, '_top') works properly with