From bd997736590674d4317795b690ded01f1e76888a Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Wed, 15 Feb 2012 18:01:23 -0800 Subject: [PATCH] Bug 724309: add some more extra logging to try to fix browser_homeDrop.js --HG-- extra : transplant_source : %DA%B3%95%CAN%E2%8D%15%EE%E1%95%E5%CA%80%3B%97%1BcUr --- browser/base/content/test/browser_homeDrop.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/browser/base/content/test/browser_homeDrop.js b/browser/base/content/test/browser_homeDrop.js index c8c63cc1a7a6..c70c4f12cc96 100644 --- a/browser/base/content/test/browser_homeDrop.js +++ b/browser/base/content/test/browser_homeDrop.js @@ -26,6 +26,7 @@ function test() { // Now trigger the invalid URI test executeSoon(function () { + info("Dialog closed? " + domwindow.closed + "\n"); let consoleListener = { observe: function (m) { info("m: " + m + "\n"); @@ -44,6 +45,14 @@ function test() { // The drop handler throws an exception when dragging URIs that inherit // principal, e.g. javascript: expectUncaughtException(); + let originalHandler = homeButtonObserver.onDrop; + homeButtonObserver.onDrop = function () { + info("homeButtonObserver.onDrop called"); + originalHandler(); + }; + registerCleanupFunction(function () { + homeButtonObserver.onDrop = originalHandler; + }); chromeUtils.synthesizeDrop(homeButton, homeButton, [[{type: "text/plain", data: "javascript:8888"}]], "copy", window, EventUtils); }) });