                   (handle-pdf url)
                   (resolve-url {:error? error? :resolved-url (when resolved-ens url)}))))))
 
+(fx/defn update-browser-name
+  [cofx title]
+  (let [browser (get-current-browser (:db cofx))]
+    (when (and (not (:dapp? browser)) title (not (string/blank? title)))
+      (update-browser cofx (assoc browser :name title)))))
+
 (fx/defn navigation-state-changed
   [cofx event error?]
-  (let [browser (get-current-browser (:db cofx))
-        {:strs [url loading]} (js->clj event)]
+  (let [{:strs [url loading title]} (js->clj event)]
     (fx/merge cofx
               (update-browser-option :loading? loading)
-              (update-browser-on-nav-change browser url loading error?))))
+              (update-browser-name title)
+              (update-browser-on-nav-change url error?))))
 
 (fx/defn open-url-in-current-browser
   "Opens a url in the current browser, which mean no new entry is added to the home page

      ;;url from a dapp browser, the name of the browser in the home screen will
      ;;change
      (assoc browser :dapp? true :name (:name dapp))
      (assoc browser :dapp? false :name (i18n/label :t/browser)))))

(defn check-if-phishing-url [{:keys [history history-index] :as browser}]
  (let [history-host (http/url-host (try (nth history history-index) (catch js/Error _)))]

    {:browser/show-web-browser-selection url}))

(fx/defn update-browser-on-nav-change
  [cofx url error?]
  (let [browser (get-current-browser (:db cofx))
        options (get-in cofx [:db :browser/options])
        current-url (:url options)]
    (when (and (not= "about:blank" url) (not= current-url url) (not= (str current-url "/") url))
      (let [resolved-ens (first (filter #(not= (.indexOf url (second %)) -1) (:resolved-ens options)))
