开发者

Source file for Firefox's SSL error

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


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 :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜