<?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>3711</bug_id>
          
          <creation_ts>2005-06-25 12:58:57 -0700</creation_ts>
          <short_desc>Displayed PDF have limited options in contextual menu</short_desc>
          <delta_ts>2011-04-28 12:46:37 -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>WebKit API</component>
          <version>412</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</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>
          
          <blocked>59727</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Hanspeter Schaub">Hanspeterschaub</reporter>
          <assigned_to name="John Sullivan">sullivan</assigned_to>
          <cc>c.petersen87</cc>
    
    <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13148</commentid>
    <comment_count>0</comment_count>
    <who name="Hanspeter Schaub">Hanspeterschaub</who>
    <bug_when>2005-06-25 12:58:57 -0700</bug_when>
    <thetext>When viewing PDF in the latest builds (6/25/05), there are only very few options available in the 
contextual menu.  In particular, the &quot;View in Preview&quot; option has been removed?  I&apos;m running Safari 2.0 
with the lastest nightly webkit build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13243</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Petersen">c.petersen87</who>
    <bug_when>2005-06-26 09:49:28 -0700</bug_when>
    <thetext>Confirming this issue with TOT Webkit (6/26). The contextual menu that is normally used for viewing PDF 
is not displayed. I get a generic contextual menu that contains Back, Reload, Save Page as, and Print Page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13244</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Petersen">c.petersen87</who>
    <bug_when>2005-06-26 09:51:52 -0700</bug_when>
    <thetext>John:

Can you confirm this on TOT ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13245</commentid>
    <comment_count>3</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2005-06-26 11:12:26 -0700</bug_when>
    <thetext>When I changed WebKit to use the standard context menu delegate mechanism for the PDF context menu, 
this changed what appears in the context menu for Safari. The next Safari release will take advantage of 
this change in the way the PDF context menu works, but the current Safari release ends up not showing 
the PDF-specific items.

Darin, do you think we need to do something about this? I can imagine some hideous hack where WebKit 
somehow determines that it is running under Safari and that Safari isn&apos;t putting the PDF-specific items 
into the context menu, and forcing them in somehow. I&apos;d rather not implement such a hack though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13274</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-06-26 21:53:25 -0700</bug_when>
    <thetext>I don&apos;t think a Safari-specific hack is a great idea, but if there&apos;s anything we can do to help the old Safari 
do the right thing that might also help other applications, that would be great.

Also, there&apos;s going to be a long time where WebKit developers outside Apple are going to be using that 
old Safari with new WebKit, so if there&apos;s something straightforward we can do, we should, even if we 
ultimately don&apos;t ship it. If necessary we could even add a preprocessor define that generates a WebKit for 
better compatibility with old Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13624</commentid>
    <comment_count>5</comment_count>
      <attachid>2738</attachid>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2005-07-01 14:10:08 -0700</bug_when>
    <thetext>Created attachment 2738
patch to always include PDF items for older executables</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13626</commentid>
    <comment_count>6</comment_count>
      <attachid>2738</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-07-01 14:38:12 -0700</bug_when>
    <thetext>Comment on attachment 2738
patch to always include PDF items for older executables

Looks cool, r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13627</commentid>
    <comment_count>7</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2005-07-01 14:47:37 -0700</bug_when>
    <thetext>I found a non-Safari-specific solution that isn&apos;t *too* hacky. Hanspeter, please verify that this works for 
you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13635</commentid>
    <comment_count>8</comment_count>
    <who name="Hanspeter Schaub">Hanspeterschaub</who>
    <bug_when>2005-07-01 16:17:05 -0700</bug_when>
    <thetext>Seems to work find in the &quot;old&quot; version of Safari in Tiger.  I see the previous contextual menu added after 
the default items.

(In reply to comment #7)
&gt; I found a non-Safari-specific solution that isn&apos;t *too* hacky. Hanspeter, please verify that this works for 
&gt; you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13636</commentid>
    <comment_count>9</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2005-07-01 16:28:38 -0700</bug_when>
    <thetext>Since the originator has agreed that the problem is fixed, I&apos;m changing this to VERIFIED.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2738</attachid>
            <date>2005-07-01 14:10:08 -0700</date>
            <delta_ts>2005-07-01 14:38:12 -0700</delta_ts>
            <desc>patch to always include PDF items for older executables</desc>
            <filename>3711_patch.txt</filename>
            <type>text/plain</type>
            <size>4627</size>
            <attacher name="John Sullivan">sullivan</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL3Jvb3QvV2ViS2l0L0No
YW5nZUxvZyx2CnJldHJpZXZpbmcgcmV2aXNp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gW2l0ZW1zIG9iamVjdEVudW1lcmF0b3JdOworICAgICAgICAg
ICAgTlNNZW51SXRlbSAqbWVudUl0ZW07CisgICAgICAgICAgICB3aGlsZSAoKG1lbnVJdGVtID0g
W2UgbmV4dE9iamVjdF0pICE9IG5pbCkgeworICAgICAgICAgICAgICAgIC8vIGNvcHkgbWVudUl0
ZW0gc2luY2UgYSBnaXZlbiBtZW51SXRlbSBjYW4gYmUgaW4gb25seSBvbmUgbWVudSBhdCBhIHRp
bWUsIGFuZCB3ZSBkb24ndAorICAgICAgICAgICAgICAgIC8vIHdhbnQgdG8gbWVzcyB3aXRoIHRo
ZSBtZW51IHJldHVybmVkIGZyb20gUERGS2l0LgorICAgICAgICAgICAgICAgIFttZW51IGFkZEl0
ZW06W21lbnVJdGVtIGNvcHldXTsKKyAgICAgICAgICAgIH0KKyAgICAgICAgfQorICAgIH0KKyAg
ICAKKyAgICByZXR1cm4gbWVudTsKIH0KIAogLSAodm9pZClfdXBkYXRlU2NhbGluZ1RvUmVmbGVj
dFRleHRTaXplCg==
</data>
<flag name="review"
          id="141"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>