General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=deadlock] [quote=disrupted] see if you can fix the view certificate button above[/quote] Can't this be solved with .js in /chrome? Here is a solution for next KM (works in CVS-Version): [color=#FF0033]netErrorApp.dtd[/color] === <xul:button xmlns:xul='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul' id='vieshit' label='&examineCert.label;'/> === (do not change ') [i](UPDATE moved from netError.xhtml to netErrorApp.dtd)[/i] [color=#FF0033]BrowserGlue.cpp[/color] === void CBrowserGlue::performXULCommand(LPCWSTR id, LPCTSTR siteUri) { if (wcscmp(id, L'vieshit') == 0) { nsCOMPtr<nsIRecentBadCertsService> badCertService = do_GetService(NS_RECENTBADCERTS_CONTRACTID); if (!badCertService) return; nsCOMPtr<nsIURI> uri; mpBrowserView->GetBrowserWrapper()->GetCurrentURI(getter_AddRefs(uri)); nsresult rv; PRInt32 port; nsEmbedCString host; uri->GetHost(host); uri->GetPort(&port); if (port == -1) port = 443; CString hostAndPort; hostAndPort.Format(_T('%s:%d'), NSCStringToCString(host), port); nsCOMPtr<nsISSLStatus> certStatus; badCertService->GetRecentBadCert(CStringToNSString(hostAndPort), getter_AddRefs(certStatus)); if (!certStatus) return; nsCOMPtr<nsIX509Cert> cert; certStatus->GetServerCert(getter_AddRefs(cert)); if (!cert) return; nsCOMPtr<nsICertificateDialogs> certDialogs = do_GetService (NS_CERTIFICATEDIALOGS_CONTRACTID, &rv); if (NS_FAILED (rv)) return; certDialogs->ViewCert(NULL, cert); return; } ... } === (change all ' to '')[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development
English