Closed
Bug 1502774
Opened 7 years ago
Closed 7 years ago
Remove XPCOM registrations for HTTP authenticators and auth modules
Categories
(Core :: Networking, enhancement, P3)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla65
| Tracking | Status | |
|---|---|---|
| firefox65 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(3 files)
No description provided.
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
Depends on D10025
| Assignee | ||
Comment 3•7 years ago
|
||
Depends on D10026
Comment 4•7 years ago
|
||
Please cc me next time on http authentication bugs. Thanks.
Updated•7 years ago
|
Priority: -- → P3
Whiteboard: [necko-triaged]
Comment 5•7 years ago
|
||
Backed out for
Backout link: https://hg.mozilla.org/integration/autoland/rev/af20bba72e84ae85bcf3bdbb65f4bcdb1e8c1dc5
Push link: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&classifiedState=unclassified&selectedJob=208384006&revision=a1f9c46668550d18322337e43b361e48a28694dd
Log link: https://treeherder.mozilla.org/logviewer.html#?job_id=208384006&repo=autoland&lineNumber=13626
Flags: needinfo?(ehsan)
Comment 6•7 years ago
|
||
...Backed out for mingwclang bustages on include/sspi.h
Comment 7•7 years ago
|
||
There were also bustages on Unified_cpp_extensions_auth0.obj
Log link: https://treeherder.mozilla.org/logviewer.html#?job_id=208383997&repo=autoland&lineNumber=16392
| Assignee | ||
Comment 8•7 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #4)
> Please cc me next time on http authentication bugs. Thanks.
Sure, will do.
Flags: needinfo?(ehsan)
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b403c3c786ee
Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin
https://hg.mozilla.org/integration/autoland/rev/07648e9d8400
Part 2: Remove XPCOM component registrations for auth module classes r=valentin
Comment 10•7 years ago
|
||
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/32a581482291
Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin
https://hg.mozilla.org/integration/autoland/rev/b3bf57d996a7
Part 2: Remove XPCOM component registrations for auth module classes r=valentin
https://hg.mozilla.org/integration/autoland/rev/6b821f5b12ae
Part 3: Remove nsAuthModule r=valentin
Comment 11•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/32a581482291
https://hg.mozilla.org/mozilla-central/rev/b3bf57d996a7
https://hg.mozilla.org/mozilla-central/rev/6b821f5b12ae
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Comment 12•7 years ago
|
||
Backed out for causing multiple crashes - Bug 1503201
Backout: https://hg.mozilla.org/mozilla-central/rev/c2b537178ae9cb4ee0c8afbc1504f97159a7aed5
Status: RESOLVED → REOPENED
status-firefox65:
fixed → ---
Flags: needinfo?(ehsan)
Resolution: FIXED → ---
Target Milestone: mozilla65 → ---
| Assignee | ||
Comment 13•7 years ago
|
||
The crash in bug 1503201 can be reproduced on https://jigsaw.w3.org/HTTP/Digest/ after entering "guest" as both user name and password.
Flags: needinfo?(ehsan)
| Assignee | ||
Comment 14•7 years ago
|
||
A better place to reproduce the bug is actually https://www.xda-developers.com/huawei-gopro-quik/.
On that page we end up getting a resource with the following string as the auth challenge: "Bearer realm=\"XDA\"". This gives us the "bearer" authType, which isn't a real auth type. Here, we fail with the NS_ERROR_SERVICE_NOT_FOUND error code.
*But*, and here is the source of our bug, NS_ERROR_SERVICE_NOT_FOUND is _not_ an error code, as it turns out, it is a _success_ code: https://searchfox.org/mozilla-central/rev/fc3d974254660b34638b2af9d5431618b191b233/xpcom/base/ErrorList.py#183
It seems to be used for the case where the XPCOM factory has returned a success error code, without returning an object: https://searchfox.org/mozilla-central/rev/fc3d974254660b34638b2af9d5431618b191b233/xpcom/components/nsComponentManager.cpp#1048. As a result, this NS_SUCCEEDED check <https://searchfox.org/mozilla-central/rev/fc3d974254660b34638b2af9d5431618b191b233/netwerk/protocol/http/nsHttpChannelAuthProvider.cpp#588> would pass and we'd fall into this branch here where |auth| would be null which would cause the crash: <https://searchfox.org/mozilla-central/rev/fc3d974254660b34638b2af9d5431618b191b233/netwerk/protocol/http/nsHttpChannelAuthProvider.cpp#612>.
Passing the correct XPCOM error code which is NS_ERROR_FACTORY_NOT_REGISTERED fixes the crash.
Comment 15•7 years ago
|
||
(In reply to :Ehsan Akhgari from comment #14)
> *But*, and here is the source of our bug, NS_ERROR_SERVICE_NOT_FOUND is
> _not_ an error code,
It would really not come through my mind to look at that error code declaration :D Good to know.
Comment 16•7 years ago
|
||
NS_ERROR_SERVICE_NOT_FOUND has been removed by bug 497136.
Comment 17•7 years ago
|
||
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/53675535f504
Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin
https://hg.mozilla.org/integration/autoland/rev/5662f3757fb4
Part 2: Remove XPCOM component registrations for auth module classes r=valentin
https://hg.mozilla.org/integration/autoland/rev/32c4433496ab
Part 3: Remove nsAuthModule r=valentin
Comment 18•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/53675535f504
https://hg.mozilla.org/mozilla-central/rev/5662f3757fb4
https://hg.mozilla.org/mozilla-central/rev/32c4433496ab
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•