Skip to content

Commit 8e017b2

Browse files
tsl143alver-cliqz
authored andcommitted
DB-2378: fixing moz-ext URL in url bar (#1425)
1 parent f122183 commit 8e017b2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

mozilla-release/browser/components/urlbar/UrlbarInput.jsm

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,17 @@ class UrlbarInput {
10901090

10911091
this.valueIsTyped = false;
10921092
this._resultForCurrentValue = null;
1093-
this.inputField.value = val;
1093+
1094+
// DB-2378 => CLIQZ-SPECIAL: do not set url if freshtabURL exists,
1095+
let setVal = val;
1096+
if (val.startsWith("moz-ext")) {
1097+
const homeUrl = Services.prefs.getCharPref("browser.startup.homepage", "");
1098+
if (val === homeUrl) {
1099+
setVal = "";
1100+
}
1101+
}
1102+
this.inputField.value = setVal;
1103+
10941104
this.formatValue();
10951105
this.removeAttribute("actiontype");
10961106
if (!this.view.isOpen) {

0 commit comments

Comments
 (0)