Skip to content

Commit

Permalink
Bug 1141797. r=smaug.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmottola committed Jul 28, 2019
1 parent 7f562bc commit 6ac0692
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
10 changes: 5 additions & 5 deletions docshell/shistory/public/nsISHistoryInternal.idl
Expand Up @@ -14,8 +14,8 @@ interface nsIURI;

%{C++
#define NS_SHISTORY_INTERNAL_CID \
{ 0x9c47c121, 0x1c6e, 0x4d8f, \
{ 0xb9, 0x04, 0x3a, 0xc9, 0x68, 0x11, 0x6e, 0x88 } }
{ 0x3dfb2f54, 0x378d, 0x4d3c, \
{ 0xa9, 0xf9, 0x95, 0xdd, 0x26, 0x73, 0x24, 0x8c } }

#define NS_SHISTORY_INTERNAL_CONTRACTID "@mozilla.org/browser/shistory-internal;1"

Expand All @@ -24,7 +24,7 @@ interface nsIURI;

[ref] native nsDocshellIDArray(nsTArray<uint64_t>);

[scriptable, uuid(f9348014-0239-11e2-b029-3d38e719eb2d)]
[scriptable, uuid(3dfb2f54-378d-4d3c-a9f9-95dd2673248c)]
interface nsISHistoryInternal: nsISupports
{
/**
Expand All @@ -42,9 +42,9 @@ interface nsISHistoryInternal: nsISupports
readonly attribute nsISHTransaction rootTransaction;

/**
* The toplevel docshell object to which this SHistory object belongs to.
* Sets the toplevel docshell object to which this SHistory object belongs to.
*/
attribute nsIDocShell rootDocShell;
void setRootDocShell(in nsIDocShell rootDocShell);

/**
* Update the index maintained by sessionHistory
Expand Down
14 changes: 0 additions & 14 deletions docshell/shistory/src/nsSHistory.cpp
Expand Up @@ -1799,27 +1799,13 @@ nsSHistory::InitiateLoad(nsISHEntry * aFrameEntry, nsIDocShell * aFrameDS, long

}



NS_IMETHODIMP
nsSHistory::SetRootDocShell(nsIDocShell * aDocShell)
{
mRootDocShell = aDocShell;
return NS_OK;
}

NS_IMETHODIMP
nsSHistory::GetRootDocShell(nsIDocShell ** aDocShell)
{
NS_ENSURE_ARG_POINTER(aDocShell);

*aDocShell = mRootDocShell;
//Not refcounted. May this method should not be available for public
// NS_IF_ADDREF(*aDocShell);
return NS_OK;
}


NS_IMETHODIMP
nsSHistory::GetSHistoryEnumerator(nsISimpleEnumerator** aEnumerator)
{
Expand Down

0 comments on commit 6ac0692

Please sign in to comment.