Or add some new type for eventsource
Created attachment 542793 [details] [diff] [review] patch This is what was discussed during security review.
We could also just add a new type for eventsource. I don't know which one is better. EventSource works in many ways like multipart XHR.
Comment on attachment 542793 [details] [diff] [review] patch r=dveditz What type is websockets using? Should probably be the same. "XHR" == "script initiated data connection"? Could even add const unsigned long TYPE_DATAREQUEST = 11; to the IDL as an alias. Don't remove the existing one though: it's used by several add-ons.