Bug 654729 - Weird highlighting when adding text to an existing address, r=dao

This commit is contained in:
Margaret Leibovic 2011-05-12 14:38:40 -07:00
Родитель bcc423bd5b
Коммит 7aefc7645a
1 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -220,6 +220,17 @@
]]></body>
</method>
<method name="_clearFormatting">
<body><![CDATA[
if (!this._formattingEnabled)
return;
let controller = this.editor.selectionController;
let selection = controller.getSelection(controller.SELECTION_URLSECONDARY);
selection.removeAllRanges();
]]></body>
</method>
<method name="handleRevert">
<body><![CDATA[
var isScrolling = this.popupOpen;
@ -645,6 +656,7 @@
<handler event="blur"><![CDATA[
this._clearNoActions();
this.formatValue();
]]></handler>
<handler event="draggesture" phase="capturing"><![CDATA[
@ -679,6 +691,7 @@
<handler event="focus" phase="capturing"><![CDATA[
this._hideURLTooltip();
this._clearFormatting();
]]></handler>
<handler event="dragover" phase="capturing" action="this.onDragOver(event, this);"/>