summaryrefslogtreecommitdiff
path: root/browser/base/content/test/browser_bug479408.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/browser_bug479408.js')
-rw-r--r--browser/base/content/test/browser_bug479408.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/browser/base/content/test/browser_bug479408.js b/browser/base/content/test/browser_bug479408.js
new file mode 100644
index 000000000..0a14e2259
--- /dev/null
+++ b/browser/base/content/test/browser_bug479408.js
@@ -0,0 +1,17 @@
+function test() {
+ waitForExplicitFinish();
+ let tab = gBrowser.selectedTab = gBrowser.addTab(
+ "http://mochi.test:8888/browser/browser/base/content/test/browser_bug479408_sample.html");
+
+ gBrowser.addEventListener("DOMLinkAdded", function(aEvent) {
+ gBrowser.removeEventListener("DOMLinkAdded", arguments.callee, true);
+
+ executeSoon(function() {
+ ok(!tab.linkedBrowser.engines,
+ "the subframe's search engine wasn't detected");
+
+ gBrowser.removeTab(tab);
+ finish();
+ });
+ }, true);
+}