views:

75

answers:

1

In Linux Firefox, if in case there is any error related to SSL/TLS, which source file does it refer to in order to generate the error code and pop up window (or error page)?

A: 

It's still not clear what exactly you're looking for since the implementation behind this is scattered among many source files, but I'll show you how to start.

Mozilla has MXR, which can be used to quickly search through their code. So we take the caption of a visible element on the page you're interested in, e.g. "I understand the risks" button and search for it: http://mxr.mozilla.org/mozilla-central/search?string=I%20understand%20the%20risks. You find the only hit, which defines the string and you'll need to search again to find where that string is actually used: http://mxr.mozilla.org/mozilla-central/search?string=certerror.expert.heading.

This gets us to http://mxr.mozilla.org/mozilla-central/source/browser/components/certerror/content/aboutCertError.xhtml which falls under the definition "Source file for Firefox’s SSL error", but may be not the end of your journey :)

Nickolay
Thanks guys! I'm using MXR now.
karikari