<?xml version="1.0"?>

<bindings xmlns="http://www.mozilla.org/xbl" xmlns:xbl="http://www.mozilla.org/xbl" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml">
  <binding id="urlbar" extends="chrome://locationbar2/content/urlbar.xml#urlbar">
    <content sizetopopup="pref">
      <xul:hbox class="autocomplete-textbox-container" flex="1">
        <xul:stack flex="1">
          <children includes="progressmeter"/>
          <xul:hbox class="autocomplete-textbox-container-fission">
            <xul:hbox class="textbox-icon-box"
                      onclick="focus(); inputField.select();"
                      onmouseover="document.getBindingParent(this)._iconWasHovered = true;">
              <children includes="image|deck|stack">
                <xul:image class="autocomplete-icon" allowevents="true"/>
              </children>
            </xul:hbox>

            <xul:stack flex="1" class="textbox-stack">
              <xul:hbox anonid="textbox-input-box" class="textbox-input-box"
                        flex="1" xbl:inherits="tooltiptext=inputtooltiptext">
                <children/>
                <html:input anonid="input" class="autocomplete-textbox textbox-input"
                            flex="1" allowevents="true"
                            xbl:inherits="tooltiptext=inputtooltiptext,onfocus,onblur,value,type,maxlength,disabled,size,readonly,userAction"/>
              </xul:hbox>
                <xul:hbox anonid="presentation-box" class="textbox-presentation-box" flex="1"
                               onmousedown="focus();"
                               ondragover="nsDragAndDrop.dragOver(event, dndObserver);"
                               ondragdrop="nsDragAndDrop.drop(event, dndObserver);"
                               ondragexit="nsDragAndDrop.dragExit(event, dndObserver);">
                  <xul:scrollbox anonid="presentation" class="textbox-presentation" flex="1"
                                 onoverflow="contentIsCropped = true;"
                                 onunderflow="contentIsCropped = false;">
                    <xul:hbox anonid="prePath" class="textbox-presentation-segment textbox-presentation-prePath">
                      <xul:label anonid="protocol" class="textbox-presentation-protocol"/>
                      <xul:label anonid="subdomain" class="textbox-presentation-subdomain"/>
                      <xul:label anonid="domain" class="textbox-presentation-domain"/>
                      <xul:label anonid="port" class="textbox-presentation-port"/>
                    </xul:hbox>
                    <xul:hbox anonid="pathFile" class="textbox-presentation-segment textbox-presentation-pathFile">
                      <xul:label anonid="file" class="textbox-presentation-file"/>
                      <xul:label anonid="query" class="textbox-presentation-query"/>
                      <xul:label anonid="fragment" class="textbox-presentation-fragment"/>
                    </xul:hbox>
                  </xul:scrollbox>
                <xul:label anonid="overflow-ellipsis" class="textbox-overflow-ellipsis"
                           value="&#8230;" hidden="true"/>
              </xul:hbox>
            </xul:stack>
    
            <children includes="hbox"/>
          </xul:hbox>
        </xul:stack>
      </xul:hbox>

      <xul:dropmarker anonid="historydropmarker" class="autocomplete-history-dropmarker"
                      allowevents="true"
                      xbl:inherits="open,enablehistory"/>

      <xul:popupset anonid="popupset" class="autocomplete-result-popupset"/>
    </content>
  </binding>
</bindings>
