зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1633885 - The urlbar's placeholder may be shown in the wrong locale direction. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D73090
This commit is contained in:
Родитель
9ca0c558c5
Коммит
d4189bc369
|
@ -47,6 +47,12 @@ class UrlbarValueFormatter {
|
|||
}
|
||||
|
||||
update() {
|
||||
// Cleanup that must be done in any case, even if there's no value.
|
||||
if (this._formattingApplied) {
|
||||
this.urlbarInput.removeAttribute("domaindir");
|
||||
this.scheme.value = "";
|
||||
}
|
||||
|
||||
if (!this.inputField.value) {
|
||||
return;
|
||||
}
|
||||
|
@ -196,7 +202,6 @@ class UrlbarValueFormatter {
|
|||
}
|
||||
|
||||
_removeURLFormat() {
|
||||
this.scheme.value = "";
|
||||
if (!this._formattingApplied) {
|
||||
return;
|
||||
}
|
||||
|
@ -222,7 +227,6 @@ class UrlbarValueFormatter {
|
|||
_formatURL() {
|
||||
let urlMetaData = this._getUrlMetaData();
|
||||
if (!urlMetaData) {
|
||||
this.urlbarInput.removeAttribute("domaindir");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче