RE: Macroless Page Info.
========
\BrowserView.cpp:
Top:
ON_COMMAND(ID_VIEW_PAGE_INFO, OnViewPageInfo)
Somewhere after CBrowserView class construction:
void CBrowserView::OnViewPageInfo()
{
if(! mWebNav)
return;
// Get the URI object we want to view from the cache.
nsresult rv = NS_OK;
nsCOMPtr<nsIURI> currentURI;
rv = mWebNav->GetCurrentURI(getter_AddRefs(currentURI));
if(NS_FAILED(rv) || !currentURI)
return;
// Get the uri string associated with the nsIURI object
nsCAutoString uriString;
rv = currentURI->GetSpec(uriString);
if(NS_FAILED(rv))
return;
// Build the page info url
nsCAutoString viewPageInfoUrl;
if(uriString.Find("
https://", 0) == -1)
viewPageInfoUrl.Append("about:cache-entry?client=HTTP&sb=1&key=");
else
viewPageInfoUrl.Append("about:cache-entry?client=HTTP-memory-only&sb=1&key=");
viewPageInfoUrl.Append(uriString.get());
OpenURL(viewPageInfoUrl.get());
}
In BrowserView.h:
afx_msg void OnViewPageInfo();
In define.Map.cpp
DEFINEMAP_ADD(ID_VIEW_PAGE_INFO)
In Resource.h:
#define ID_VIEW_PAGE_INFO 32813
========
Now you can add the line to DocumentPopup {} in menus.cfg:
Page Info = ID_VIEW_PAGE_INFO
My packages will include builds with this feature in the next up.
Shelumi`El
Jordan
S.D.G