<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19778</bug_id>
          
          <creation_ts>2008-06-26 06:15:16 -0700</creation_ts>
          <short_desc>[Gtk] Initialize webview settings before running DRT tests</short_desc>
          <delta_ts>2008-06-27 15:27:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Alonzo">jmalonzo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84470</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2008-06-26 06:15:16 -0700</bug_when>
    <thetext>We need to initialize WebView settings before running the tests as some tests depend on font family, sizes, etc...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84471</commentid>
    <comment_count>1</comment_count>
      <attachid>21946</attachid>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2008-06-26 06:17:29 -0700</bug_when>
    <thetext>Created attachment 21946
Initialize webView settings before running test

This matches some of Mac&apos;s font settings. Is there anything else I&apos;m missing? (apart from the ones that are not yet implemented)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84592</commentid>
    <comment_count>2</comment_count>
      <attachid>21946</attachid>
    <who name="Christian Dywan">christian</who>
    <bug_when>2008-06-27 10:52:03 -0700</bug_when>
    <thetext>Comment on attachment 21946
Initialize webView settings before running test

&gt;+    g_object_set(G_OBJECT(settings),
&gt;+                 &quot;default-font-family&quot;, &quot;Times&quot;,
&gt;+                 &quot;monospace-font-family&quot;, &quot;Courier&quot;,
&gt;+                 &quot;serif-font-family&quot;, &quot;Times&quot;,
&gt;+                 &quot;sans-serif-font-family&quot;, &quot;Helvetica&quot;,
&gt;+                 &quot;default-font-size&quot;, 16,
&gt;+                 &quot;default-monospace-font-size&quot;, 13,
&gt;+                 &quot;minimum-font-size&quot;, 1,
&gt;+                 NULL);

This looks fine to me.

&gt; This matches some of Mac&apos;s font settings. Is there anything else I&apos;m missing?

You might also disable the back forward list via webkit_web_view_set_maintains_back_forward_list. According to a comment in the mac port leaving it enabled, which is the case by default, can cause layout bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84608</commentid>
    <comment_count>3</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2008-06-27 15:27:57 -0700</bug_when>
    <thetext>Thanks. Landed in r34837. The backforward patch will be a different patch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>21946</attachid>
            <date>2008-06-26 06:17:29 -0700</date>
            <delta_ts>2008-06-27 10:52:03 -0700</delta_ts>
            <desc>Initialize webView settings before running test</desc>
            <filename>webkitgtk-drt-initwebviewstate.patch</filename>
            <type>text/plain</type>
            <size>1393</size>
            <attacher name="Jan Alonzo">jmalonzo</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0R1bXBSZW5kZXJUcmVlL2d0ay9EdW1wUmVuZGVyVHJl
ZS5jcHAgYi9XZWJLaXRUb29scy9EdW1wUmVuZGVyVHJlZS9ndGsvRHVtcFJlbmRlclR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hdXRvY29ycmVjdFVSTChwYXRoT3JVUkwpOwpAQCAtMzUzLDYg
KzM2OCw4IEBAIGludCBtYWluKGludCBhcmdjLCBjaGFyKiBhcmd2W10pCiAgICAgZ19zaWduYWxf
Y29ubmVjdChHX09CSkVDVCh3ZWJWaWV3KSwgInNjcmlwdC1wcm9tcHQiLCBHX0NBTExCQUNLKHdl
YlZpZXdTY3JpcHRQcm9tcHQpLCAwKTsKICAgICBnX3NpZ25hbF9jb25uZWN0KEdfT0JKRUNUKHdl
YlZpZXcpLCAic2NyaXB0LWNvbmZpcm0iLCBHX0NBTExCQUNLKHdlYlZpZXdTY3JpcHRDb25maXJt
KSwgMCk7CiAKKyAgICBzZXREZWZhdWx0c1RvQ29uc2lzdGVudFN0YXRlVmFsdWVzRm9yVGVzdGlu
ZygpOworCiAgICAgaWYgKGFyZ2MgPT0gb3B0aW5kKzEgJiYgc3RyY21wKGFyZ3Zbb3B0aW5kXSwg
Ii0iKSA9PSAwKSB7CiAgICAgICAgIGNoYXIgZmlsZW5hbWVCdWZmZXJbMjA0OF07CiAgICAgICAg
IHByaW50U2VwYXJhdG9ycyA9IHRydWU7Cg==
</data>
<flag name="review"
          id="9644"
          type_id="1"
          status="+"
          setter="christian"
    />
          </attachment>
      

    </bug>

</bugzilla>