diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 9841d279..5fd8d198 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1330,7 +1330,7 @@ const Dactyl = Module("dactyl", { config.dialogs[dialog][1](); } catch (e) { - dactyl.echoerr("Error opening " + arg.quote() + ": " + e); + dactyl.echoerr("Error opening " + dialog.quote() + ": " + (e.message || e)); } }, { argCount: "1", diff --git a/pentadactyl/NEWS b/pentadactyl/NEWS index 3e3fb658..f4d67701 100644 --- a/pentadactyl/NEWS +++ b/pentadactyl/NEWS @@ -60,6 +60,7 @@ * Added -javascript option to :abbrev and :map. * Added several new options to :map. * Added -agent flag to :style + * Added "passwords" and "venkman" dialogs to :dialog * Removed the :source line at the end of files generated by :mkpentadactylrc. * gf now toggles between source and content view. diff --git a/pentadactyl/content/config.js b/pentadactyl/content/config.js index 7ad14109..a14c49e4 100644 --- a/pentadactyl/content/config.js +++ b/pentadactyl/content/config.js @@ -68,6 +68,8 @@ const Config = Module("config", ConfigBase, { function () { window.BrowserPageInfo(); }], pagesource: ["View page source", function () { window.BrowserViewSourceOfDocument(content.document); }], + passwords: ["Passwords dialog", + function () { window.openDialog("chrome://passwordmgr/content/passwordManager.xul"); }], places: ["Places Organizer: Manage your bookmarks and history", function () { PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_BOOKMARKS); }], preferences: ["Show Firefox preferences dialog", @@ -85,7 +87,9 @@ const Config = Module("config", ConfigBase, { searchengines: ["Manage installed search engines", function () { window.openDialog("chrome://browser/content/search/engineManager.xul", "_blank", "chrome,dialog,modal,centerscreen"); }], selectionsource: ["View selection source", - function () { buffer.viewSelectionSource(); }] + function () { buffer.viewSelectionSource(); }], + venkman: ["The JavaScript debugger", + function () { dactyl.assert("start_venkman" in window, "Venkman is not installed"); start_venkman() }] }, features: [