<?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>10510</bug_id>
          
          <creation_ts>2006-08-22 08:55:56 -0700</creation_ts>
          <short_desc>REGRESSION: Adobe PDF Plugin 7 doesn&apos;t work</short_desc>
          <delta_ts>2007-07-18 11:42:56 -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>Plug-ins</component>
          <version>420+</version>
          <rep_platform>Mac (PowerPC)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin M. Dean">kevin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>pwarwick</cc>
    
    <cc>rsherry</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53061</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2006-08-22 08:55:56 -0700</bug_when>
    <thetext>Using the Adobe PDF Plugin to view pdfs doesn&apos;t appear to work on any site. The file downloads, but no plugin interface appears with the pdf content.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53072</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-08-22 13:08:37 -0700</bug_when>
    <thetext>Could you please give an example of a site where you see this problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53078</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2006-08-22 13:28:50 -0700</bug_when>
    <thetext>Any site with PDF files will do, but here&apos;s some from Adobe:

&lt;http://partners.adobe.com/public/developer/pdf/index_reference.html&gt;

Just click on one of the smaller pdfs for a quick demo.

I&apos;m also getting the following message in the console when trying to load a pdf there.

2006-08-22 16:27:09.257 WebKit[2615] CFLog (21): Error loading /System/Library/Frameworks/WebKit.framework/WebKit:  error code 4, error number 0 (Symbol not found: _WebCoreUnicodeDirectionFunction
  Referenced from: /System/Library/Frameworks/WebKit.framework/WebKit
  Expected in: /Applications/WebKit.app/Contents/Resources/WebCore.framework/Versions/A/WebCore
)

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53084</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-08-22 14:06:01 -0700</bug_when>
    <thetext>I could reproduce with the latest AdobePDFViewer.plugin (version 7.0.5, as installed with Reader 7.0.8) and a local TOT build.

It seems that the plugin loads a system copy of WebKit framework dynamically, and that is of course incompatible with TOT WebCore and WebKit. So, on one hand it&apos;s not something we can fix, Adobe needs to address this problem. On the other hand, this is only an issue for nightlies and local TOT builds - as soon as new WebKit ships with the OS, everything should be back to normal.

Since this is a pretty important issue, I&apos;m confirming and leaving this open for someone to double-check my findings, but I think that this is INVALID.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53139</commentid>
    <comment_count>4</comment_count>
    <who name="Rudi Sherry">rsherry</who>
    <bug_when>2006-08-23 09:33:50 -0700</bug_when>
    <thetext>The Adobe plug-in does not explicitly load WebKit; it links with the WebKit so that it will use the system&apos;s.  Here is a guess: WebView.m, in -[initWithFrame:frameName:groupName:], unsets DYLD_FRAMEWORK_PATH in order to fix bug 4286 where .Mac preferences wasn&apos;t loading properly.  I think this is causing AdobePDFViewer to somehow load the system WebKit because TOT is no longer in the DYLD_FRAMEWORK_PATH.  I would need someone more familiar with mach-o loading to confirm this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53215</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-08-23 09:55:04 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; The Adobe plug-in does not explicitly load WebKit; it links with the WebKit so
&gt; that it will use the system&apos;s.

  Interesting - looks like otool might have fooled me:

$ otool -L /Users/ap/Desktop/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer 
/Users/ap/Desktop/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer:
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.0.0)
        /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 494.0.0)
        /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 725.0.0)

&gt;  Here is a guess: WebView.m, in
&gt; -[initWithFrame:frameName:groupName:], unsets DYLD_FRAMEWORK_PATH in order to
&gt; fix bug 4286 where .Mac preferences wasn&apos;t loading properly.

  Sounds feasible!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53374</commentid>
    <comment_count>6</comment_count>
    <who name="Rudi Sherry">rsherry</who>
    <bug_when>2006-08-24 12:49:22 -0700</bug_when>
    <thetext>Sorry, my bad -- the AdobePDF plugin does not link with WebKit. The plugin is loading Acrobat, and Acrobat dynamically loads WebKit with a hard-coded path &quot;/System/Library/Frameworks/WebKit.framework&quot;.  Acrobat loads it dynamically -- rather than linking with it -- because it supports 10.2 which doesn&apos;t have WebKit.

I don&apos;t see any way we will fix this for Acrobat 7; I believe Acrobat 8 should work correctly (I can&apos;t say more than that).

I&apos;m also not sure why it fails to work, though. I would assume that this is a problem with multiple (incompatible?) WebKit frameworks loaded at the same time, but I&apos;m not enough of an expert on the Objective-C runtime to know for sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42700</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-12-09 03:10:44 -0800</bug_when>
    <thetext>Acrobat 8 works with TOT WebKit fine, closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4412</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-07-18 10:17:12 -0700</bug_when>
    <thetext>*** Bug 14644 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>