Open Bug 1097434 Opened 6 years ago Updated 2 years ago

[BrowserAPI] Consider return DOM Promise from Browser API


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





(Reporter: kanru, Unassigned)


(Blocks 1 open bug)


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.

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.