зеркало из https://github.com/mozilla/pjs.git
Bug 724309: add extra logging to try to fix browser_homeDrop.js
--HG-- extra : transplant_source : %5EU8%FET%A4%B6%9C%C7%7C%A9%E7%9D%07n%E3W%E2%0B%14
This commit is contained in:
Родитель
b7c9769c67
Коммит
7a59b38d67
|
@ -28,14 +28,18 @@ function test() {
|
|||
executeSoon(function () {
|
||||
let consoleListener = {
|
||||
observe: function (m) {
|
||||
info("m: " + m + "\n");
|
||||
info("m.message: " + m.message + "\n");
|
||||
if (m.message.indexOf("NS_ERROR_DOM_BAD_URI") > -1) {
|
||||
Services.console.unregisterListener(consoleListener);
|
||||
ok(true, "drop was blocked");
|
||||
executeSoon(finish);
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.console.registerListener(consoleListener);
|
||||
registerCleanupFunction(function () {
|
||||
Services.console.unregisterListener(consoleListener);
|
||||
});
|
||||
|
||||
// The drop handler throws an exception when dragging URIs that inherit
|
||||
// principal, e.g. javascript:
|
||||
|
|
Загрузка…
Ссылка в новой задаче