Closed Bug 806834 Opened 12 years ago Closed 7 years ago

Expose EventSource to Add-on SDK scripts

Categories

(Add-on SDK Graveyard :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: patryk, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0 Build ID: 20121024073032 Steps to reproduce: I try to use EventSource inteface in my add-on sdk based addon, but I'm unable to properly import the interface from Firefox. So far I've managed to do this: obj = Cc["@mozilla.org/eventsource;1"].createInstance(Ci.nsIEventSource); systemPrincipal =Cc["@mozilla.org/systemprincipal;1"].createInstance(Ci.nsIPrincipal); obj.init(systemPrincipal, null, null, url, withCredentials); Actual results: As far as I see it from https://developer.mozilla.org/en-US/docs/Server-sent_events/EventSource, init() can't be used from scripting code, so it's impossible to use it. Expected results: There should be possible to use this interface or implemented as a module in Add-on SDK.
Severity: normal → enhancement
Priority: -- → P3
Do we want to do this?
Flags: needinfo?(rFobic)
Priority: P3 → --
A note for Irakli
Priority: -- → P2
I think this very useful new DOM API that I can see being useful for add-ons but not sure if do have resources to actually do it though.
Flags: needinfo?(rFobic)
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.