Bug 1472087 - Remove nsDocShell::CreateLoadInfo; r=nika
We can now just call new nsDocShellLoadInfo instead of worrying about
xpcom fallibility.
MozReview-Commit-ID: 80tHtBji1Vm
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -1019,26 +1019,16 @@ nsDocShell::LoadURI(nsIURI* aURI,
aFirstParty,
srcdoc,
sourceDocShell,
baseURI,
nullptr, // No nsIDocShell
nullptr); // No nsIRequest
}
-NS_IMETHODIMP
-nsDocShell::CreateLoadInfo(nsDocShellLoadInfo** aLoadInfo)
-{
- nsDocShellLoadInfo* loadInfo = new nsDocShellLoadInfo();
- RefPtr<nsDocShellLoadInfo> localRef(loadInfo);
-
- localRef.forget(aLoadInfo);
- return NS_OK;
-}
-
/*
* Reset state to a new content model within the current document and the
* document viewer. Called by the document before initiating an out of band
* document.write().
*/
NS_IMETHODIMP
nsDocShell::PrepareForNewContentModel()
{
--- a/docshell/base/nsIDocShell.idl
+++ b/docshell/base/nsIDocShell.idl
@@ -204,22 +204,16 @@ interface nsIDocShell : nsIDocShellTreeI
* Do either a history.pushState() or history.replaceState() operation,
* depending on the value of aReplace.
*/
[implicit_jscontext]
void addState(in jsval aData, in DOMString aTitle,
in DOMString aURL, in boolean aReplace);
/**
- * Creates a DocShellLoadInfo object that you can manipulate and then pass
- * to loadURI.
- */
- void createLoadInfo(out nsDocShellLoadInfoPtr loadInfo);
-
- /**
* Reset state to a new content model within the current document and the document
* viewer. Called by the document before initiating an out of band document.write().
*/
void prepareForNewContentModel();
/**
* For editors and suchlike who wish to change the URI associated with the
* document. Note if you want to get the current URI, use the read-only