@@ -8468,10 +8468,10 @@ index 8a871bf2916d5eab86becf5fde0faed79283d88c..a19a429c4d53edf81c3028c7053265e6
8468
8468
8469
8469
diff --git a/Source/WebKit/UIProcess/RemoteInspectorPipe.cpp b/Source/WebKit/UIProcess/RemoteInspectorPipe.cpp
8470
8470
new file mode 100644
8471
- index 0000000000000000000000000000000000000000..0b4ec2de5671723f4045e98b3e398fc11180b3b8
8471
+ index 0000000000000000000000000000000000000000..45d8dc48601548951dc5c5ecd68958dbd47c89db
8472
8472
--- /dev/null
8473
8473
+++ b/Source/WebKit/UIProcess/RemoteInspectorPipe.cpp
8474
- @@ -0,0 +1,219 @@
8474
+ @@ -0,0 +1,220 @@
8475
8475
+/*
8476
8476
+ * Copyright (C) 2019 Microsoft Corporation.
8477
8477
+ *
@@ -8624,6 +8624,7 @@ index 0000000000000000000000000000000000000000..0b4ec2de5671723f4045e98b3e398fc1
8624
8624
+
8625
8625
+bool RemoteInspectorPipe::start()
8626
8626
+{
8627
+ + WTF::RunLoop::initializeMainRunLoop();
8627
8628
+ if (m_receiverThread)
8628
8629
+ return true;
8629
8630
+
@@ -11921,8 +11922,42 @@ index 9e9978efd3d821c7afcd7b65e14c64e36b355802..a5eef119bddd011470319ac80a0ac443
11921
11922
g_signal_connect(tab->webView, "load-failed-with-tls-errors", G_CALLBACK(loadFailedWithTLSerrors), tab);
11922
11923
g_signal_connect(tab->webView, "permission-request", G_CALLBACK(decidePermissionRequest), tab);
11923
11924
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;
11924
11959
diff --git a/Tools/MiniBrowser/gtk/BrowserWindow.h b/Tools/MiniBrowser/gtk/BrowserWindow.h
11925
- index 1570d65effb5d601ee3c44a2a7461436f4691c2c..456f96cf589320efa70a76f76e230b6795886b5a 100644
11960
+ index 1570d65effb5d601ee3c44a2a7461436f4691c2c..65e62adad0c3684e5cec2f6bc8e7f5281e1f77eb 100644
11926
11961
--- a/Tools/MiniBrowser/gtk/BrowserWindow.h
11927
11962
+++ b/Tools/MiniBrowser/gtk/BrowserWindow.h
11928
11963
@@ -37,7 +37,7 @@ G_BEGIN_DECLS
@@ -11934,31 +11969,42 @@ index 1570d65effb5d601ee3c44a2a7461436f4691c2c..456f96cf589320efa70a76f76e230b67
11934
11969
#define BROWSER_ABOUT_SCHEME "minibrowser-about"
11935
11970
11936
11971
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
11937
11981
diff --git a/Tools/MiniBrowser/gtk/main.c b/Tools/MiniBrowser/gtk/main.c
11938
- index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..4b1cab0c187352688740c7cca79483fa256aa7fe 100644
11982
+ index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..77d031add801b2f45c9d90e74afab8802aa08e20 100644
11939
11983
--- a/Tools/MiniBrowser/gtk/main.c
11940
11984
+++ b/Tools/MiniBrowser/gtk/main.c
11941
- @@ -53,6 +53,9 @@ static const char *cookiesFile;
11985
+ @@ -53,6 +53,10 @@ static const char *cookiesFile;
11942
11986
static const char *cookiesPolicy;
11943
11987
static const char *proxy;
11944
11988
static gboolean darkMode;
11945
11989
+static gboolean inspectorPipe;
11946
11990
+static gboolean headless;
11991
+ +static gboolean noStartupWindow;
11947
11992
+static const char *userDataDir;
11948
11993
static gboolean printVersion;
11949
11994
11950
11995
typedef enum {
11951
- @@ -121,6 +124,9 @@ static const GOptionEntry commandLineOptions[] =
11996
+ @@ -121,6 +125,10 @@ static const GOptionEntry commandLineOptions[] =
11952
11997
{ "ignore-tls-errors", 0, 0, G_OPTION_ARG_NONE, &ignoreTLSErrors, "Ignore TLS errors", NULL },
11953
11998
{ "content-filter", 0, 0, G_OPTION_ARG_FILENAME, &contentFilter, "JSON with content filtering rules", "FILE" },
11954
11999
{ "version", 'v', 0, G_OPTION_ARG_NONE, &printVersion, "Print the WebKitGTK version", NULL },
11955
12000
+ { "inspector-pipe", 0, 0, G_OPTION_ARG_NONE, &inspectorPipe, "Open pipe connection to the remote inspector", NULL },
11956
12001
+ { "user-data-dir", 0, 0, G_OPTION_ARG_STRING, &userDataDir, "Default profile persistence folder location", NULL },
11957
12002
+ { "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 },
11958
12004
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &uriArguments, 0, "[URL…]" },
11959
12005
{ 0, 0, 0, 0, 0, 0, 0 }
11960
12006
};
11961
- @@ -498,6 +504,36 @@ static void filterSavedCallback(WebKitUserContentFilterStore *store, GAsyncResul
12007
+ @@ -498,6 +506,34 @@ static void filterSavedCallback(WebKitUserContentFilterStore *store, GAsyncResul
11962
12008
g_main_loop_quit(data->mainLoop);
11963
12009
}
11964
12010
@@ -11982,10 +12028,8 @@ index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..4b1cab0c187352688740c7cca79483fa
11982
12028
+ return newWebView;
11983
12029
+}
11984
12030
+
11985
- +static void configureBrowserInspectorPipe(WebKitWebContext *webContext )
12031
+ +static void configureBrowserInspectorPipe()
11986
12032
+{
11987
- + persistentWebContext = webContext;
11988
- +
11989
12033
+ WebKitBrowserInspector* browserInspector = webkit_browser_inspector_get_default();
11990
12034
+ g_signal_connect(browserInspector, "create-new-page", G_CALLBACK(createNewPage), NULL);
11991
12035
+
@@ -11995,11 +12039,21 @@ index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..4b1cab0c187352688740c7cca79483fa
11995
12039
int main(int argc, char *argv[])
11996
12040
{
11997
12041
#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[])
11999
12043
return 0;
12000
12044
}
12001
12045
12002
12046
- 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
+ +
12003
12057
+ WebKitWebsiteDataManager *manager;
12004
12058
+ if (userDataDir) {
12005
12059
+ manager = webkit_website_data_manager_new("base-data-directory", userDataDir, "base-cache-directory", userDataDir, NULL);
@@ -12011,15 +12065,11 @@ index 4c5147dcd38a53e2feaeaae0fce38f92dc60eba6..4b1cab0c187352688740c7cca79483fa
12011
12065
+ }
12012
12066
+
12013
12067
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;
12014
12069
g_object_unref(manager);
12015
12070
12016
- + if (inspectorPipe)
12017
- + configureBrowserInspectorPipe(webContext);
12018
- +
12019
12071
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[])
12023
12073
12024
12074
gtk_main();
12025
12075
@@ -12591,10 +12641,10 @@ index 373d0de77e852c673a6615e0acedd5195e3c021b..cfeb4f806f79d1a213fdb13346e2b383
12591
12641
+ WKPageRunBeforeUnloadConfirmPanelResultListenerRef m_beforeUnloadDialog = { };
12592
12642
};
12593
12643
diff --git a/Tools/MiniBrowser/win/WinMain.cpp b/Tools/MiniBrowser/win/WinMain.cpp
12594
- index 6008ca19e26a938cf962c0c336299fff7d13f9a3..a5f7daaf5c2dc860296b5d9379d5637d611ca707 100644
12644
+ index 6008ca19e26a938cf962c0c336299fff7d13f9a3..8005d72f8c0d9ef82efda8aec1ff0e7d96501ae8 100644
12595
12645
--- a/Tools/MiniBrowser/win/WinMain.cpp
12596
12646
+++ b/Tools/MiniBrowser/win/WinMain.cpp
12597
- @@ -31,7 +31,12 @@
12647
+ @@ -31,6 +31,10 @@
12598
12648
#include "stdafx.h"
12599
12649
#include "Common.h"
12600
12650
#include "MiniBrowserLibResource.h"
@@ -12603,11 +12653,9 @@ index 6008ca19e26a938cf962c0c336299fff7d13f9a3..a5f7daaf5c2dc860296b5d9379d5637d
12603
12653
+#include <WebKit/WKWebsiteDataStoreConfigurationRef.h>
12604
12654
+#include <WebKit/WKWebsiteDataStoreRef.h>
12605
12655
#include <wtf/win/SoftLinking.h>
12606
- +#include <wtf/RunLoop.h>
12607
12656
12608
12657
#if USE(CF)
12609
- #include <CoreFoundation/CoreFoundation.h>
12610
- @@ -46,11 +51,30 @@
12658
+ @@ -46,9 +50,25 @@
12611
12659
#include <WebKitLegacy/WebKitCOMAPI.h>
12612
12660
#endif
12613
12661
@@ -12632,13 +12680,8 @@ index 6008ca19e26a938cf962c0c336299fff7d13f9a3..a5f7daaf5c2dc860296b5d9379d5637d
12632
12680
+
12633
12681
int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpstrCmdLine, _In_ int nCmdShow)
12634
12682
{
12635
- +#if ENABLE(WEBKIT)
12636
- + WTF::RunLoop::initializeMainRunLoop();
12637
- +#endif
12638
12683
#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,
12642
12685
InitCommonControlsEx(&InitCtrlEx);
12643
12686
12644
12687
auto options = parseCommandLine();
@@ -12650,17 +12693,17 @@ index 6008ca19e26a938cf962c0c336299fff7d13f9a3..a5f7daaf5c2dc860296b5d9379d5637d
12650
12693
12651
12694
if (options.useFullDesktop)
12652
12695
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,
12654
12697
OleInitialize(nullptr);
12655
12698
12656
12699
if (SetProcessDpiAwarenessContextPtr())
12657
12700
- SetProcessDpiAwarenessContextPtr()(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
12658
12701
- else
12659
12702
- ::SetProcessDPIAware();
12660
12703
+ SetProcessDpiAwarenessContextPtr()(DPI_AWARENESS_CONTEXT_UNAWARE);
12661
-
12662
- + MainWindow::configure(options.headless, options.noStartupWindow);
12663
12704
+
12705
+ + MainWindow::configure(options.headless, options.noStartupWindow);
12706
+
12664
12707
+ if (!options.noStartupWindow) {
12665
12708
#if !ENABLE(WEBKIT_LEGACY)
12666
12709
- auto factory = WebKitBrowserWindow::create;
@@ -12730,7 +12773,7 @@ index 04d3630dc2b0f5e937af173046268001da003753..ba0a60b832cd353776bb50b8198df2d8
12730
12773
)
12731
12774
12732
12775
diff --git a/Tools/MiniBrowser/wpe/main.cpp b/Tools/MiniBrowser/wpe/main.cpp
12733
- index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5af33bab8 100644
12776
+ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..a10ce93a58f138eb475273444bba33f9a6b69081 100644
12734
12777
--- a/Tools/MiniBrowser/wpe/main.cpp
12735
12778
+++ b/Tools/MiniBrowser/wpe/main.cpp
12736
12779
@@ -25,7 +25,7 @@
@@ -12742,25 +12785,27 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
12742
12785
#include "WindowViewBackend.h"
12743
12786
#if ENABLE_WEB_AUDIO || ENABLE_VIDEO
12744
12787
#include <gst/gst.h>
12745
- @@ -43,6 +43,8 @@ static gboolean headlessMode;
12788
+ @@ -43,6 +43,9 @@ static gboolean headlessMode;
12746
12789
static gboolean privateMode;
12747
12790
static gboolean automationMode;
12748
12791
static gboolean ignoreTLSErrors;
12749
12792
+static gboolean inspectorPipe;
12793
+ +static gboolean noStartupWindow;
12750
12794
+static const char* userDataDir;
12751
12795
static const char* contentFilter;
12752
12796
static const char* cookiesFile;
12753
12797
static const char* cookiesPolicy;
12754
- @@ -63,6 +65,8 @@ static const GOptionEntry commandLineOptions[] =
12798
+ @@ -63,6 +66,9 @@ static const GOptionEntry commandLineOptions[] =
12755
12799
{ "content-filter", 0, 0, G_OPTION_ARG_FILENAME, &contentFilter, "JSON with content filtering rules", "FILE" },
12756
12800
{ "bg-color", 0, 0, G_OPTION_ARG_STRING, &bgColor, "Window background color. Default: white", "COLOR" },
12757
12801
{ "version", 'v', 0, G_OPTION_ARG_NONE, &printVersion, "Print the WPE version", nullptr },
12758
12802
+ { "inspector-pipe", 'v', 0, G_OPTION_ARG_NONE, &inspectorPipe, "Expose remote debugging protocol over pipe", nullptr },
12759
12803
+ { "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 },
12760
12805
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &uriArguments, nullptr, "[URL]" },
12761
12806
{ nullptr, 0, 0, G_OPTION_ARG_NONE, nullptr, nullptr, nullptr }
12762
12807
};
12763
- @@ -131,7 +135 ,7 @@ static gboolean decidePermissionRequest(WebKitWebView *, WebKitPermissionRequest
12808
+ @@ -131,7 +137 ,7 @@ static gboolean decidePermissionRequest(WebKitWebView *, WebKitPermissionRequest
12764
12809
static std::unique_ptr<WPEToolingBackends::ViewBackend> createViewBackend(uint32_t width, uint32_t height)
12765
12810
{
12766
12811
if (headlessMode)
@@ -12769,7 +12814,7 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
12769
12814
return std::make_unique<WPEToolingBackends::WindowViewBackend>(width, height);
12770
12815
}
12771
12816
12772
- @@ -147,12 +151 ,33 @@ static void filterSavedCallback(WebKitUserContentFilterStore *store, GAsyncResul
12817
+ @@ -147,12 +153 ,33 @@ static void filterSavedCallback(WebKitUserContentFilterStore *store, GAsyncResul
12773
12818
g_main_loop_quit(data->mainLoop);
12774
12819
}
12775
12820
@@ -12804,7 +12849,7 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
12804
12849
{
12805
12850
auto backend = createViewBackend(1280, 720);
12806
12851
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
12808
12853
delete static_cast<WPEToolingBackends::ViewBackend*>(data);
12809
12854
}, backend.release());
12810
12855
@@ -12852,10 +12897,8 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
12852
12897
+ return webView;
12853
12898
+}
12854
12899
+
12855
- +static void configureBrowserInspector(GMainLoop* mainLoop, WebKitWebContext *webContext )
12900
+ +static void configureBrowserInspector(GMainLoop* mainLoop)
12856
12901
+{
12857
- + persistentWebContext = webContext;
12858
- +
12859
12902
+ WebKitBrowserInspector* browserInspector = webkit_browser_inspector_get_default();
12860
12903
+ g_signal_connect(browserInspector, "create-new-page", G_CALLBACK(createNewPage), NULL);
12861
12904
+ webkit_browser_inspector_initialize_pipe(mainLoop);
@@ -12864,7 +12907,22 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
12864
12907
int main(int argc, char *argv[])
12865
12908
{
12866
12909
#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[])
12868
12926
return 1;
12869
12927
}
12870
12928
@@ -12880,21 +12938,12 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
12880
12938
+ }
12881
12939
+
12882
12940
+ 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;
12883
12942
+ g_object_unref(manager);
12884
12943
12885
12944
if (cookiesPolicy) {
12886
12945
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[])
12898
12947
g_signal_connect(webContext, "automation-started", G_CALLBACK(automationStartedCallback), webView);
12899
12948
g_signal_connect(webView, "permission-request", G_CALLBACK(decidePermissionRequest), nullptr);
12900
12949
g_signal_connect(webView, "create", G_CALLBACK(createWebView), nullptr);
@@ -12905,7 +12954,7 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
12905
12954
12906
12955
if (ignoreTLSErrors)
12907
12956
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[])
12909
12958
g_object_unref(file);
12910
12959
webkit_web_view_load_uri(webView, url);
12911
12960
g_free(url);
@@ -12914,7 +12963,7 @@ index a0ca94ac2dcc005b403180aa11407ff7b33dcbc6..ad155edd606477ecfc4a72c524df1fa5
12914
12963
webkit_web_view_load_uri(webView, "about:blank");
12915
12964
else
12916
12965
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[])
12918
12967
g_main_loop_run(loop);
12919
12968
12920
12969
g_object_unref(webView);
0 commit comments