<?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>128336</bug_id>
          
          <creation_ts>2014-02-06 15:02:13 -0800</creation_ts>
          <short_desc>window.print does not work</short_desc>
          <delta_ts>2019-05-17 14:03:09 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>1</everconfirmed>
          <reporter name="Niranjan Rao">nhrdls</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mayurk.vk</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>977552</commentid>
    <comment_count>0</comment_count>
      <attachid>223386</attachid>
    <who name="Niranjan Rao">nhrdls</who>
    <bug_when>2014-02-06 15:02:13 -0800</bug_when>
    <thetext>Created attachment 223386
Test case showing print problem

On Ubuntu 12.04/64bit, using webkit gtk release 2.2.4.

Visit any site in mini browser application. Open inspector, execute command window.print();. Nothing happens.

Attached file shows different variation of same problem. Load the file in mini browser, click on the print link. Nothing happens. Try clicking second time and you get the print dialog box as expected and then it works. It should be showing print dialog box after first click.

Based on some more experiments, it looks like its intialization problem. Something is getting initialized in first run that latter run uses. However first does not return at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>977634</commentid>
    <comment_count>1</comment_count>
    <who name="Niranjan Rao">nhrdls</who>
    <bug_when>2014-02-06 17:13:05 -0800</bug_when>
    <thetext>Experimented with version 2.2.3. Code works correctly with 2.2.3 but does not work with 2.2.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1537235</commentid>
    <comment_count>2</comment_count>
    <who name="Lionir">webkit-bugzilla</who>
    <bug_when>2019-05-17 13:51:49 -0700</bug_when>
    <thetext>Tested on :

Epiphany : 3.33.1-1375a8e6d
Webkit 2.24.1

The test case works.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>223386</attachid>
            <date>2014-02-06 15:02:13 -0800</date>
            <delta_ts>2014-02-06 15:02:13 -0800</delta_ts>
            <desc>Test case showing print problem</desc>
            <filename>p.html</filename>
            <type>text/html</type>
            <size>158</size>
            <attacher name="Niranjan Rao">nhrdls</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGhlYWQ+CiAgICA8c2NyaXB0PgogICAgPC9zY3JpcHQ+CiAgICA8Ym9keT4KICAg
ICAgPGRpdj4KICAgICAgICA8YSBpZD0icCIgaHJlZj0iamF2YXNjcmlwdDp3aW5kb3cucHJpbnQo
KTsiPlByaW50PC9hPgoJICA8L2Rpdj4KICAgIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>