Open Bug 1097434 Opened 10 years ago Updated 2 years ago

[BrowserAPI] Consider return DOM Promise from Browser API

Categories

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

defect

Tracking

()

People

(Reporter: kanru, Unassigned)

References

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.