Hi,
I am trying to develop a small FF extension, where user clicks on my menu item and app alerts current URL and Title of the document.

When I open www.google.com and click my menu I should get alert title=Google - Mozilla Firefox and href=www.google.com

I am getting title correctly but href is "chrome://browser/content/browser.xul"

How should I read my original href i.e. www.google.com

alert statements in js files are...

alert(document.location.href);
alert(document.title);