I'm trying to use PassthrougApp for process html (and js) files before
they appear in webbrowser ctrl (translation process).
All files placed in local drive (this is desktop app). I registered
'file' namespace for handle it.
CMainDlg::InitDialog(...)
{
// ...
NewMetaFactory::CreateInstance(CLSID_FileProtocol, &m_spCFFILE);
hr = spSession->RegisterNameSpace(m_spCFFILE, CLSID_NULL, L"file", 0,
0, 0);
//...
}
And loading local file (d:\project\app\ui\about.html, for example)
about.html is process through
ReportProgress
ReportData
Read
but all include files - don't, but its urls (file://d:\project\app\ui
\jquery.js, for example) processed in OnStart, ReportProgress,
ReportData... but don't process in Read
.js files has text/javascript content type
If I register Http Protocol, all files was processing correctly (for
remote .html files).
With best regards,
Anton