Bug 617789 - Links in view page source when base href exists fixed. r=hsivonen.
This commit is contained in:
@@ -100,6 +100,7 @@ nsHtml5TreeOperation::~nsHtml5TreeOperation()
|
||||
case eTreeOpAppendComment:
|
||||
case eTreeOpAppendCommentToDocument:
|
||||
case eTreeOpAddViewSourceHref:
|
||||
case eTreeOpAddViewSourceBase:
|
||||
delete[] mTwo.unicharPtr;
|
||||
break;
|
||||
case eTreeOpSetDocumentCharset:
|
||||
@@ -957,6 +958,13 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
case eTreeOpAddViewSourceBase: {
|
||||
char16_t* buffer = mTwo.unicharPtr;
|
||||
int32_t length = mFour.integer;
|
||||
nsDependentString baseUrl(buffer, length);
|
||||
aBuilder->AddBase(baseUrl);
|
||||
return NS_OK;
|
||||
}
|
||||
default: {
|
||||
MOZ_CRASH("Bogus tree op");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user