Closed
Bug 851741
Opened 9 years ago
Closed 9 years ago
Contacts API: make continue async
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: gwagner, Assigned: gwagner)
References
Details
(Whiteboard: [FFOS_perf])
Attachments
(2 files)
2.01 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
2.17 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•9 years ago
|
blocking-b2g: --- → tef?
Assignee | ||
Updated•9 years ago
|
Blocks: 848316
Blocks a blocker
blocking-b2g: tef? → tef+
Assignee | ||
Comment 2•9 years ago
|
||
Assignee: nobody → anygregor
Assignee | ||
Updated•9 years ago
|
Attachment #725675 -
Flags: review?(bent.mozilla)
Comment on attachment 725675 [details] [diff] [review] patch Review of attachment 725675 [details] [diff] [review]: ----------------------------------------------------------------- Yay! ::: dom/contacts/ContactManager.js @@ +637,5 @@ > this.askPermission("find", cursor, allowCallback); > return cursor; > }, > > + nextTick: function nextTick(aCallback) { Nit: The others use CM_ for their name.
Attachment #725675 -
Flags: review?(bent.mozilla) → review+
Comment on attachment 725675 [details] [diff] [review] patch Review of attachment 725675 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/contacts/ContactManager.js @@ +637,5 @@ > this.askPermission("find", cursor, allowCallback); > return cursor; > }, > > + nextTick: function nextTick(aCallback) { Er, remove the only one that uses it!
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/af48e32a1479
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/af48e32a1479
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Comment 7•9 years ago
|
||
This doesn't apply cleanly to b2g18. Please post a branch-specific patch.
Comment 8•9 years ago
|
||
Attachment #726722 -
Flags: checkin?(ryanvm)
Comment 9•9 years ago
|
||
Comment on attachment 726722 [details] [diff] [review] Patch, rebased to mozilla-b2g18 Hey, I can do this myself now :) https://hg.mozilla.org/releases/mozilla-b2g18/rev/2be82c7c9e22
Attachment #726722 -
Flags: checkin?(ryanvm)
Updated•9 years ago
|
status-b2g18:
--- → fixed
Comment 10•9 years ago
|
||
Of course, given that it's tef+, you need to land this on b2g18_v1_0_1 too ;)
Updated•9 years ago
|
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → affected
status-firefox20:
--- → wontfix
status-firefox21:
--- → wontfix
status-firefox22:
--- → fixed
Updated•9 years ago
|
Whiteboard: [FFOS_perf]
Comment 12•9 years ago
|
||
Comment on attachment 725675 [details] [diff] [review] patch Review of attachment 725675 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/contacts/ContactManager.js @@ +425,5 @@ > if (DEBUG) debug("cursor waiting for contact, sending"); > data.waitingForNext = false; > let contact = result.shift(); > this._pushArray(data.cachedContacts, result); > + this.nextTick(this._fireSuccessOrDone.bind(this, data.cursor, contact)); This is called after receiving the message from the parent, is it really necessary to do this here? If it is, shouldn't fireSuccess in the |case "Contacts:Find:Return:OK"| above also be changed?
Assignee | ||
Comment 13•9 years ago
|
||
(In reply to Reuben Morais [:reuben] from comment #12) > Comment on attachment 725675 [details] [diff] [review] > patch > > Review of attachment 725675 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: dom/contacts/ContactManager.js > @@ +425,5 @@ > > if (DEBUG) debug("cursor waiting for contact, sending"); > > data.waitingForNext = false; > > let contact = result.shift(); > > this._pushArray(data.cachedContacts, result); > > + this.nextTick(this._fireSuccessOrDone.bind(this, data.cursor, contact)); > > This is called after receiving the message from the parent, is it really > necessary to do this here? > If it is, shouldn't fireSuccess in the |case "Contacts:Find:Return:OK"| > above also be changed? Right, we are already waiting for the contact so we don't need it here.
You need to log in
before you can comment on or make changes to this bug.
Description
•