     var url: NSURL? {
         didSet {
             lockImageView.hidden = url?.scheme != "https"
-            if let url = url?.absoluteString {
-            	highlightDomain()
-            } else {
-                editTextField.text = nil
-            }
+            updateTextWithURL()
             setNeedsUpdateConstraints()
         }
     }

        active = false
        if editTextField.text.isEmpty {
            editTextField.text = clearedText ?? ""
        } else if let url = self.url {
            highlightDomain()
        } else {
            self.url = nil
        }
    }


            attributedString.addAttribute(UIAccessibilitySpeechAttributePitch, value: NSNumber(double: BrowserLocationViewUX.BaseURLPitch), range: nsRange)
            attributedString.pitchSubstring(baseDomain, withPitch: BrowserLocationViewUX.HostPitch)
            editTextField.attributedText = attributedString
        } else {
            // If we're unable to highlight the domain, just use the URL as is.
            editTextField.text = url?.absoluteString
        }
    }

