Closed Bug 1354847 Opened 8 years ago Closed 8 months ago

Allow creating SimpleChannel instances from JS

Categories

(Core :: Networking, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: kmag, Unassigned)

References

Details

(Whiteboard: [necko-triaged])

Bug 1351163 added a SimpleChannel class to allow creating simple stream-backed channels from C++. There are a few places where we need to do the same in JS, and currently need to resort to InputStreamChannels instead.
Blocks: 1355008
Whiteboard: [necko-next]
Priority: -- → P2
Moving to p3 because no activity for at least 1 year(s). See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Assignee: kmaglione+bmo → nobody
Severity: normal → S3

From the previous bug:

> Sorry for the question, is there a solution also for js implementations, or
> are we supposed to only use cpp for these more complex cases?

I had considered that, but I didn't want to implement it as part of this bug. It would be easy enough to support JS implementations with a [function] interface for the callbacks. I can implement that after this lands if you have a use for it.

there's a little more discussion of JS interfaces there too

Whiteboard: [necko-next] → [necko-triaged][necko-priority-new]

Marco, do you know if we still need this?

Severity: S3 → N/A
Flags: needinfo?(mak)
Whiteboard: [necko-triaged][necko-priority-new] → [necko-triaged]

(In reply to Kershaw Chang [:kershaw] from comment #4)

Marco, do you know if we still need this?

This was originally filed for some js implemented protocols like page-icon, but from then the protocol has been converted to cpp, so I personally don't have any other use cases. I don't know if others do, but eventually they can file a new bug for them. Imo this could be closed until that use-case is found.

Flags: needinfo?(mak)

Thanks. I agree that we can close this one.

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.