<?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>113372</bug_id>
          
          <creation_ts>2013-03-27 01:34:20 -0700</creation_ts>
          <short_desc>PDFPlugin: Enable PDFPlugin only if its dependencies exist on the system</short_desc>
          <delta_ts>2013-03-27 23:23:29 -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>PDF</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Horton">thorton</reporter>
          <assigned_to name="Tim Horton">thorton</assigned_to>
          <cc>ap</cc>
    
    <cc>webkit-ews</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>864294</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-03-27 01:34:20 -0700</bug_when>
    <thetext>Otherwise, fall back to PDFViewController/etc.

&lt;rdar://problem/12685301&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864297</commentid>
    <comment_count>1</comment_count>
      <attachid>195243</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-03-27 01:37:06 -0700</bug_when>
    <thetext>Created attachment 195243
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864299</commentid>
    <comment_count>2</comment_count>
      <attachid>195243</attachid>
    <who name="EFL EWS Bot">eflews.bot</who>
    <bug_when>2013-03-27 01:44:08 -0700</bug_when>
    <thetext>Comment on attachment 195243
patch

Attachment 195243 did not pass efl-ews (efl):
Output: http://webkit-commit-queue.appspot.com/results/17311441</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864301</commentid>
    <comment_count>3</comment_count>
      <attachid>195243</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-03-27 01:44:52 -0700</bug_when>
    <thetext>Comment on attachment 195243
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=195243&amp;action=review

&gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:42
&gt; +#include &quot;PDFKitImports.h&quot;

This needs #if PLATFORM(MAC) too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864303</commentid>
    <comment_count>4</comment_count>
      <attachid>195243</attachid>
    <who name="Early Warning System Bot">webkit-ews</who>
    <bug_when>2013-03-27 01:46:45 -0700</bug_when>
    <thetext>Comment on attachment 195243
patch

Attachment 195243 did not pass qt-wk2-ews (qt):
Output: http://webkit-commit-queue.appspot.com/results/17339071</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864583</commentid>
    <comment_count>5</comment_count>
      <attachid>195243</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-03-27 08:48:40 -0700</bug_when>
    <thetext>Comment on attachment 195243
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=195243&amp;action=review

&gt;&gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:42
&gt;&gt; +#include &quot;PDFKitImports.h&quot;
&gt; 
&gt; This needs #if PLATFORM(MAC) too.

(probably in the file itself, not around the include)

&gt; Source/WebKit2/WebProcess/WebPage/WebPage.h:616
&gt; +    bool pdfPluginEnabled() const;

It&apos;s not great that this function named as a simple accessor is no longer an accessor. Can we instead perform the check on setting m_pdfPluginEnabled?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864696</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-03-27 10:58:22 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 195243 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=195243&amp;action=review
&gt; 
&gt; &gt;&gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:42
&gt; &gt;&gt; +#include &quot;PDFKitImports.h&quot;
&gt; &gt; 
&gt; &gt; This needs #if PLATFORM(MAC) too.
&gt; 
&gt; (probably in the file itself, not around the include)
&gt; 
&gt; &gt; Source/WebKit2/WebProcess/WebPage/WebPage.h:616
&gt; &gt; +    bool pdfPluginEnabled() const;
&gt; 
&gt; It&apos;s not great that this function named as a simple accessor is no longer an accessor. Can we instead perform the check on setting m_pdfPluginEnabled?

Since checking for PDFLayerController existence requires soft-linking in PDFKit, which we previously only did when it was needed, it seems best to only link it in when we absolutely need the answer (about whether or not we have it), instead of when setting up preferences, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864733</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-03-27 11:34:11 -0700</bug_when>
    <thetext>Good point. I&apos;m not sure what a better name would be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864737</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-03-27 11:36:28 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Good point. I&apos;m not sure what a better name would be.

Maybe I should have both pdfPluginEnabled and shouldUsePDFPlugin or something? Only the latter of which does the class check?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>865191</commentid>
    <comment_count>9</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-03-27 23:23:29 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/147067</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>195243</attachid>
            <date>2013-03-27 01:37:06 -0700</date>
            <delta_ts>2013-03-27 08:48:40 -0700</delta_ts>
            <desc>patch</desc>
            <filename>pdfplugin-on.diff</filename>
            <type>text/plain</type>
            <size>2254</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA1ZmEyYzUyLi5mODQ5MTJjIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYg
QEAKKzIwMTMtMDMtMjcgIFRpbSBIb3J0b24gIDx0aW1vdGh5X2hvcnRvbkBhcHBsZS5jb20+CisK
KyAgICAgICAgUERGUGx1Z2luOiBFbmFibGUgUERGUGx1Z2luIG9ubHkgaWYgaXRzIGRlcGVuZGVu
Y2llcyBleGlzdCBvbiB0aGUgc3lzdGVtCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3Jn
L3Nob3dfYnVnLmNnaT9pZD0xMTMzNzIKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzEyNjg1MzAx
PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogV2Vi
UHJvY2Vzcy9XZWJQYWdlL1dlYlBhZ2UuY3BwOgorICAgICAgICAoV2ViS2l0OjpXZWJQYWdlOjpw
ZGZQbHVnaW5FbmFibGVkKTogSWYgdGhlIFBERlBsdWdpbiBzZXR0aW5nIGlzIGVuYWJsZWQgYnV0
IFBERkxheWVyQ29udHJvbGxlciBpcyBub3QgYXZhaWxhYmxlLCBkb24ndCB1c2UgUERGUGx1Z2lu
LgorICAgICAgICAqIFdlYlByb2Nlc3MvV2ViUGFnZS9XZWJQYWdlLmg6CisgICAgICAgIChX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IH0KICNlbmRpZgogCg==
</data>
<flag name="review"
          id="217094"
          type_id="1"
          status="+"
          setter="ap"
    />
    <flag name="commit-queue"
          id="217095"
          type_id="3"
          status="-"
          setter="eflews.bot"
    />
          </attachment>
      

    </bug>

</bugzilla>