Bug 1730968 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

STR:

1) Enable credit card autofill by setting "extensions.formautofill.available" to true.
2) Restart browser so pref can take effect
3) Add credit card to "about:preferences" -> Saved Credit Cards. I just use a number off [paypal's test list](https://www.paypalobjects.com/en_GB/vhelp/paypalmanager_help/credit_card_numbers.htm)
4) Navigate to one of the [form fill test pages](https://mozilla.github.io/form-fill-examples/basic_cc.html)
5) Open browser toolbox and set a breakpoint in FormAutofillHandler at line 210, or the first line under "matchSelectOptions". [Permalink for reference](https://searchfox.org/mozilla-central/rev/196daa17009ea2aaad62458edf033201d2750d98/toolkit/components/formautofill/FormAutofillHandler.jsm#209).
6) Click a field on the test page and notice the breakpoint is triggered
7) Remove breakpoint
8) Click a field on the test page and notice the breakpoint is still triggered

Expected results:
Breakpoint is not triggered after removal

Actual results:
Breakpoint is triggered after removal. You must restart the browser toolbox in order to remove the reference to the breakpoint.

I have no idea why this is happening, and I verified this doesn't happen in the password manager code (which is the other part of the codebase that I'm familiar with). I'm guessing this is something to do with how the form autofill component is structured but I'm not sure.
STR:

1) Enable credit card autofill by setting "extensions.formautofill.available" to true. Edit: you probably want to update "extensions.formautofill.creditCards.supported" to "on" instead of the previous pref.
2) Restart browser so pref can take effect
3) Add credit card to "about:preferences" -> Saved Credit Cards. I just use a number off [paypal's test list](https://www.paypalobjects.com/en_GB/vhelp/paypalmanager_help/credit_card_numbers.htm)
4) Navigate to one of the [form fill test pages](https://mozilla.github.io/form-fill-examples/basic_cc.html)
5) Open browser toolbox and set a breakpoint in FormAutofillHandler at line 210, or the first line under "matchSelectOptions". [Permalink for reference](https://searchfox.org/mozilla-central/rev/196daa17009ea2aaad62458edf033201d2750d98/toolkit/components/formautofill/FormAutofillHandler.jsm#209).
6) Click a field on the test page and notice the breakpoint is triggered
7) Remove breakpoint
8) Click a field on the test page and notice the breakpoint is still triggered

Expected results:
Breakpoint is not triggered after removal

Actual results:
Breakpoint is triggered after removal. You must restart the browser toolbox in order to remove the reference to the breakpoint.

I have no idea why this is happening, and I verified this doesn't happen in the password manager code (which is the other part of the codebase that I'm familiar with). I'm guessing this is something to do with how the form autofill component is structured but I'm not sure.

Back to Bug 1730968 Comment 0