<?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>71156</bug_id>
          
          <creation_ts>2011-10-28 16:04:14 -0700</creation_ts>
          <short_desc>More work on WebKit2 should respect WebKitOmitPDFSupport preference on the Mac</short_desc>
          <delta_ts>2011-10-28 16:35:19 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff Miller">jeffm</reporter>
          <assigned_to name="Jeff Miller">jeffm</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>492752</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-10-28 16:04:14 -0700</bug_when>
    <thetext>More work on WebKit2 should respect WebKitOmitPDFSupport preference on the Mac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>492755</commentid>
    <comment_count>1</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-10-28 16:05:28 -0700</bug_when>
    <thetext>Follow up to bug 70943, where Alexey commented:


&gt; There is also PDF code in WebContext::platformInitializeWebProcess. Should that be conditional, too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>492757</commentid>
    <comment_count>2</comment_count>
      <attachid>112936</attachid>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-10-28 16:08:28 -0700</bug_when>
    <thetext>Created attachment 112936
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>492770</commentid>
    <comment_count>3</comment_count>
      <attachid>112936</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-10-28 16:18:54 -0700</bug_when>
    <thetext>Comment on attachment 112936
Patch

What was the manifestation of this problem, and are we sure that omitPDFSupport() will return the correct result so early in context lifetime?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>492779</commentid>
    <comment_count>4</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-10-28 16:31:29 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 112936 [details])
&gt; What was the manifestation of this problem, and are we sure that omitPDFSupport() will return the correct result so early in context lifetime?

There was no end-user symptom, PDF support was disabled correctly when this pref was set with the previous patch in r98513. This is just being complete by not including these MIME types in the initialization message.

omitPDFSupport() just reads a preference from the standard user defaults, which should definitely be OK when this is called (note that this code is in the UI process, not the web process which is being created).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>492784</commentid>
    <comment_count>5</comment_count>
    <who name="Jeff Miller">jeffm</who>
    <bug_when>2011-10-28 16:35:19 -0700</bug_when>
    <thetext>Committed r98781: &lt;http://trac.webkit.org/changeset/98781&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>112936</attachid>
            <date>2011-10-28 16:08:28 -0700</date>
            <delta_ts>2011-10-28 16:18:54 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-71156-20111028160825.patch</filename>
            <type>text/plain</type>
            <size>1861</size>
            <attacher name="Jeff Miller">jeffm</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09P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V2l0aEN1c3RvbVJlcHJlc2VudGF0aW9uLmFwcGVuZFJh
bmdlKG1pbWVUeXBlLmJlZ2luKCksIG1pbWVUeXBlLmVuZCgpKTsKKyAgICB9CiAKICAgICBSZXRh
aW5QdHI8Q0ZTdHJpbmdSZWY+IGNhY2hlUGF0aChBZG9wdENGLCBXS0NvcHlGb3VuZGF0aW9uQ2Fj
aGVEaXJlY3RvcnkoKSk7CiAgICAgaWYgKCFjYWNoZVBhdGgpCg==
</data>
<flag name="review"
          id="111147"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>