Fix bug 135833 (view source not working right when it needs a repost).
r=rpotts, sr=darin. git-svn-id: svn://10.0.0.236/trunk@118905 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -467,7 +467,11 @@ nsresult CViewSourceHTML::WillBuildModel(const CParserContext& aParserContext,
|
||||
|
||||
if((!aParserContext.mPrevContext) && (mSink)) {
|
||||
|
||||
mFilename=aParserContext.mScanner->GetFilename();
|
||||
nsAString & contextFilename = aParserContext.mScanner->GetFilename();
|
||||
mFilename = Substring(contextFilename,
|
||||
12, // The length of "view-source:"
|
||||
contextFilename.Length() - 12);
|
||||
|
||||
mTags.Truncate();
|
||||
mErrors.Assign(NS_LITERAL_STRING(" HTML 4.0 Strict-DTD validation (enabled); [Should use Transitional?].\n"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user