зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f4f67ef82f
Коммит
bd99773659
|
@ -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);
|
||||
})
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче