@@ -12243,7 +12243,7 @@ index 245f319abf2595e154d03e1ee8b3250d7f46aafd..9cae87b23deade7c163f34aade2b2aed
12243
12243
${WPEBACKEND_FDO_INCLUDE_DIRS}
12244
12244
)
12245
12245
diff --git a/Tools/MiniBrowser/wpe/main.cpp b/Tools/MiniBrowser/wpe/main.cpp
12246
- index 2d183d394123bd84545dc51f53eb9be796fb8873..355c94aff2b99de7e9ab29d2d39986df3ab700cc 100644
12246
+ index 2d183d394123bd84545dc51f53eb9be796fb8873..07f31f2442bc957378dc6da026fa3c4802e1e2f9 100644
12247
12247
--- a/Tools/MiniBrowser/wpe/main.cpp
12248
12248
+++ b/Tools/MiniBrowser/wpe/main.cpp
12249
12249
@@ -25,7 +25,7 @@
@@ -12317,7 +12317,7 @@ index 2d183d394123bd84545dc51f53eb9be796fb8873..355c94aff2b99de7e9ab29d2d39986df
12317
12317
{
12318
12318
auto backend = createViewBackend(1280, 720);
12319
12319
struct wpe_view_backend* wpeBackend = backend->backend();
12320
- @@ -164,14 +189,55 @@ static WebKitWebView* createWebView(WebKitWebView* webView, WebKitNavigationActi
12320
+ @@ -164,14 +189,56 @@ static WebKitWebView* createWebView(WebKitWebView* webView, WebKitNavigationActi
12321
12321
delete static_cast<WPEToolingBackends::ViewBackend*>(data);
12322
12322
}, backend.release());
12323
12323
@@ -12346,7 +12346,6 @@ index 2d183d394123bd84545dc51f53eb9be796fb8873..355c94aff2b99de7e9ab29d2d39986df
12346
12346
+ g_signal_connect(newWebView, "script-dialog", G_CALLBACK(scriptDialog), nullptr);
12347
12347
+ g_signal_connect(newWebView, "script-dialog-handled", G_CALLBACK(scriptDialogHandled), nullptr);
12348
12348
+ g_signal_connect(newWebView, "create", G_CALLBACK(createWebView), nullptr);
12349
- + webkit_web_view_load_uri(newWebView, "about:blank");
12350
12349
return newWebView;
12351
12350
}
12352
12351
@@ -12361,7 +12360,9 @@ index 2d183d394123bd84545dc51f53eb9be796fb8873..355c94aff2b99de7e9ab29d2d39986df
12361
12360
+{
12362
12361
+ if (!webContext)
12363
12362
+ webContext = persistentWebContext;
12364
- + return createWebViewImpl(nullptr, webContext);
12363
+ + WebKitWebView* webView = createWebViewImpl(nullptr, webContext);
12364
+ + webkit_web_view_load_uri(webView, "about:blank");
12365
+ + return webView;
12365
12366
+}
12366
12367
+
12367
12368
+static void configureBrowserInspector(GMainLoop* mainLoop, WebKitWebContext *webContext)
@@ -12376,7 +12377,7 @@ index 2d183d394123bd84545dc51f53eb9be796fb8873..355c94aff2b99de7e9ab29d2d39986df
12376
12377
int main(int argc, char *argv[])
12377
12378
{
12378
12379
#if ENABLE_DEVELOPER_MODE
12379
- @@ -215,7 +281 ,18 @@ int main(int argc, char *argv[])
12380
+ @@ -215,7 +282 ,18 @@ int main(int argc, char *argv[])
12380
12381
return 1;
12381
12382
}
12382
12383
@@ -12396,7 +12397,7 @@ index 2d183d394123bd84545dc51f53eb9be796fb8873..355c94aff2b99de7e9ab29d2d39986df
12396
12397
12397
12398
if (cookiesPolicy) {
12398
12399
auto* cookieManager = webkit_web_context_get_cookie_manager(webContext);
12399
- @@ -280,6 +357 ,9 @@ int main(int argc, char *argv[])
12400
+ @@ -280,6 +358 ,9 @@ int main(int argc, char *argv[])
12400
12401
delete static_cast<WPEToolingBackends::ViewBackend*>(data);
12401
12402
}, backend.release());
12402
12403
@@ -12406,7 +12407,7 @@ index 2d183d394123bd84545dc51f53eb9be796fb8873..355c94aff2b99de7e9ab29d2d39986df
12406
12407
auto* webView = WEBKIT_WEB_VIEW(g_object_new(WEBKIT_TYPE_WEB_VIEW,
12407
12408
"backend", viewBackend,
12408
12409
"web-context", webContext,
12409
- @@ -318,7 +398 ,7 @@ int main(int argc, char *argv[])
12410
+ @@ -318,7 +399 ,7 @@ int main(int argc, char *argv[])
12410
12411
g_object_unref(file);
12411
12412
webkit_web_view_load_uri(webView, url);
12412
12413
g_free(url);
@@ -12415,7 +12416,7 @@ index 2d183d394123bd84545dc51f53eb9be796fb8873..355c94aff2b99de7e9ab29d2d39986df
12415
12416
webkit_web_view_load_uri(webView, "about:blank");
12416
12417
else
12417
12418
webkit_web_view_load_uri(webView, "https://wpewebkit.org");
12418
- @@ -326,8 +406 ,7 @@ int main(int argc, char *argv[])
12419
+ @@ -326,8 +407 ,7 @@ int main(int argc, char *argv[])
12419
12420
g_main_loop_run(loop);
12420
12421
12421
12422
g_object_unref(webView);
0 commit comments