From 22689553e71a3ccdef090c24741c3f5199a1a874 Mon Sep 17 00:00:00 2001 From: Brian Crowder Date: Thu, 16 Sep 2010 09:00:37 -0700 Subject: [PATCH] Bug 567267 - reenable unit test, r=dwitte, a=blocking-fennec2.0b1,mfinkle --HG-- rename : uriloader/exthandler/tests/unit_ipc/disable_t_encoding.js => uriloader/exthandler/tests/unit_ipc/test_encoding.js --- .../{disable_t_encoding.js => test_encoding.js} | 15 +++++++++++++++ 1 file changed, 15 insertions(+) rename uriloader/exthandler/tests/unit_ipc/{disable_t_encoding.js => test_encoding.js} (96%) diff --git a/uriloader/exthandler/tests/unit_ipc/disable_t_encoding.js b/uriloader/exthandler/tests/unit_ipc/test_encoding.js similarity index 96% rename from uriloader/exthandler/tests/unit_ipc/disable_t_encoding.js rename to uriloader/exthandler/tests/unit_ipc/test_encoding.js index b912b8016170..9dba572c91e5 100644 --- a/uriloader/exthandler/tests/unit_ipc/disable_t_encoding.js +++ b/uriloader/exthandler/tests/unit_ipc/test_encoding.js @@ -72,7 +72,22 @@ function getFactory(comp) } } } + +// Override the download-manager-ui to prevent anyone from trying to open +// a window. +function DownloadMgrUI() { } +DownloadMgrUI.prototype = { + QueryInterface: XPCOMUtils.generateQI([Ci.nsIDownloadManagerUI]), + contractID: "@mozilla.org/download-manager-ui;1", + show: function (ir, aID, reason) { }, + + visible: false, + + getAttention: function () { } +} + registerTemporaryComponent(HelperAppDlg); +registerTemporaryComponent(DownloadMgrUI); function initChildTestEnv() {