| Index: chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
|
| diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
|
| index dfd4bc7c9c47f2855e7a75e76afff08d9c84d7d2..5d8c75dba9d9f2a047a5d12ccf1a1c390c5a2ec4 100644
|
| --- a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
|
| +++ b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
|
| @@ -62,8 +62,10 @@
|
| */
|
| onAddressMenuTap_: function(e) {
|
| var menuEvent = /** @type {!{model: !{item: !Object}}} */(e);
|
| +
|
| + // Copy item so dialog won't update model on cancel.
|
| this.activeAddress = /** @type {!chrome.autofillPrivate.AddressEntry} */(
|
| - menuEvent.model.item);
|
| + Object.assign({}, menuEvent.model.item));
|
|
|
| var dotsButton = /** @type {!HTMLElement} */ (Polymer.dom(e).localTarget);
|
| /** @type {!CrActionMenuElement} */ (
|
| @@ -117,9 +119,11 @@
|
| */
|
| onCreditCardMenuTap_: function(e) {
|
| var menuEvent = /** @type {!{model: !{item: !Object}}} */(e);
|
| +
|
| + // Copy item so dialog won't update model on cancel.
|
| this.activeCreditCard =
|
| /** @type {!chrome.autofillPrivate.CreditCardEntry} */(
|
| - menuEvent.model.item);
|
| + Object.assign({}, menuEvent.model.item));
|
|
|
| var dotsButton = /** @type {!HTMLElement} */ (Polymer.dom(e).localTarget);
|
| /** @type {!CrActionMenuElement} */ (
|
|
|