diff --git a/browser/base/content/urlbarBindings.xml b/browser/base/content/urlbarBindings.xml index 8d80e872230..be7463f4f09 100644 --- a/browser/base/content/urlbarBindings.xml +++ b/browser/base/content/urlbarBindings.xml @@ -216,17 +216,16 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. if (!this._formattingEnabled || !this.editor) return; - // Always clear the strike-out selection first. let controller = this.editor.selectionController; let strikeOut = controller.getSelection(controller.SELECTION_URLSTRIKEOUT); strikeOut.removeAllRanges(); - if (this.focused) - return; - let selection = controller.getSelection(controller.SELECTION_URLSECONDARY); selection.removeAllRanges(); + if (this.focused) + return; + let textNode = this.editor.rootElement.firstChild; let value = textNode.textContent; @@ -286,17 +285,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. ]]> - - - - @@ -991,11 +980,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. event.stopPropagation(); ]]> - -