mshtml: Set correct load type in load_nsuri.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-07-25 15:30:32 +02:00 committed by Alexandre Julliard
parent cc16e0d2de
commit fcd136e1a2
2 changed files with 27 additions and 1 deletions

View File

@ -3757,9 +3757,32 @@ interface nsIContentViewer : nsISupports
]
interface nsIDocShellLoadInfo : nsISupports
{
typedef int32_t nsDocShellInfoLoadType;
typedef uint32_t nsDocShellInfoReferrerPolicy;
typedef enum {
loadNormal = 0,
loadNormalReplace = 1,
loadHistory = 2,
loadReloadNormal = 3,
loadReloadBypassCache = 4,
loadReloadBypassProxy = 5,
loadReloadBypassProxyAndCache = 6,
loadLink = 7,
loadRefresh = 8,
loadReloadCharsetChange = 9,
loadBypassHistory = 10,
loadStopContent = 11,
loadStopContentAndReplace = 12,
loadNormalExternal = 13,
loadNormalBypassCache = 14,
loadNormalBypassProxy = 15,
loadNormalBypassProxyAndCache = 16,
loadPushState = 17,
loadReplaceBypassCache = 18,
loadReloadMixedContent = 19,
loadNormalAllowMixedContent = 20
} nsDocShellInfoLoadType;
nsresult GetReferrer(nsIURI **aReferrer);
nsresult SetReferrer(nsIURI *aReferrer);
nsresult GetOriginalURI(nsIURI **aOriginalURI);

View File

@ -296,6 +296,9 @@ HRESULT load_nsuri(HTMLOuterWindow *window, nsWineURI *uri, nsIInputStream *post
return E_FAIL;
}
nsres = nsIDocShellLoadInfo_SetLoadType(load_info, (flags & LOAD_FLAGS_BYPASS_CACHE) ? loadNormalBypassCache : loadNormal);
assert(nsres == NS_OK);
nsres = nsIDocShellLoadInfo_SetPostDataStream(load_info, post_stream);
assert(nsres == NS_OK);
}