Title: [240840] trunk/Tools
Revision
240840
Author
[email protected]
Date
2019-02-01 02:03:31 -0800 (Fri, 01 Feb 2019)

Log Message

[WPE] MiniBrowser: use g_file_new_for_commandline_arg
https://bugs.webkit.org/show_bug.cgi?id=194146

Reviewed by Xabier Rodriguez-Calvar.

It allows to open relative paths.

* MiniBrowser/wpe/main.cpp:
(main):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (240839 => 240840)


--- trunk/Tools/ChangeLog	2019-02-01 09:48:52 UTC (rev 240839)
+++ trunk/Tools/ChangeLog	2019-02-01 10:03:31 UTC (rev 240840)
@@ -1,3 +1,15 @@
+2019-02-01  Carlos Garcia Campos  <[email protected]>
+
+        [WPE] MiniBrowser: use g_file_new_for_commandline_arg
+        https://bugs.webkit.org/show_bug.cgi?id=194146
+
+        Reviewed by Xabier Rodriguez-Calvar.
+
+        It allows to open relative paths.
+
+        * MiniBrowser/wpe/main.cpp:
+        (main):
+
 2019-01-31  Ryan Haddad  <[email protected]>
 
         Update flakiness dashboard configuration after recent queue changes

Modified: trunk/Tools/MiniBrowser/wpe/main.cpp (240839 => 240840)


--- trunk/Tools/MiniBrowser/wpe/main.cpp	2019-02-01 09:48:52 UTC (rev 240839)
+++ trunk/Tools/MiniBrowser/wpe/main.cpp	2019-02-01 10:03:31 UTC (rev 240840)
@@ -195,9 +195,13 @@
     if (ignoreTLSErrors)
         webkit_web_context_set_tls_errors_policy(webContext, WEBKIT_TLS_ERRORS_POLICY_IGNORE);
 
-    if (uriArguments)
-        webkit_web_view_load_uri(webView, uriArguments[0]);
-    else if (!automationMode)
+    if (uriArguments) {
+        GFile* file = g_file_new_for_commandline_arg(uriArguments[0]);
+        char* url = ""
+        g_object_unref(file);
+        webkit_web_view_load_uri(webView, url);
+        g_free(url);
+    } else if (!automationMode)
         webkit_web_view_load_uri(webView, "https://wpewebkit.org");
 
     g_main_loop_run(loop);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to