Firefox for Android uses the network library built into Gecko for page
requests, rather than any Java library in android. The code for this is
generally located in the mozilla code base at
https://hg.mozilla.org/mozilla-central/file/tip/netwerk/
The "webNavigation" object you ran into is an instance of something that
implements the nsIWebNavigation interface, which in this case happens to
be nsDocShell (I think). You can pick up the trail in the LoadURI
function at
https://hg.mozilla.org/mozilla-central/file/42cf476a66e2/docshell/base/nsDocShell.cpp#l4066.
You may find it useful to dig around using the MXR tool - the equivalent
link is at
http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp#4066
but this link will get out of date once nsDocShell is changed.
Cheers,
kats
On 13-07-25 23:37 , Caleb wrote:
Hi all,
What library or API calls does Fennec use to perform the basic HTTP GET
operation when a page is loaded?
I'm attempting to implement Kerberos authentication via SPNEGO in a web
browser on Android. In researching how I might accomplish such a thing
in Fennec, I've hit a bit of a wall: I'm unable to conclusively
determine where the GET operation is performed, so I can't determine
what needs to be modified.
grepping through the source code for references to HTTPURLConnection or
HttpClient hasn't turned up anything relevant. I see there's a copy of
httpclientandrdoidlib included in the source tree, but it appears to be
utilized by secondary services such as Mozilla Sync.
Stepping through the code in a debugger, I can trace the logic to the
"loadURIWithFlags" in toolkit/content/widgets/browser.xml, but there a
reference is made to an object (?) named "webNavigation", and there the
trail ends: I've been unable to locate a type that actually implements
the "loadURIWithFlags" functionality--if there's a relevant hit in the
grep results, it's lost in the noise of false positives.
I do sometimes see this LogCat message come up when I attempt to access
a secured page:
W/DefaultRequestDirector(636): Authentication error: Unable to
respond to any of these challenges: {negotiate=WWW-Authenticate: Negotiate}
This message makes me suspect that some implementation of Apache
HttpClient is in use, but I can't find the calls (either to the
reference implementation, or httpclientandroidlib). Break points in the
httpclientandroidlib code are never hit.
Any advice or leads would be greatly appreciated.
Cheers,
-Caleb
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev