# HG changeset patch # User Atul Varma # Date 1238210856 25200 # Node ID 8e00d50976d9ffb7607551420ab454e33dbead12 # Parent ce299b866e9ab670eac6871654c84063c27832a7 Added a 'where-am-i' command to the chromeless browsing feed. diff -r ce299b866e9a -r 8e00d50976d9 chromeless-browsing/chromeless.js --- a/chromeless-browsing/chromeless.js Fri Mar 27 17:46:31 2009 -0700 +++ b/chromeless-browsing/chromeless.js Fri Mar 27 20:27:36 2009 -0700 @@ -87,3 +87,12 @@ tabs.style.height = "0px"; tabs.style.marginTop = "-500px"; } + +CmdUtils.CreateCommand({ + name: "where-am-i", + preview: function(pblock, dobj) { + var loc = CmdUtils.getWindow().location; + pblock.innerHTML = ("Your current URL is " + + Utils.escapeHtml(loc.href) + "."); + } +});