>Форум Mozilla Россия http://forum.mozilla-russia.org/index.php >Разработка http://forum.mozilla-russia.org/viewforum.php?id=18 >Перехват окна basic authorization dialog http://forum.mozilla-russia.org/viewtopic.php?id=63551 |
SergeyIT > 24-05-2014 12:59:27 |
Привет Всем! Выделить код Код:var { isBrowser } = require("sdk/window/utils"); var delegate = { onTrack: function (window) { if (!isBrowser(window) && window.location === "chrome://global/content/commonDialog.xul") { // this could be the window we're looking for modify it using it's window.document console.log("Dailog!!!"); } }, onUntrack: function (window) { if (!isBrowser(window) && window.location === "chrome://global/content/commonDialog.xul") { // undo the modifications you did } } }; var winUtils = require("window-utils"); var tracker = new winUtils.WindowTracker(delegate); код взял с http://stackoverflow.com/questions/16162488/how-to-access-http-authentication-dialog-using-firefox-sdk |
SergeyIT > 24-05-2014 15:01:09 |
Справился, заработало с == вместо === |