Closed
Bug 163129
Opened 22 years ago
Closed 21 years ago
2 different definitions for NS_ERROR_MODULE_NETWORK, 3
Categories
(Core :: Networking, defect)
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: BenB, Assigned: darin.moz)
References
Details
(Keywords: embed, helpwanted)
/netwerk/base/public/netCore.h, line 60 -- #define NS_BINDING_REDIRECTED NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 3) /netwerk/base/public/nsISocketTransportService.idl, line 134 -- #define NS_NET_STATUS_RESOLVING_HOST NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 3)
+neeti for her advice, ben if you know who own's this code or added the lines, please add them to the cc list.
Keywords: helpwanted
Reporter | ||
Comment 3•22 years ago
|
||
I have a patch for this, if anyone wants it, but it's of course trivial and not thoroughly tested ("WFM").
Assignee | ||
Comment 4•22 years ago
|
||
NS_NET_STATUS_RESOLVING_HOST is a status code passed via nsIProgressEventSink::OnStatus. it, and the other status codes that accompany it, should probably be declared as successful nsresult values instead of failure nsresult values. this may impact embedders however. -> me
Assignee: new-network-bugs → darin
Keywords: embed
Assignee | ||
Comment 5•21 years ago
|
||
not worth it to try to fix this at this point. too many consumers have hardcoded the error codes because they were not available to script. now they are (as a result of bug 176919), but i just don't see much point in fixing this bug. the status codes are particular to nsITransportEventSink/nsIProgressEventSink. they have nothing to do with the nsresult values that might be returned from a function call.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 6•21 years ago
|
||
Oh, I forgot about this bug and thus attached the patch to bug 124029. See bug 124029 comment 69 and 70. In particular, I think that nsIProgressEvent does pass error codes in the same variable where it passes these status codes, so I think there is indeed a collision.
Blocks: 4xRoaming
Reporter | ||
Comment 7•21 years ago
|
||
ok, darin said on IRC that nsIProgressEventSink:OnStatus never gets errors, only those few status codes. That means there is no real collision, it's just confusing, esp. given that it's an nsresult and the wording in the interface. There should be a clear warning about this problem. I'll create a comment-change and attach it to the roaming bug. I also worked around this problem in my code. Verify based on the above.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•