Title: [150357] trunk/Tools
Revision
150357
Author
[email protected]
Date
2013-05-19 16:56:04 -0700 (Sun, 19 May 2013)

Log Message

[EFL] Add command line option to MiniBrowser to set user agent
https://bugs.webkit.org/show_bug.cgi?id=116387

Patch by Jinwoo Song <[email protected]> on 2013-05-19
Reviewed by Christophe Dumez.

We need this option to compare the rendering differences according to different user agents.

* MiniBrowser/efl/main.c:
(window_create):
(elm_main):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (150356 => 150357)


--- trunk/Tools/ChangeLog	2013-05-19 22:57:32 UTC (rev 150356)
+++ trunk/Tools/ChangeLog	2013-05-19 23:56:04 UTC (rev 150357)
@@ -1,3 +1,16 @@
+2013-05-19  Jinwoo Song  <[email protected]>
+
+        [EFL] Add command line option to MiniBrowser to set user agent
+        https://bugs.webkit.org/show_bug.cgi?id=116387
+
+        Reviewed by Christophe Dumez.
+
+        We need this option to compare the rendering differences according to different user agents.
+
+        * MiniBrowser/efl/main.c:
+        (window_create):
+        (elm_main):
+
 2013-05-19  Zan Dobersek  <[email protected]>
 
         Unreviewed, addressing test-webkitpy failures after r150317.

Modified: trunk/Tools/MiniBrowser/efl/main.c (150356 => 150357)


--- trunk/Tools/MiniBrowser/efl/main.c	2013-05-19 22:57:32 UTC (rev 150356)
+++ trunk/Tools/MiniBrowser/efl/main.c	2013-05-19 23:56:04 UTC (rev 150357)
@@ -45,6 +45,7 @@
 static int verbose = 1;
 static Eina_List *windows = NULL;
 static char *evas_engine_name = NULL;
+static char *user_agent_string = NULL;
 static Eina_Bool encoding_detector_enabled = EINA_FALSE;
 static Eina_Bool frame_flattening_enabled = EINA_FALSE;
 static Eina_Bool local_storage_enabled = EINA_TRUE;
@@ -136,6 +137,8 @@
             ('e', "engine", "ecore-evas engine to use."),
         ECORE_GETOPT_STORE_STR
             ('s', "window-size", "window size in following format (width)x(height)."),
+        ECORE_GETOPT_STORE_STR
+            ('u', "user-agent", "user agent to set."),
         ECORE_GETOPT_STORE_DEF_BOOL
             ('b', "legacy", "Legacy mode", EINA_FALSE),
         ECORE_GETOPT_STORE_DOUBLE
@@ -1531,6 +1534,7 @@
     if (device_pixel_ratio)
         ewk_view_device_pixel_ratio_set(window->ewk_view, (float)device_pixel_ratio);
     ewk_view_source_mode_set(window->ewk_view, view_mode);
+    ewk_view_user_agent_set(window->ewk_view, user_agent_string);
 
     /* Set the zoom level to default */
     window->current_zoom_level = DEFAULT_ZOOM_LEVEL;
@@ -1620,6 +1624,7 @@
     Ecore_Getopt_Value values[] = {
         ECORE_GETOPT_VALUE_STR(evas_engine_name),
         ECORE_GETOPT_VALUE_STR(window_size_string),
+        ECORE_GETOPT_VALUE_STR(user_agent_string),
         ECORE_GETOPT_VALUE_BOOL(legacy_behavior_enabled),
         ECORE_GETOPT_VALUE_DOUBLE(device_pixel_ratio),
         ECORE_GETOPT_VALUE_BOOL(quitOption),
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to