Skip to content

Commit 0513200

Browse files
committed
browser(webkit): no_startup_window on linux (#1117)
1 parent 98770e9 commit 0513200

File tree

2 files changed

+104
-55
lines changed

2 files changed

+104
-55
lines changed

browser_patches/webkit/BUILD_NUMBER

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1157
1+
1158

browser_patches/webkit/patches/bootstrap.diff

+103-54
Original file line numberDiff line numberDiff line change
@@ -8468,10 +8468,10 @@ index 8a871bf2916d5eab86becf5fde0faed79283d88c..a19a429c4d53edf81c3028c7053265e6
84688468

84698469
diff --git a/Source/WebKit/UIProcess/RemoteInspectorPipe.cpp b/Source/WebKit/UIProcess/RemoteInspectorPipe.cpp
84708470
new file mode 100644
8471-
index 0000000000000000000000000000000000000000..0b4ec2de5671723f4045e98b3e398fc11180b3b8
8471+
index 0000000000000000000000000000000000000000..45d8dc48601548951dc5c5ecd68958dbd47c89db
84728472
--- /dev/null
84738473
+++ b/Source/WebKit/UIProcess/RemoteInspectorPipe.cpp
8474-
@@ -0,0 +1,219 @@
8474+
@@ -0,0 +1,220 @@
84758475
+/*
84768476
+ * Copyright (C) 2019 Microsoft Corporation.
84778477
+ *
@@ -8624,6 +8624,7 @@ index 0000000000000000000000000000000000000000..0b4ec2de5671723f4045e98b3e398fc1
86248624
+
86258625
+bool RemoteInspectorPipe::start()
86268626
+{
8627+
+ WTF::RunLoop::initializeMainRunLoop();
86278628
+ if (m_receiverThread)
86288629
+ return true;
86298630
+
@@ -11921,8 +11922,42 @@ index 9e9978efd3d821c7afcd7b65e14c64e36b355802..a5eef119bddd011470319ac80a0ac443
1192111922
g_signal_connect(tab->webView, "load-failed-with-tls-errors", G_CALLBACK(loadFailedWithTLSerrors), tab);
1192211923
g_signal_connect(tab->webView, "permission-request", G_CALLBACK(decidePermissionRequest), tab);
1192311924
g_signal_connect(tab->webView, "run-color-chooser", G_CALLBACK(runColorChooserCallback), tab);
11925+
diff --git a/Tools/MiniBrowser/gtk/BrowserWindow.c b/Tools/MiniBrowser/gtk/BrowserWindow.c
11926+
index 37f9eefbafd14b69c2bedf928ef379670cfef531..5e7e5db253cf788a079e4a0922833b0778b4640d 100644
11927+
--- a/Tools/MiniBrowser/gtk/BrowserWindow.c
11928+
+++ b/Tools/MiniBrowser/gtk/BrowserWindow.c
11929+
@@ -79,6 +79,8 @@ static const gdouble defaultZoomLevel = 1;
11930+
static const gdouble zoomStep = 1.2;
11931+
static GList *windowList;
11932+
11933+
+static gboolean no_quit = false;
11934+
+
11935+
G_DEFINE_TYPE(BrowserWindow, browser_window, GTK_TYPE_WINDOW)
11936+
11937+
static char *getExternalURI(const char *uri)
11938+
@@ -707,7 +709,7 @@ static void browserWindowFinalize(GObject *gObject)
11939+
11940+
G_OBJECT_CLASS(browser_window_parent_class)->finalize(gObject);
11941+
11942+
- if (!windowList)
11943+
+ if (!windowList && !no_quit)
11944+
gtk_main_quit();
11945+
}
11946+
11947+
@@ -1233,6 +1235,11 @@ void browser_window_set_background_color(BrowserWindow *window, GdkRGBA *rgba)
11948+
gtk_widget_set_app_paintable(GTK_WIDGET(window), TRUE);
11949+
}
11950+
11951+
+void browser_window_no_quit(void)
11952+
+{
11953+
+ no_quit = true;
11954+
+}
11955+
+
11956+
static BrowserWindow *findActiveWindow(void)
11957+
{
11958+
GList *l;
1192411959
diff --git a/Tools/MiniBrowser/gtk/BrowserWindow.h b/Tools/MiniBrowser/gtk/BrowserWindow.h
11925-
index 1570d65effb5d601ee3c44a2a7461436f4691c2c..456f96cf589320efa70a76f76e230b6795886b5a 100644
11960+
index 1570d65effb5d601ee3c44a2a7461436f4691c2c..65e62adad0c3684e5cec2f6bc8e7f5281e1f77eb 100644
1192611961
--- a/Tools/MiniBrowser/gtk/BrowserWindow.h
1192711962
+++ b/Tools/MiniBrowser/gtk/BrowserWindow.h
1192811963
@@ -37,7 +37,7 @@ G_BEGIN_DECLS
@@ -11934,31 +11969,42 @@ index 1570d65effb5d601ee3c44a2a7461436f4691c2c..456f96cf589320efa70a76f76e230b67
1193411969
#define BROWSER_ABOUT_SCHEME "minibrowser-about"
1193511970

1193611971
typedef struct _BrowserWindow BrowserWindow;
11972+
@@ -53,7 +53,7 @@ void browser_window_load_session(BrowserWindow *, const char *sessionFile);
11973+
void browser_window_set_background_color(BrowserWindow*, GdkRGBA*);
11974+
WebKitWebView* browser_window_get_or_create_web_view_for_automation(void);
11975+
WebKitWebView *browser_window_create_web_view_in_new_tab_for_automation(void);
11976+
-
11977+
+void browser_window_no_quit(void);
11978+
G_END_DECLS
11979+
11980+
#endif
1193711981
diff --git a/Tools/MiniBrowser/gtk/main.c b/Tools/MiniBrowser/gtk/main.c
11938-
index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..4b1cab0c187352688740c7cca79483fa256aa7fe 100644
11982+
index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..77d031add801b2f45c9d90e74afab8802aa08e20 100644
1193911983
--- a/Tools/MiniBrowser/gtk/main.c
1194011984
+++ b/Tools/MiniBrowser/gtk/main.c
11941-
@@ -53,6 +53,9 @@ static const char *cookiesFile;
11985+
@@ -53,6 +53,10 @@ static const char *cookiesFile;
1194211986
static const char *cookiesPolicy;
1194311987
static const char *proxy;
1194411988
static gboolean darkMode;
1194511989
+static gboolean inspectorPipe;
1194611990
+static gboolean headless;
11991+
+static gboolean noStartupWindow;
1194711992
+static const char *userDataDir;
1194811993
static gboolean printVersion;
1194911994

1195011995
typedef enum {
11951-
@@ -121,6 +124,9 @@ static const GOptionEntry commandLineOptions[] =
11996+
@@ -121,6 +125,10 @@ static const GOptionEntry commandLineOptions[] =
1195211997
{ "ignore-tls-errors", 0, 0, G_OPTION_ARG_NONE, &ignoreTLSErrors, "Ignore TLS errors", NULL },
1195311998
{ "content-filter", 0, 0, G_OPTION_ARG_FILENAME, &contentFilter, "JSON with content filtering rules", "FILE" },
1195411999
{ "version", 'v', 0, G_OPTION_ARG_NONE, &printVersion, "Print the WebKitGTK version", NULL },
1195512000
+ { "inspector-pipe", 0, 0, G_OPTION_ARG_NONE, &inspectorPipe, "Open pipe connection to the remote inspector", NULL },
1195612001
+ { "user-data-dir", 0, 0, G_OPTION_ARG_STRING, &userDataDir, "Default profile persistence folder location", NULL },
1195712002
+ { "headless", 0, 0, G_OPTION_ARG_NONE, &headless, "Noop headless operation", NULL },
12003+
+ { "no-startup-window", 0, 0, G_OPTION_ARG_NONE, &noStartupWindow, "Do not open default page", NULL },
1195812004
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &uriArguments, 0, "[URL…]" },
1195912005
{ 0, 0, 0, 0, 0, 0, 0 }
1196012006
};
11961-
@@ -498,6 +504,36 @@ static void filterSavedCallback(WebKitUserContentFilterStore *store, GAsyncResul
12007+
@@ -498,6 +506,34 @@ static void filterSavedCallback(WebKitUserContentFilterStore *store, GAsyncResul
1196212008
g_main_loop_quit(data->mainLoop);
1196312009
}
1196412010

@@ -11982,10 +12028,8 @@ index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..4b1cab0c187352688740c7cca79483fa
1198212028
+ return newWebView;
1198312029
+}
1198412030
+
11985-
+static void configureBrowserInspectorPipe(WebKitWebContext *webContext)
12031+
+static void configureBrowserInspectorPipe()
1198612032
+{
11987-
+ persistentWebContext = webContext;
11988-
+
1198912033
+ WebKitBrowserInspector* browserInspector = webkit_browser_inspector_get_default();
1199012034
+ g_signal_connect(browserInspector, "create-new-page", G_CALLBACK(createNewPage), NULL);
1199112035
+
@@ -11995,11 +12039,21 @@ index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..4b1cab0c187352688740c7cca79483fa
1199512039
int main(int argc, char *argv[])
1199612040
{
1199712041
#if ENABLE_DEVELOPER_MODE
11998-
@@ -541,10 +577,22 @@ int main(int argc, char *argv[])
12042+
@@ -541,8 +577,28 @@ int main(int argc, char *argv[])
1199912043
return 0;
1200012044
}
1200112045

1200212046
- WebKitWebsiteDataManager *manager = (privateMode || automationMode) ? webkit_website_data_manager_new_ephemeral() : webkit_website_data_manager_new(NULL);
12047+
+ if (inspectorPipe)
12048+
+ configureBrowserInspectorPipe();
12049+
+
12050+
+ if (noStartupWindow) {
12051+
+ browser_window_no_quit();
12052+
+ gtk_main();
12053+
+ g_clear_object(&webkitSettings);
12054+
+ return 0;
12055+
+ }
12056+
+
1200312057
+ WebKitWebsiteDataManager *manager;
1200412058
+ if (userDataDir) {
1200512059
+ manager = webkit_website_data_manager_new("base-data-directory", userDataDir, "base-cache-directory", userDataDir, NULL);
@@ -12011,15 +12065,11 @@ index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..4b1cab0c187352688740c7cca79483fa
1201112065
+ }
1201212066
+
1201312067
WebKitWebContext *webContext = g_object_new(WEBKIT_TYPE_WEB_CONTEXT, "website-data-manager", manager, "process-swap-on-cross-site-navigation-enabled", TRUE, NULL);
12068+
+ persistentWebContext = webContext;
1201412069
g_object_unref(manager);
1201512070

12016-
+ if (inspectorPipe)
12017-
+ configureBrowserInspectorPipe(webContext);
12018-
+
1201912071
if (cookiesPolicy) {
12020-
WebKitCookieManager *cookieManager = webkit_web_context_get_cookie_manager(webContext);
12021-
GEnumClass *enumClass = g_type_class_ref(WEBKIT_TYPE_COOKIE_ACCEPT_POLICY);
12022-
@@ -648,8 +696,7 @@ int main(int argc, char *argv[])
12072+
@@ -648,8 +704,7 @@ int main(int argc, char *argv[])
1202312073

1202412074
gtk_main();
1202512075

@@ -12591,10 +12641,10 @@ index 373d0de77e852c673a6615e0acedd5195e3c021b..cfeb4f806f79d1a213fdb13346e2b383
1259112641
+ WKPageRunBeforeUnloadConfirmPanelResultListenerRef m_beforeUnloadDialog = { };
1259212642
};
1259312643
diff --git a/Tools/MiniBrowser/win/WinMain.cpp b/Tools/MiniBrowser/win/WinMain.cpp
12594-
index 6008ca19e26a938cf962c0c336299fff7d13f9a3..a5f7daaf5c2dc860296b5d9379d5637d611ca707 100644
12644+
index 6008ca19e26a938cf962c0c336299fff7d13f9a3..8005d72f8c0d9ef82efda8aec1ff0e7d96501ae8 100644
1259512645
--- a/Tools/MiniBrowser/win/WinMain.cpp
1259612646
+++ b/Tools/MiniBrowser/win/WinMain.cpp
12597-
@@ -31,7 +31,12 @@
12647+
@@ -31,6 +31,10 @@
1259812648
#include "stdafx.h"
1259912649
#include "Common.h"
1260012650
#include "MiniBrowserLibResource.h"
@@ -12603,11 +12653,9 @@ index 6008ca19e26a938cf962c0c336299fff7d13f9a3..a5f7daaf5c2dc860296b5d9379d5637d
1260312653
+#include <WebKit/WKWebsiteDataStoreConfigurationRef.h>
1260412654
+#include <WebKit/WKWebsiteDataStoreRef.h>
1260512655
#include <wtf/win/SoftLinking.h>
12606-
+#include <wtf/RunLoop.h>
1260712656

1260812657
#if USE(CF)
12609-
#include <CoreFoundation/CoreFoundation.h>
12610-
@@ -46,11 +51,30 @@
12658+
@@ -46,9 +50,25 @@
1261112659
#include <WebKitLegacy/WebKitCOMAPI.h>
1261212660
#endif
1261312661

@@ -12632,13 +12680,8 @@ index 6008ca19e26a938cf962c0c336299fff7d13f9a3..a5f7daaf5c2dc860296b5d9379d5637d
1263212680
+
1263312681
int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpstrCmdLine, _In_ int nCmdShow)
1263412682
{
12635-
+#if ENABLE(WEBKIT)
12636-
+ WTF::RunLoop::initializeMainRunLoop();
12637-
+#endif
1263812683
#ifdef _CRTDBG_MAP_ALLOC
12639-
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
12640-
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
12641-
@@ -66,6 +90,11 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
12684+
@@ -66,6 +86,11 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
1264212685
InitCommonControlsEx(&InitCtrlEx);
1264312686

1264412687
auto options = parseCommandLine();
@@ -12650,17 +12693,17 @@ index 6008ca19e26a938cf962c0c336299fff7d13f9a3..a5f7daaf5c2dc860296b5d9379d5637d
1265012693

1265112694
if (options.useFullDesktop)
1265212695
computeFullDesktopFrame();
12653-
@@ -74,32 +103,50 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
12696+
@@ -74,32 +99,50 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
1265412697
OleInitialize(nullptr);
1265512698

1265612699
if (SetProcessDpiAwarenessContextPtr())
1265712700
- SetProcessDpiAwarenessContextPtr()(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
1265812701
- else
1265912702
- ::SetProcessDPIAware();
1266012703
+ SetProcessDpiAwarenessContextPtr()(DPI_AWARENESS_CONTEXT_UNAWARE);
12661-
12662-
+ MainWindow::configure(options.headless, options.noStartupWindow);
1266312704
+
12705+
+ MainWindow::configure(options.headless, options.noStartupWindow);
12706+
1266412707
+ if (!options.noStartupWindow) {
1266512708
#if !ENABLE(WEBKIT_LEGACY)
1266612709
- auto factory = WebKitBrowserWindow::create;
@@ -12730,7 +12773,7 @@ index 04d3630dc2b0f5e937af173046268001da003753..ba0a60b832cd353776bb50b8198df2d8
1273012773
)
1273112774

1273212775
diff --git a/Tools/MiniBrowser/wpe/main.cpp b/Tools/MiniBrowser/wpe/main.cpp
12733-
index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5af33bab8 100644
12776+
index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..a10ce93a58f138eb475273444bba33f9a6b69081 100644
1273412777
--- a/Tools/MiniBrowser/wpe/main.cpp
1273512778
+++ b/Tools/MiniBrowser/wpe/main.cpp
1273612779
@@ -25,7 +25,7 @@
@@ -12742,25 +12785,27 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
1274212785
#include "WindowViewBackend.h"
1274312786
#if ENABLE_WEB_AUDIO || ENABLE_VIDEO
1274412787
#include <gst/gst.h>
12745-
@@ -43,6 +43,8 @@ static gboolean headlessMode;
12788+
@@ -43,6 +43,9 @@ static gboolean headlessMode;
1274612789
static gboolean privateMode;
1274712790
static gboolean automationMode;
1274812791
static gboolean ignoreTLSErrors;
1274912792
+static gboolean inspectorPipe;
12793+
+static gboolean noStartupWindow;
1275012794
+static const char* userDataDir;
1275112795
static const char* contentFilter;
1275212796
static const char* cookiesFile;
1275312797
static const char* cookiesPolicy;
12754-
@@ -63,6 +65,8 @@ static const GOptionEntry commandLineOptions[] =
12798+
@@ -63,6 +66,9 @@ static const GOptionEntry commandLineOptions[] =
1275512799
{ "content-filter", 0, 0, G_OPTION_ARG_FILENAME, &contentFilter, "JSON with content filtering rules", "FILE" },
1275612800
{ "bg-color", 0, 0, G_OPTION_ARG_STRING, &bgColor, "Window background color. Default: white", "COLOR" },
1275712801
{ "version", 'v', 0, G_OPTION_ARG_NONE, &printVersion, "Print the WPE version", nullptr },
1275812802
+ { "inspector-pipe", 'v', 0, G_OPTION_ARG_NONE, &inspectorPipe, "Expose remote debugging protocol over pipe", nullptr },
1275912803
+ { "user-data-dir", 0, 0, G_OPTION_ARG_STRING, &userDataDir, "Default profile persistence folder location", "FILE" },
12804+
+ { "no-startup-window", 0, 0, G_OPTION_ARG_NONE, &noStartupWindow, "Do not open default page", nullptr },
1276012805
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &uriArguments, nullptr, "[URL]" },
1276112806
{ nullptr, 0, 0, G_OPTION_ARG_NONE, nullptr, nullptr, nullptr }
1276212807
};
12763-
@@ -131,7 +135,7 @@ static gboolean decidePermissionRequest(WebKitWebView *, WebKitPermissionRequest
12808+
@@ -131,7 +137,7 @@ static gboolean decidePermissionRequest(WebKitWebView *, WebKitPermissionRequest
1276412809
static std::unique_ptr<WPEToolingBackends::ViewBackend> createViewBackend(uint32_t width, uint32_t height)
1276512810
{
1276612811
if (headlessMode)
@@ -12769,7 +12814,7 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
1276912814
return std::make_unique<WPEToolingBackends::WindowViewBackend>(width, height);
1277012815
}
1277112816

12772-
@@ -147,12 +151,33 @@ static void filterSavedCallback(WebKitUserContentFilterStore *store, GAsyncResul
12817+
@@ -147,12 +153,33 @@ static void filterSavedCallback(WebKitUserContentFilterStore *store, GAsyncResul
1277312818
g_main_loop_quit(data->mainLoop);
1277412819
}
1277512820

@@ -12804,7 +12849,7 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
1280412849
{
1280512850
auto backend = createViewBackend(1280, 720);
1280612851
struct wpe_view_backend* wpeBackend = backend->backend();
12807-
@@ -164,14 +189,56 @@ static WebKitWebView* createWebView(WebKitWebView* webView, WebKitNavigationActi
12852+
@@ -164,14 +191,54 @@ static WebKitWebView* createWebView(WebKitWebView* webView, WebKitNavigationActi
1280812853
delete static_cast<WPEToolingBackends::ViewBackend*>(data);
1280912854
}, backend.release());
1281012855

@@ -12852,10 +12897,8 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
1285212897
+ return webView;
1285312898
+}
1285412899
+
12855-
+static void configureBrowserInspector(GMainLoop* mainLoop, WebKitWebContext *webContext)
12900+
+static void configureBrowserInspector(GMainLoop* mainLoop)
1285612901
+{
12857-
+ persistentWebContext = webContext;
12858-
+
1285912902
+ WebKitBrowserInspector* browserInspector = webkit_browser_inspector_get_default();
1286012903
+ g_signal_connect(browserInspector, "create-new-page", G_CALLBACK(createNewPage), NULL);
1286112904
+ webkit_browser_inspector_initialize_pipe(mainLoop);
@@ -12864,7 +12907,22 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
1286412907
int main(int argc, char *argv[])
1286512908
{
1286612909
#if ENABLE_DEVELOPER_MODE
12867-
@@ -215,7 +282,18 @@ int main(int argc, char *argv[])
12910+
@@ -206,6 +273,14 @@ int main(int argc, char *argv[])
12911+
}
12912+
12913+
auto* loop = g_main_loop_new(nullptr, FALSE);
12914+
+ if (inspectorPipe)
12915+
+ configureBrowserInspector(loop);
12916+
+
12917+
+ if (noStartupWindow) {
12918+
+ g_main_loop_run(loop);
12919+
+ g_main_loop_unref(loop);
12920+
+ return 0;
12921+
+ }
12922+
12923+
auto backend = createViewBackend(1280, 720);
12924+
struct wpe_view_backend* wpeBackend = backend->backend();
12925+
@@ -215,7 +290,19 @@ int main(int argc, char *argv[])
1286812926
return 1;
1286912927
}
1287012928

@@ -12880,21 +12938,12 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
1288012938
+ }
1288112939
+
1288212940
+ WebKitWebContext *webContext = WEBKIT_WEB_CONTEXT(g_object_new(WEBKIT_TYPE_WEB_CONTEXT, "website-data-manager", manager, "process-swap-on-cross-site-navigation-enabled", TRUE, NULL));
12941+
+ persistentWebContext = webContext;
1288312942
+ g_object_unref(manager);
1288412943

1288512944
if (cookiesPolicy) {
1288612945
auto* cookieManager = webkit_web_context_get_cookie_manager(webContext);
12887-
@@ -280,6 +358,9 @@ int main(int argc, char *argv[])
12888-
delete static_cast<WPEToolingBackends::ViewBackend*>(data);
12889-
}, backend.release());
12890-
12891-
+ if (inspectorPipe)
12892-
+ configureBrowserInspector(loop, webContext);
12893-
+
12894-
auto* webView = WEBKIT_WEB_VIEW(g_object_new(WEBKIT_TYPE_WEB_VIEW,
12895-
"backend", viewBackend,
12896-
"web-context", webContext,
12897-
@@ -300,7 +381,9 @@ int main(int argc, char *argv[])
12946+
@@ -300,7 +387,9 @@ int main(int argc, char *argv[])
1289812947
g_signal_connect(webContext, "automation-started", G_CALLBACK(automationStartedCallback), webView);
1289912948
g_signal_connect(webView, "permission-request", G_CALLBACK(decidePermissionRequest), nullptr);
1290012949
g_signal_connect(webView, "create", G_CALLBACK(createWebView), nullptr);
@@ -12905,7 +12954,7 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
1290512954

1290612955
if (ignoreTLSErrors)
1290712956
webkit_web_context_set_tls_errors_policy(webContext, WEBKIT_TLS_ERRORS_POLICY_IGNORE);
12908-
@@ -319,7 +402,7 @@ int main(int argc, char *argv[])
12957+
@@ -319,7 +408,7 @@ int main(int argc, char *argv[])
1290912958
g_object_unref(file);
1291012959
webkit_web_view_load_uri(webView, url);
1291112960
g_free(url);
@@ -12914,7 +12963,7 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
1291412963
webkit_web_view_load_uri(webView, "about:blank");
1291512964
else
1291612965
webkit_web_view_load_uri(webView, "https://wpewebkit.org");
12917-
@@ -327,8 +410,7 @@ int main(int argc, char *argv[])
12966+
@@ -327,8 +416,7 @@ int main(int argc, char *argv[])
1291812967
g_main_loop_run(loop);
1291912968

1292012969
g_object_unref(webView);

0 commit comments

Comments
 (0)