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
This commit is contained in:
Gavin Sharp 2012-02-15 18:01:23 -08:00
Родитель f4f67ef82f
Коммит bd99773659
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -26,6 +26,7 @@ function test() {
// Now trigger the invalid URI test // Now trigger the invalid URI test
executeSoon(function () { executeSoon(function () {
info("Dialog closed? " + domwindow.closed + "\n");
let consoleListener = { let consoleListener = {
observe: function (m) { observe: function (m) {
info("m: " + m + "\n"); info("m: " + m + "\n");
@ -44,6 +45,14 @@ function test() {
// The drop handler throws an exception when dragging URIs that inherit // The drop handler throws an exception when dragging URIs that inherit
// principal, e.g. javascript: // principal, e.g. javascript:
expectUncaughtException(); 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); chromeUtils.synthesizeDrop(homeButton, homeButton, [[{type: "text/plain", data: "javascript:8888"}]], "copy", window, EventUtils);
}) })
}); });