From c8b977314e1c60f303717888224af80e47dae59f Mon Sep 17 00:00:00 2001 From: Chilau He Date: Fri, 11 Jan 2019 06:48:22 +0800 Subject: [PATCH] Change default wxWebViewIE offline behavior Allow opening web pages using this backend on systems without any network connection too. See https://github.com/wxWidgets/wxWidgets/pull/1133 --- src/msw/webview_ie.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msw/webview_ie.cpp b/src/msw/webview_ie.cpp index 2f98e83e0d..b39a78d864 100644 --- a/src/msw/webview_ie.cpp +++ b/src/msw/webview_ie.cpp @@ -110,6 +110,10 @@ bool wxWebViewIE::Create(wxWindow* parent, EnableControlFeature(21 /* FEATURE_DISABLE_NAVIGATION_SOUNDS */); + // Make behaviour consistent with the other backends when loading localhost + // pages without any physical network connection. + SetOfflineMode(false); + LoadURL(url); return true; }