<?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>7146</bug_id>
          
          <creation_ts>2006-02-08 20:25:57 -0800</creation_ts>
          <short_desc>New WebKit API needed for communicating PostScript conversion progress via delegate method</short_desc>
          <delta_ts>2006-02-11 09:43:30 -0800</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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          <dependson>3527</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jordan.breeding</cc>
    
    <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31904</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-02-08 20:25:57 -0800</bug_when>
    <thetext>Bug 3527 added the ability to view PostScript files within WebKit, but there is no way to communicate to the user that the conversion is taking place.  A new API is needed in WebKit to provide that information via delegate method calls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31905</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-02-08 20:27:18 -0800</bug_when>
    <thetext>[10:09pm] darin: ddkilzer: When I tested it I saw a spinning cursor for a while -- I wonder why.
[10:09pm] darin: Preview didn&apos;t seem to take as long to convert to PDF.
[10:09pm] ddkilzer: darin: Did you have any thoughts on how to handle errors?  ap suggested that I use the status bar, but I don&apos;t think that&apos;s turned on by default.
[10:10pm] darin: I think we should report the errors to Safari and let it handle them some nice way.
[10:10pm] ddkilzer: darin: Preview has a dialog while the conversion happens, too.
[10:10pm] darin: We need to make sure WebKit API has a good way to tell about the errors
[10:10pm] darin: I was about to mention that.
[10:10pm] darin: In general we want to let the browser control such things.
[10:10pm] ddkilzer: darin: Is there an example of code in WebKit where an error is reported?
[10:11pm] darin: ddkilzer: You should probably talk to John Sullivan about this -- it&apos;s probably OK to send him emal.
[10:11pm] darin: Errors are reported through the page load delegate.
[10:11pm] darin: frame load delegate I guess
[10:11pm] ddkilzer: darin: Should I file a follow-up bug to track the issue, too?
[10:11pm] darin: sure, we could even use 2
[10:11pm] ddkilzer: darin: Add sullivan(at)apple.com to the CC list.  Two?
[10:11pm] darin: 1 for the &quot;converting PostScript&quot; and another for the error case
[10:12pm] darin: and the bugs aren&apos;t about what Safari does
[10:12pm] darin: because those don&apos;t belong in WebKit
[10:12pm] darin: but rather bugs about adding WebKit API for this
[10:12pm] darin: xenon is another guy to talk to about this
[10:12pm] darin: - (void)webView:(WebView *)sender didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame;
[10:12pm] darin: that&apos;s how errors get reported
[10:12pm] darin: it&apos;s not clear how to communicate that loading is taking place
[10:13pm] ddkilzer: Adding WebKit API to report PS conversion status and to report an error
[10:13pm] darin: that might require some new delegate call
[10:13pm] darin: sure
[10:13pm] darin: I guess PS conversion progress would be ideal, but the framework doesn&apos;t tell us that
[10:13pm] darin: instead it&apos;s just &quot;start and stop&quot; I guess
[10:13pm] darin: ddkilzer: I think the &quot;report an error&quot; case really just means using the existing delegate and a new NSError code
[10:13pm] ddkilzer: darin: No, actually that&apos;s what that zeroed-out callback is for.
[10:13pm] darin: neat
[10:14pm] darin: so we&apos;d want to report the progress too then
[10:14pm] darin: so those are the two bugs
[10:14pm] ddkilzer: darin: The callback struct calls methods at various points in the conversion process.
[10:14pm] darin: neat
[10:14pm] darin: maybe we can turn that into something abstract enough to be in the general WebKit API
[10:14pm] darin: sullivan and xenon are 2 great people to talk to about this
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32121</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-02-11 08:15:34 -0800</bug_when>
    <thetext>If a new delegate method is added to WebKit to report the conversion status progress, will corresponding changes need to be made in Safari?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32136</commentid>
    <comment_count>3</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-02-11 09:43:30 -0800</bug_when>
    <thetext>Yes, if there&apos;s a new delegate callback then only updated clients can take advantage of it. We&apos;d have to make a change such that old clients wouldn&apos;t do anything bad, they just wouldn&apos;t take advantage of the new improved mechanism.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>