This component has been removed from the platform in Firefox 29. (bug 953124)
Once you've imported the module, you can then use the
OpenLocationLastURL object it exports. This object lets you fetch and change the URL that is placed in the "Open Location" dialog box when it opens.
If the user is not in private browsing mode, this automatically updates the value of the
Using the OpenLocationLastURL object
To get or set the value of the Open Location edit box, simply read the value of, or set the value of, the
var url = OpenLocationLastURL.value; OpenLocationLastURL.value = "http://www.mozilla.org/";
To reset the value of the edit box to the default (which is an empty string), you can call the
() method resets the saved URL to the default, which is an empty string.