mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Bug 1746720 - Don't special-case <meta> refresh for XSLT. r=ckerschb,freddyb a=RyanVM
This commit is contained in:
parent
2ceec8871e
commit
b2b02865a8
2 changed files with 0 additions and 39 deletions
|
|
@ -236,19 +236,6 @@ txMozillaXMLOutput::endDocument(nsresult aResult)
|
|||
}
|
||||
}
|
||||
|
||||
if (!mRefreshString.IsEmpty()) {
|
||||
nsPIDOMWindowOuter* win = mDocument->GetWindow();
|
||||
if (win) {
|
||||
nsCOMPtr<nsIRefreshURI> refURI =
|
||||
do_QueryInterface(win->GetDocShell());
|
||||
if (refURI) {
|
||||
refURI->SetupRefreshURIFromHeader(mDocument->GetDocBaseURI(),
|
||||
mDocument->NodePrincipal(),
|
||||
mRefreshString);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (mNotifier) {
|
||||
mNotifier->OnTransformEnd();
|
||||
}
|
||||
|
|
@ -744,35 +731,11 @@ txMozillaXMLOutput::endHTMLElement(nsIContent* aElement)
|
|||
mCurrentNodeStack.RemoveObjectAt(last);
|
||||
mTableState = static_cast<TableState>
|
||||
(NS_PTR_TO_INT32(mTableStateStack.pop()));
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
else if (mCreatingNewDocument && aElement->IsHTMLElement(nsGkAtoms::meta)) {
|
||||
// handle HTTP-EQUIV data
|
||||
nsAutoString httpEquiv;
|
||||
aElement->GetAttr(kNameSpaceID_None, nsGkAtoms::httpEquiv, httpEquiv);
|
||||
if (!httpEquiv.IsEmpty()) {
|
||||
nsAutoString value;
|
||||
aElement->GetAttr(kNameSpaceID_None, nsGkAtoms::content, value);
|
||||
if (!value.IsEmpty()) {
|
||||
nsContentUtils::ASCIIToLower(httpEquiv);
|
||||
nsCOMPtr<nsIAtom> header = NS_Atomize(httpEquiv);
|
||||
processHTTPEquiv(header, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void txMozillaXMLOutput::processHTTPEquiv(nsIAtom* aHeader, const nsString& aValue)
|
||||
{
|
||||
// For now we only handle "refresh". There's a longer list in
|
||||
// HTMLContentSink::ProcessHeaderData
|
||||
if (aHeader == nsGkAtoms::refresh)
|
||||
LossyCopyUTF16toASCII(aValue, mRefreshString);
|
||||
}
|
||||
|
||||
nsresult
|
||||
txMozillaXMLOutput::createResultDocument(const nsSubstring& aName, int32_t aNsID,
|
||||
nsIDOMDocument* aSourceDocument,
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ private:
|
|||
nsresult createTxWrapper();
|
||||
nsresult startHTMLElement(nsIContent* aElement, bool aXHTML);
|
||||
nsresult endHTMLElement(nsIContent* aElement);
|
||||
void processHTTPEquiv(nsIAtom* aHeader, const nsString& aValue);
|
||||
nsresult createHTMLElement(nsIAtom* aName,
|
||||
nsIContent** aResult);
|
||||
|
||||
|
|
@ -105,7 +104,6 @@ private:
|
|||
RefPtr<txTransformNotifier> mNotifier;
|
||||
|
||||
uint32_t mTreeDepth, mBadChildLevel;
|
||||
nsCString mRefreshString;
|
||||
|
||||
txStack mTableStateStack;
|
||||
enum TableState {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue