WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
Bug 113571
Implement DOMFutures
https://bugs.webkit.org/show_bug.cgi?id=113571
Summary
Implement DOMFutures
Chris Dumez
Reported
2013-03-29 05:41:18 PDT
DOM 4 is introducing Futures, which offers a nicer way to build asynchronous APIs. Futures provide a convenient way to get access to the result of an operation. More details at:
http://dom.spec.whatwg.org/#futures
It would be nice to implement them in WebKit.
Attachments
WIP Patch
(42.57 KB, patch)
2013-03-29 16:11 PDT
,
Chris Dumez
peter+ews
: commit-queue-
Details
Formatted Diff
Diff
WIP Patch
(67.50 KB, patch)
2013-03-30 10:39 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
WIP Patch
(66.88 KB, patch)
2013-04-01 08:22 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2013-03-29 16:11:13 PDT
Created
attachment 195814
[details]
WIP Patch
Peter Beverloo (cr-android ews)
Comment 2
2013-03-29 16:28:28 PDT
Comment on
attachment 195814
[details]
WIP Patch
Attachment 195814
[details]
did not pass cr-android-ews (chromium-android): Output:
http://webkit-commit-queue.appspot.com/results/17255654
Early Warning System Bot
Comment 3
2013-03-29 16:29:17 PDT
Comment on
attachment 195814
[details]
WIP Patch
Attachment 195814
[details]
did not pass qt-ews (qt): Output:
http://webkit-commit-queue.appspot.com/results/17311746
WebKit Review Bot
Comment 4
2013-03-29 16:49:36 PDT
Comment on
attachment 195814
[details]
WIP Patch
Attachment 195814
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://webkit-commit-queue.appspot.com/results/17257696
Build Bot
Comment 5
2013-03-29 16:56:15 PDT
Comment on
attachment 195814
[details]
WIP Patch
Attachment 195814
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-commit-queue.appspot.com/results/17327415
WebKit Review Bot
Comment 6
2013-03-29 16:58:24 PDT
Comment on
attachment 195814
[details]
WIP Patch
Attachment 195814
[details]
did not pass cr-linux-debug-ews (chromium-xvfb): Output:
http://webkit-commit-queue.appspot.com/results/17356136
Build Bot
Comment 7
2013-03-29 17:15:17 PDT
Comment on
attachment 195814
[details]
WIP Patch
Attachment 195814
[details]
did not pass mac-ews (mac): Output:
http://webkit-commit-queue.appspot.com/results/17327421
Build Bot
Comment 8
2013-03-29 17:56:52 PDT
Comment on
attachment 195814
[details]
WIP Patch
Attachment 195814
[details]
did not pass mac-ews (mac): Output:
http://webkit-commit-queue.appspot.com/results/17330451
Early Warning System Bot
Comment 9
2013-03-30 02:39:11 PDT
Comment on
attachment 195814
[details]
WIP Patch
Attachment 195814
[details]
did not pass qt-wk2-ews (qt): Output:
http://webkit-commit-queue.appspot.com/results/17332298
Chris Dumez
Comment 10
2013-03-30 10:39:31 PDT
Created
attachment 195860
[details]
WIP Patch
Adam Barth
Comment 11
2013-03-30 10:43:57 PDT
I would like to review this patch before it lands.
Chris Dumez
Comment 12
2013-03-30 11:07:43 PDT
(In reply to
comment #11
)
> I would like to review this patch before it lands.
Sure. Is it better to send an email to webkit-dev as well to announce that I'm working on this?
Adam Barth
Comment 13
2013-03-30 11:49:23 PDT
> Sure. Is it better to send an email to webkit-dev as well to announce that I'm working on this?
That might be worthwhile. I'm more interested in the technical aspects of the patch (e.g., the usage of ScriptValue). It looks like your work is still in progress, so it didn't seem appropriate to review the current patch.
Chris Dumez
Comment 14
2013-03-30 12:54:20 PDT
(In reply to
comment #13
)
> > Sure. Is it better to send an email to webkit-dev as well to announce that I'm working on this? > > That might be worthwhile. I'm more interested in the technical aspects of the patch (e.g., the usage of ScriptValue). It looks like your work is still in progress, so it didn't seem appropriate to review the current patch.
This is useful feedback, thanks. Could you please explain the issue with using ScriptValue? Is there a better way to represent the WebIDL "any" type? I see that it is used quite a lot in the IndexedDB code, which I used as reference. I tried compiling the patch for Chromium to see if I was missing something related to V8 but the generic code seems to compile fine as ScriptValue also exists for V8 (although with a different API but it does not matter much for my use).
Adam Barth
Comment 15
2013-03-30 14:16:04 PDT
You almost certainly should not be using ScriptValue. Essentially any time we use ScriptValue, it's a memory leak. I'd have to study this feature in more detail to figure out the best way of implementing it.
Chris Dumez
Comment 16
2013-04-01 08:22:24 PDT
Created
attachment 195972
[details]
WIP Patch
Chris Dumez
Comment 17
2013-08-01 04:01:17 PDT
Promises should now be implemented, not futures.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug