I am writing some code for an extension, and I would like to get the hostname part of a URL. The easiest way to do this is to construct a new URL object then access the hostname property. However, when I do that I get an error that "URL" is not defined. Does this object not exist in the scope of XUL extensions?
↧