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)
Toolkit
Form Autofill
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.
Assignee | ||
Comment 1•6 years ago
|
||
Take the bug. I think including the collection name in subject might be easier.
Assignee: nobody → ralin
Assignee | ||
Comment 2•6 years ago
|
||
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)
Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 6•6 years ago
|
||
> 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)
Assignee | ||
Comment 7•6 years ago
|
||
That's good to know, I'll file a bug for the followup. Thanks again.
Comment 8•6 years ago
|
||
mozreview-review |
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+
Assignee | ||
Comment 9•6 years ago
|
||
Thank you! I don't see any failure on TH: https://treeherder.mozilla.org/#/jobs?repo=try&revision=733fe255aff4f7c894a3fb94aa42c982413c073b, let's land it :D
Comment 10•6 years ago
|
||
Pushed by ralin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df2421b0dbe5 Include collectionName in formautofill-storage-changed notify payload. r=lchang
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/df2421b0dbe5
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•