Open Bug 1097434 Opened 5 years ago Updated 6 months ago

[BrowserAPI] Consider return DOM Promise from Browser API

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

People

(Reporter: kanru, Unassigned)

References

(Blocks 1 open bug)

Details

See bug 1044736 comment 22

We might want to change the returned DOMRequest to Promise. I'm not sure how to handle backward compatibility of Apps on marketplace (teach Promise onsuccess and onerror?). If the only user of the BrowserAPI is gaia app then this should be straightforward.
Blocks: browser-api
The Browser API is used by multiple apps in the Firefox Marketplace.

One possibility is to move to promises at the same time as switching from <iframe mozbrowser> to <webview> so that <iframe mozbrowser> can be kept as-is for backwards compatibility for a short time.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.