Closed
Bug 723555
Opened 12 years ago
Closed 12 years ago
Implement promise abstraction
Categories
(Add-on SDK Graveyard :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: irakli, Assigned: irakli)
Details
Attachments
(2 files)
No description provided.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → rFobic
Priority: -- → P2
Assignee | ||
Comment 1•12 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•12 years ago
|
Attachment #593866 -
Flags: review?(poirot.alex)
Comment 2•12 years ago
|
||
I'd really like to see our team embrace Firefox team, Firefox codebase and all projects that are working *into* Firefox, like Devtools and Perf team. These teams managed to use the same Promise API. Devtools team has implemented its own Promise implementation, then Perf team has decided to use this existing implementation instead of crafting its own new wheel: http://mxr.mozilla.org/mozilla-central/source/browser/devtools/shared/Promise.jsm You may be interested by the upcoming module from Perf team called schedule.jsm: https://bug692420.bugzilla.mozilla.org/attachment.cgi?id=594212 I think it would be a valuable action, that would help us bootstraping projects in the upcoming Firefox workweek. What's your thought about this?
Assignee | ||
Comment 3•12 years ago
|
||
This implementaition has several issues that makes it poor feet For us. only creator of promise should have capabilities to resolve and not An every consumer that may not be trusted. I have talked about this several times with folks from dev tools on commonjs mailing list, bespin Mailing list and in person, so I don't think it make sense to start over again. Also since they don't face untrusted code it's not an issue for them. I don't think attempt to unify promise api across diff teams will be productive for anyone. We can attemp that later once we're happy with what we have.
Assignee | ||
Comment 4•12 years ago
|
||
Also it looks like `chainPromise` acts as `then` is supposed to. I wish they implemented http://wiki.commonjs.org/wiki/Promises/A spec, that way our promises could have been at least consumed by each other.
Assignee | ||
Comment 5•12 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•12 years ago
|
Attachment #599898 -
Flags: review?(poirot.alex)
Comment 6•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/ee0cbdec87c7daac69202df642ce051ef2e6414b Merge pull request #350 from Gozala/bug/micro-promise@723555 fix Bug 723555 - Implementation of promise abstraction r=@ochameau
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 7•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/f56aed287a981617fbdedb745e39d0a1465af5c4 Merge pull request #392 from Gozala/hotfix/promise Bug 723555 - Add files to the license test blacklist to fix oranges. a=@gozala
Comment 8•12 years ago
|
||
Comment on attachment 599898 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/350 Already r+ and landed in pull request.
Attachment #599898 -
Flags: review?(poirot.alex) → review+
Comment 9•12 years ago
|
||
Comment on attachment 593866 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/335# Already r+ and landed on github.
Attachment #593866 -
Flags: review?(poirot.alex) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•