@@ -14228,7 +14228,7 @@ index 1570d65effb5d601ee3c44a2a7461436f4691c2c..65e62adad0c3684e5cec2f6bc8e7f528
14228
14228
14229
14229
#endif
14230
14230
diff --git a/Tools/MiniBrowser/gtk/main.c b/Tools/MiniBrowser/gtk/main.c
14231
- index 2ff45b938cffabe95fe17137393b8b6c506d4993..42676b3466da8db3ccafe9f8c1049b908b349c21 100644
14231
+ index 2ff45b938cffabe95fe17137393b8b6c506d4993..bd28310341f4f47612dbbea350e83a6d182953c3 100644
14232
14232
--- a/Tools/MiniBrowser/gtk/main.c
14233
14233
+++ b/Tools/MiniBrowser/gtk/main.c
14234
14234
@@ -54,6 +54,10 @@ static const char *cookiesFile;
@@ -14322,7 +14322,18 @@ index 2ff45b938cffabe95fe17137393b8b6c506d4993..42676b3466da8db3ccafe9f8c1049b90
14322
14322
g_object_unref(manager);
14323
14323
14324
14324
if (cookiesPolicy) {
14325
- @@ -657,8 +713,7 @@ int main(int argc, char *argv[])
14325
+ @@ -633,9 +689,7 @@ int main(int argc, char *argv[])
14326
+ WebKitWebView *webView = createBrowserTab(mainWindow, webkitSettings, userContentManager);
14327
+ if (!i)
14328
+ firstTab = GTK_WIDGET(webView);
14329
+ - gchar *url = argumentToURL(uriArguments[i]);
14330
+ - webkit_web_view_load_uri(webView, url);
14331
+ - g_free(url);
14332
+ + webkit_web_view_load_uri(webView, uriArguments[i]);
14333
+ }
14334
+ } else {
14335
+ WebKitWebView *webView = createBrowserTab(mainWindow, webkitSettings, userContentManager);
14336
+ @@ -657,8 +711,7 @@ int main(int argc, char *argv[])
14326
14337
14327
14338
browser_main();
14328
14339
@@ -14333,7 +14344,7 @@ index 2ff45b938cffabe95fe17137393b8b6c506d4993..42676b3466da8db3ccafe9f8c1049b90
14333
14344
return 0;
14334
14345
}
14335
14346
diff --git a/Tools/MiniBrowser/wpe/main.cpp b/Tools/MiniBrowser/wpe/main.cpp
14336
- index a8cccb6c1d567823fe8e6503f1a137856b0a9975..00b39f96b6b48dc0bd3df54659850dfc233ea0be 100644
14347
+ index a8cccb6c1d567823fe8e6503f1a137856b0a9975..afded3b4c108dbc48397bcb7653795c432877057 100644
14337
14348
--- a/Tools/MiniBrowser/wpe/main.cpp
14338
14349
+++ b/Tools/MiniBrowser/wpe/main.cpp
14339
14350
@@ -25,7 +25,7 @@
@@ -14510,16 +14521,27 @@ index a8cccb6c1d567823fe8e6503f1a137856b0a9975..00b39f96b6b48dc0bd3df54659850dfc
14510
14521
webkit_web_context_set_automation_allowed(webContext, automationMode);
14511
14522
g_signal_connect(webContext, "automation-started", G_CALLBACK(automationStartedCallback), webView);
14512
14523
g_signal_connect(webView, "permission-request", G_CALLBACK(decidePermissionRequest), nullptr);
14513
- @@ -326,7 +407,7 @@ int main(int argc, char *argv[])
14514
- g_object_unref(file);
14515
- webkit_web_view_load_uri(webView, url);
14516
- g_free(url);
14524
+ @@ -317,16 +398,9 @@ int main(int argc, char *argv[])
14525
+ webkit_web_view_set_background_color(webView, &color);
14526
+
14527
+ if (uriArguments) {
14528
+ - const char* uri = uriArguments[0];
14529
+ - if (g_str_equal(uri, "about:gpu"))
14530
+ - uri = "webkit://gpu";
14531
+ -
14532
+ - GFile* file = g_file_new_for_commandline_arg(uri);
14533
+ - char* url = g_file_get_uri(file);
14534
+ - g_object_unref(file);
14535
+ - webkit_web_view_load_uri(webView, url);
14536
+ - g_free(url);
14517
14537
- } else if (automationMode)
14538
+ + // Playwright: avoid weird url transformation like http://trac.webkit.org/r240840
14539
+ + webkit_web_view_load_uri(webView, uriArguments[0]);
14518
14540
+ } else if (automationMode || inspectorPipe)
14519
14541
webkit_web_view_load_uri(webView, "about:blank");
14520
14542
else
14521
14543
webkit_web_view_load_uri(webView, "https://wpewebkit.org");
14522
- @@ -336,8 +417 ,7 @@ int main(int argc, char *argv[])
14544
+ @@ -336,8 +410 ,7 @@ int main(int argc, char *argv[])
14523
14545
g_hash_table_destroy(openViews);
14524
14546
14525
14547
0 commit comments