зеркало из https://github.com/mozilla/gecko-dev.git
Reload now goes through the new nsIWebNavigation interface instead of the old nsIWebShell interface. Work on 13374 and landing of new session history/ uriloading. r=mscott a=jevering
This commit is contained in:
Родитель
03d2eba8b7
Коммит
9ebce62660
|
@ -25,6 +25,7 @@
|
|||
#include "nsGlobalWindow.h"
|
||||
#include "nsIWebShell.h"
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIURL.h"
|
||||
|
@ -610,15 +611,13 @@ LocationImpl::SetSearch(const nsString& aSearch)
|
|||
NS_IMETHODIMP
|
||||
LocationImpl::Reload(PRBool aForceget)
|
||||
{
|
||||
nsresult result = NS_OK;
|
||||
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mDocShell));
|
||||
NS_ENSURE_TRUE(webNav, NS_ERROR_FAILURE);
|
||||
|
||||
if(mDocShell)
|
||||
{
|
||||
nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(mDocShell));
|
||||
result = webShell->Reload(nsIChannel::LOAD_NORMAL);
|
||||
}
|
||||
NS_ENSURE_SUCCESS(webNav->Reload(nsIWebNavigation::reloadNormal),
|
||||
NS_ERROR_FAILURE);
|
||||
|
||||
return result;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче