Closed Bug 1351443 Opened 8 years ago Closed 8 years ago

Can we only fallback to NewChannel() when NewChannel2() fails because it's unimplemented?

Categories

(Core :: Networking, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: kmag, Assigned: valentin)

References

Details

(Whiteboard: [necko-active])

Attachments

(1 file)

We currently fallback to NewChannel() when NewChannel2() fails for any reason. This is unexpected in a lot of cases. Since the fallback is only meant to handle cases where NewChannel2() is unimplemented, can we only do the fallback when the error code is NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED or NS_ERROR_NOT_IMPLEMENTED?
Pat, I think that would make sense actually, what do you think?
Flags: needinfo?(mcmanus)
sounds reasonable.
Flags: needinfo?(mcmanus)
Assignee: nobody → valentin.gosu
Whiteboard: [necko-active]
Comment on attachment 8853585 [details] Bug 1351443 - Only fall back to NewChannel if implementation of NewChannel2 is missing Drive by feedback - thanks for providing the patch and the test.
Attachment #8853585 - Flags: feedback+
Comment on attachment 8853585 [details] Bug 1351443 - Only fall back to NewChannel if implementation of NewChannel2 is missing https://reviewboard.mozilla.org/r/125652/#review129990 a LOG() or two might be useful..
Attachment #8853585 - Flags: review?(mcmanus) → review+
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/57b19b8018c7 Only fall back to NewChannel if implementation of NewChannel2 is missing r=mcmanus
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: