зеркало из https://github.com/mozilla/pjs.git
backing out my last checkin
This commit is contained in:
Родитель
db871aeb76
Коммит
4f9db4fd33
|
@ -65,7 +65,6 @@
|
|||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMCharacterData.h"
|
||||
#include "nsIDOMNodeList.h"
|
||||
#include "nsIDOM3Node.h"
|
||||
|
||||
/* These are defined in nsBookmarksService.cpp */
|
||||
extern nsIRDFResource *kRDF_type;
|
||||
|
@ -94,7 +93,6 @@ extern nsIRDFContainerUtils *gRDFC;
|
|||
|
||||
static NS_DEFINE_CID(kRDFContainerCID, NS_RDFCONTAINER_CID);
|
||||
static NS_DEFINE_CID(kRDFInMemoryDataSourceCID, NS_RDFINMEMORYDATASOURCE_CID);
|
||||
static NS_DEFINE_CID(kStdURLCID, NS_STANDARDURL_CID);
|
||||
|
||||
nsresult nsBMSVCClearSeqContainer (nsIRDFDataSource* aDataSource, nsIRDFResource* aResource);
|
||||
nsresult nsBMSVCUnmakeSeq (nsIRDFDataSource* aDataSource, nsIRDFResource* aResource);
|
||||
|
@ -564,7 +562,6 @@ nsFeedLoadListener::TryParseAsSimpleRSS ()
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIDOMDocument> xmldoc;
|
||||
parser->SetBaseURI(mURI);
|
||||
rv = parser->ParseFromBuffer ((const PRUint8*) mBody.get(), mBody.Length(), "text/xml", getter_AddRefs(xmldoc));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
@ -705,23 +702,6 @@ nsFeedLoadListener::TryParseAsSimpleRSS ()
|
|||
{
|
||||
rv = linkElem->GetAttribute(NS_LITERAL_STRING("href"), linkStr);
|
||||
if (NS_FAILED(rv)) break; // out of while(childNode) loop
|
||||
|
||||
nsCOMPtr<nsIDOM3Node> linkElem3 = do_QueryInterface(childNode);
|
||||
if (linkElem3) {
|
||||
// get the BaseURI
|
||||
nsAutoString baseURI;
|
||||
linkElem3->GetBaseURI(baseURI);
|
||||
nsCOMPtr<nsIURI> base;
|
||||
base = nsCOMPtr<nsIURI>(do_CreateInstance(kStdURLCID, &rv));
|
||||
base->SetSpec(NS_ConvertUCS2toUTF8(baseURI));
|
||||
|
||||
// use it to resolve linkStr to an absolute URI
|
||||
nsCString result;
|
||||
rv = base->Resolve(NS_ConvertUCS2toUTF8(linkStr), result);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
linkStr = NS_ConvertUTF8toUCS2(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (linkStr.IsEmpty()) {
|
||||
// in node's TEXT
|
||||
|
|
Загрузка…
Ссылка в новой задаче