--- a/browser/extensions/formautofill/FormAutofillHandler.jsm
+++ b/browser/extensions/formautofill/FormAutofillHandler.jsm
@@ -122,19 +122,17 @@ FormAutofillHandler.prototype = {
this._cacheValue.oneLineFullAddress[address] = FormAutofillUtils.toOneLineAddress(streetAddresses);
}
return this._cacheValue.oneLineFullAddress[address];
},
_addressTransformer(profile) {
if (profile["street-address"]) {
let streetAddressField = this.getFieldDetailByName("street-address");
- if (streetAddressField.elementWeakRef.get() instanceof Ci.nsIDOMHTMLInputElement) {
- profile["street-address"] = this._getOneLineFullAddress(profile["street-address"]);
- }
+ profile["street-address"] = this._getOneLineFullAddress(profile["street-address"]);
// Assume that "address-line2" always exists when address-line1&3 already
// exist.
if (this.allFieldNames.includes("address-line1") &&
!this.allFieldNames.includes("address-line3")) {
if (this.allFieldNames.includes("address-line2")) {
profile["address-line2"] = FormAutofillUtils.toOneLineAddress([
profile["address-line2"],