зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1453869 part 2. Get rid of the unused nsIDOMParser::Init method. r=mrbkap
MozReview-Commit-ID: B3HVscqYE6G
This commit is contained in:
Родитель
bada81a4e5
Коммит
2cb41e7954
|
@ -304,7 +304,7 @@ DOMParser::ParseFromStream(nsIInputStream* aStream,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsresult
|
||||
DOMParser::Init(nsIPrincipal* principal, nsIURI* documentURI,
|
||||
nsIURI* baseURI, nsIGlobalObject* aScriptObject)
|
||||
{
|
||||
|
|
|
@ -85,6 +85,31 @@ private:
|
|||
MOZ_ASSERT(aOwner);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the principal and document and base URIs that the parser should
|
||||
* use for documents it creates. If this is not called, then a null
|
||||
* principal and its URI will be used. When creating a DOMParser via the JS
|
||||
* constructor, this will be called automatically. This method may only be
|
||||
* called once. If this method fails, all following parse attempts will
|
||||
* fail.
|
||||
*
|
||||
* @param principal The principal to use for documents we create.
|
||||
* If this is null, a codebase principal will be created
|
||||
* based on documentURI; in that case the documentURI must
|
||||
* be non-null.
|
||||
* @param documentURI The documentURI to use for the documents we create.
|
||||
* If null, the principal's URI will be used;
|
||||
* in that case, the principal must be non-null and its
|
||||
* URI must be non-null.
|
||||
* @param baseURI The baseURI to use for the documents we create.
|
||||
* If null, the documentURI will be used.
|
||||
* @param scriptObject The object from which the context for event handling
|
||||
* can be got.
|
||||
*/
|
||||
nsresult Init(nsIPrincipal* aPrincipal, nsIURI* aDocumentURI,
|
||||
nsIURI* aBaseURI, nsIGlobalObject* aSriptObjet);
|
||||
|
||||
|
||||
nsresult InitInternal(nsISupports* aOwner, nsIPrincipal* prin,
|
||||
nsIURI* documentURI, nsIURI* baseURI);
|
||||
|
||||
|
|
|
@ -64,32 +64,6 @@ interface nsIDOMParser : nsISupports
|
|||
in string charset,
|
||||
in long contentLength,
|
||||
in string contentType);
|
||||
|
||||
/**
|
||||
* Initialize the principal and document and base URIs that the parser should
|
||||
* use for documents it creates. If this is not called, then a null
|
||||
* principal and its URI will be used. When creating a DOMParser via the JS
|
||||
* constructor, this will be called automatically. This method may only be
|
||||
* called once. If this method fails, all following parse attempts will
|
||||
* fail.
|
||||
*
|
||||
* @param principal The principal to use for documents we create.
|
||||
* If this is null, a codebase principal will be created
|
||||
* based on documentURI; in that case the documentURI must
|
||||
* be non-null.
|
||||
* @param documentURI The documentURI to use for the documents we create.
|
||||
* If null, the principal's URI will be used;
|
||||
* in that case, the principal must be non-null and its
|
||||
* URI must be non-null.
|
||||
* @param baseURI The baseURI to use for the documents we create.
|
||||
* If null, the documentURI will be used.
|
||||
* @param scriptObject The object from which the context for event handling
|
||||
* can be got.
|
||||
*/
|
||||
[noscript] void init(in nsIPrincipal principal,
|
||||
in nsIURI documentURI,
|
||||
in nsIURI baseURI,
|
||||
in nsIGlobalObject scriptObject);
|
||||
};
|
||||
|
||||
%{ C++
|
||||
|
|
Загрузка…
Ссылка в новой задаче