Bug 598078 - DocShell warning: Could not fetch previous flags, URI will be treated like referrer. r=bz, a=warning
authorBenjamin Stover <bstover@mozilla.com>
Mon, 20 Sep 2010 10:27:28 -0700
changeset 58635 8b738045e4fd646cab12aee01ba7288fa96f56a8
parent 58634 12c31d0065cab5a446001415e42853fc6627b64c
child 58636 4222674401bab63c2bb3a4d94df123d230babdd4
push id17390
push userjwatt@jwatt.org
push dateSun, 05 Dec 2010 15:41:18 +0000
treeherdermozilla-central@4222674401ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, warning
bugs598078
milestone2.0b8pre
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 598078 - DocShell warning: Could not fetch previous flags, URI will be treated like referrer. r=bz, a=warning
docshell/base/nsDocShell.cpp
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -10445,17 +10445,17 @@ nsDocShell::ExtractLastVisit(nsIChannel*
     }
     else {
       rv = props->GetPropertyAsUint32(
           NS_LITERAL_STRING("docshell.previousFlags"),
           aChannelRedirectFlags
       );
 
       NS_WARN_IF_FALSE(
-          NS_FAILED(rv),
+          NS_SUCCEEDED(rv),
           "Could not fetch previous flags, URI will be treated like referrer"
       );
     }
 }
 
 void
 nsDocShell::SaveLastVisit(nsIChannel* aChannel,
                           nsIURI* aURI,