Re: Will DOMRequest be unified in future? DOMRequest vs ContactsRequest

2013/7/23 Min, Hongbo <hongbo.min@intel.com>

> My concern is, would we unify the DOMRequest definitions and requires that
> all ongoing operation returns a DOMRequest object? In that case, it would
> make Web developer more happier since they have a consistent returning
> object for ongoing operation.

If a unification was to happen, I hope it will be for everthing to return a
Promise http://dom.spec.whatwg.org/#promises
Worst case (need of FirefoxOS backward compat?), DOMRequest could be
reworked to inherit from Promise. But the way forward is to never use
DOMRequest ever again in a spec and use promises instead.

Everything returning a Promise would make webdevs much happier than
everything returning DOMRequest I imagine :-)

David

Received on Tuesday, 23 July 2013 09:24:21 UTC