Closed Bug 1429976 Opened 6 years ago Closed 6 years ago

formautofill-storage-changed observer notification doesn't indicate which collection was changed

Categories

(Toolkit :: Form Autofill, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox-esr52 --- unaffected
firefox59 --- fixed

People

(Reporter: MattN, Assigned: ralin)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

Consumers can't easily distinguish between address vs. payment card changes which may lead to unnecessary works.

For example, if a credit card is changed, Sync may also think it should sync addresses even though they're not dirty.

This also affects UI that add observers, like about:preferences and the PaymentRequest dialog.

We should probably include the collection name in the topic or include it in the subject object.
Take the bug. I think including the collection name in subject might be easier.
Assignee: nobody → ralin
Hi Thom,

I find FormautofillTracker is currently the only place use subject in observe callback, would adding additional property on it affect any part of sync? Thanks :D
Flags: needinfo?(tchiovoloni)
Status: NEW → ASSIGNED
Blocks: 1430712
> I find FormautofillTracker is currently the only place use subject in observe callback, would adding additional property on it affect any part of sync?

It shouldn't. Eventually we might want to use it to avoid bumping e.g. the address tracker's score if credit cards change, but that could be done as a followup.
Flags: needinfo?(tchiovoloni)
That's good to know, I'll file a bug for the followup. Thanks again.
Blocks: 1430819
Comment on attachment 8942804 [details]
Bug 1429976 - Include collectionName in formautofill-storage-changed notify payload.

https://reviewboard.mozilla.org/r/213050/#review219136

Looks good. Thanks.
Attachment #8942804 - Flags: review?(lchang) → review+
Thank you!

I don't see any failure on TH: https://treeherder.mozilla.org/#/jobs?repo=try&revision=733fe255aff4f7c894a3fb94aa42c982413c073b, let's land it :D
Pushed by ralin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/df2421b0dbe5
Include collectionName in formautofill-storage-changed notify payload. r=lchang
https://hg.mozilla.org/mozilla-central/rev/df2421b0dbe5
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
No longer blocks: 1361010
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: