Closed Bug 1365150 Opened 7 years ago Closed 7 years ago

profileStorage.get should return null instead of throwing, and .add should return the newly created guid.

Categories

(Toolkit :: Form Manager, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: markh, Assigned: markh)

References

Details

(Whiteboard: [form autofill:M3])

Attachments

(1 file)

We'd like .get() to return null on an unknown GUID so we don't need to introspect and exception to determine if it really just means "no record found".

We'd like .add() to return the GUID that was just created to make testing easier.
Comment on attachment 8867978 [details]
Bug 1365150 - profile.get returns null instead of throwing, .add returns the new GUID.

https://reviewboard.mozilla.org/r/139518/#review142864

Looks good. Thanks.
Attachment #8867978 - Flags: review?(lchang) → review+
Whiteboard: [form autofill:M3]
Pushed by mhammond@skippinet.com.au:
https://hg.mozilla.org/integration/autoland/rev/d1798333664b
profile.get returns null instead of throwing, .add returns the new GUID. r=lchang
https://hg.mozilla.org/mozilla-central/rev/d1798333664b
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: