Bug 629621 - Make the content sink no longer write http-equivs back to Necko. r=bzbarsky.
authorHenri Sivonen <hsivonen@iki.fi>
Wed, 15 Sep 2010 11:37:54 +0300
changeset 63866 72a6535227d2b328b7dc2af06190664833e1b121
parent 63865 e11c2f95f78116a1a4b6236e0facdfcbfcea90e7
child 63867 e901d6de0cc8e5991761145b43bae9bd93bd4fef
push idunknown
push userunknown
push dateunknown
reviewersbzbarsky
bugs629621
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 629621 - Make the content sink no longer write http-equivs back to Necko. r=bzbarsky.
content/base/src/nsContentSink.cpp
--- a/content/base/src/nsContentSink.cpp
+++ b/content/base/src/nsContentSink.cpp
@@ -530,34 +530,16 @@ nsContentSink::ProcessHeaderData(nsIAtom
     nsAutoString value(aValue);
     if (value.LowerCaseEqualsLiteral("no")) {
       nsIPresShell* shell = mDocument->GetShell();
       if (shell) {
         shell->DisableThemeSupport();
       }
     }
   }
-  // Don't report "refresh" headers back to necko, since our document handles
-  // them
-  else if (aHeader != nsGkAtoms::refresh && mParser) {
-    // we also need to report back HTTP-EQUIV headers to the channel
-    // so that it can process things like pragma: no-cache or other
-    // cache-control headers. Ideally this should also be the way for
-    // cookies to be set! But we'll worry about that in the next
-    // iteration
-    nsCOMPtr<nsIChannel> channel;
-    if (NS_SUCCEEDED(mParser->GetChannel(getter_AddRefs(channel)))) {
-      nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
-      if (httpChannel) {
-        httpChannel->SetResponseHeader(nsAtomCString(aHeader),
-                                       NS_ConvertUTF16toUTF8(aValue),
-                                       PR_TRUE);
-      }
-    }
-  }
 
   return rv;
 }
 
 
 void
 nsContentSink::DoProcessLinkHeader()
 {