bug 324985 Allow components to register in a category to get told about all page

loads and allow sniffing the content type. Only works for docshell-initiated
loads.
r=darin sr=bz


git-svn-id: svn://10.0.0.236/trunk@191729 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de
2006-03-03 21:06:53 +00:00
parent 01a416a9c4
commit 031dc8af70
11 changed files with 271 additions and 17 deletions

View File

@@ -6891,10 +6891,11 @@ nsresult nsDocShell::DoChannelLoad(nsIChannel * aChannel,
nsIURILoader * aURILoader)
{
nsresult rv;
// Mark the channel as being a document URI...
// Mark the channel as being a document URI and allow content sniffing...
nsLoadFlags loadFlags = 0;
(void) aChannel->GetLoadFlags(&loadFlags);
loadFlags |= nsIChannel::LOAD_DOCUMENT_URI;
loadFlags |= nsIChannel::LOAD_DOCUMENT_URI |
nsIChannel::LOAD_CALL_CONTENT_SNIFFERS;
// Load attributes depend on load type...
switch (mLoadType) {