B2G/gecko/browser/components/tabview/search.js
// Given a <TabItem> or a <xul:tab> returns the URL of tab.
Given a  or a  returns the URL of tab.
Given a or a returns the URL of tab .
function TabUtils_URLOf(tab) {
    if ("tab" in tab)
      tab = tab.tab;
    return tab.linkedBrowser.currentURI.spec;
  }
function TabUtils_URLOf ( tab ) { if ( "tab" in tab ) tab = tab . tab ; return tab . linkedBrowser . currentURI . spec ; }
Given a <TabItem> or a <xul:tab> returns the URL of tab.
Given a <TabItem > or a <xul : tab > returns the URL of tab .
// Convert a <TabItem> to <xul:tab>