pushPrefEnv/popPrefEnv/flushPrefEnv should return a promise

RESOLVED FIXED in Firefox 49

Status

defect
RESOLVED FIXED
4 years ago
3 years ago

People

(Reporter: bgrins, Assigned: MattN)

Tracking

unspecified
mozilla49
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox49 fixed)

Details

Attachments

(1 attachment)

It would be nice for tests using pushPrefEnv if it returned a Promise.  We could keep the callback but make it optional, and then return a Promise that is resolved at the same time the callback is fired.
Assignee: nobody → MattN+bmo
Status: NEW → ASSIGNED
Comment on attachment 8752432 [details]
MozReview Request: Bug 1197310 - Return a promise from pushPrefEnv/popPrefEnv/flushPrefEnv. r=jmaher

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/52615/diff/1-2/
Comment on attachment 8752432 [details]
MozReview Request: Bug 1197310 - Return a promise from pushPrefEnv/popPrefEnv/flushPrefEnv. r=jmaher

https://reviewboard.mozilla.org/r/52615/#review49561

thanks for this cleanup- please test on try for all platforms!
Attachment #8752432 - Flags: review?(jmaher) → review+
https://hg.mozilla.org/mozilla-central/rev/8d9be6d52d27
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.