<?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>77902</bug_id>
          
          <creation_ts>2012-02-06 14:28:20 -0800</creation_ts>
          <short_desc>NPP_Print is never called on Print, but NPP_SetWindow is with surprising parameters</short_desc>
          <delta_ts>2022-07-01 11:35:48 -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>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>0</everconfirmed>
          <reporter name="Rudi Sherry">rsherry</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>rsherry</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>550285</commentid>
    <comment_count>0</comment_count>
    <who name="Rudi Sherry">rsherry</who>
    <bug_when>2012-02-06 14:28:20 -0800</bug_when>
    <thetext>I am seeing no calls to NPP_Print when printing.  I am using the WebKit nightly from about a month ago, but we are also seeing this in Safari 5.1.2, both on 10.6 and 10.7.

When the user is in a document controlled by a plug-in and chooses &quot;Print&quot;, the plugin gets the call NPP_SetWindow() with page-size window... that causes us to resize our view to be page ratio, which is surprising our users.

The Print sheet appears, then printing doesn&apos;t print anything of our content.  Then we get another NPP_SetWindow() that restores us to the Safari window size.

NPP_Print() is never called.

We are using the Cocoa Event model and the Core Animation drawing model.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551082</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-02-07 10:05:27 -0800</bug_when>
    <thetext>What do you expect to be passed as printInfo-&gt;print.embedPrint.platformPrint?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551183</commentid>
    <comment_count>2</comment_count>
    <who name="Rudi Sherry">rsherry</who>
    <bug_when>2012-02-07 11:40:15 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; What do you expect to be passed as printInfo-&gt;print.embedPrint.platformPrint?

I think it would depend on the negotiated drawing model.

If we&apos;ve negotiated a CoreAnimation layer, I would expect a CALayer. I can put whatever I want on that layer and return.  I would not expect it to be the same layer I provided to the browser, since that is being used to display on the window.  The browser would own the printed layer.

I&apos;m not familiar enough with the other drawing models to know, but I expect it would be similar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879964</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-01 11:35:48 -0700</bug_when>
    <thetext>Mass closing plug-in bugs, as plug-in support has been removed from WebKit.

Please comment and/or reopen if this still affects WebKit in some way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>