<?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>98497</bug_id>
          
          <creation_ts>2012-10-05 01:38:41 -0700</creation_ts>
          <short_desc>[GTK] Test /webkit2/WebKitPrintOperation/print-errors gives runtime critical warnings</short_desc>
          <delta_ts>2012-10-05 08:46:07 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gustavo</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>735490</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-10-05 01:38:41 -0700</bug_when>
    <thetext>GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel-&gt;is_writeable&apos; failed

This is because GTK+ tries to write in the io channel that has already been closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>735492</commentid>
    <comment_count>1</comment_count>
      <attachid>167280</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-10-05 01:42:11 -0700</bug_when>
    <thetext>Created attachment 167280
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>735650</commentid>
    <comment_count>2</comment_count>
      <attachid>167280</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-10-05 08:22:05 -0700</bug_when>
    <thetext>Comment on attachment 167280
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=167280&amp;action=review

Looks good, but please see below before landing...

&gt; Source/WebKit2/ChangeLog:9
&gt; +        The problem is that GTK+ tries to write in the io channel that ash
&gt; +        already been closed.

Nit: IO channel that has

&gt; Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:700
&gt; +        cairo_surface_finish(surface);

Since this is a work-around for a GTK+ bug it&apos;s probably a good idea to put a comment here including  a URL to the GTK+ bug in question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>735655</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-10-05 08:29:15 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 167280 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=167280&amp;action=review
&gt; 
&gt; Looks good, but please see below before landing...
&gt; 
&gt; &gt; Source/WebKit2/ChangeLog:9
&gt; &gt; +        The problem is that GTK+ tries to write in the io channel that ash
&gt; &gt; +        already been closed.
&gt; 
&gt; Nit: IO channel that has

Sure.

&gt; &gt; Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:700
&gt; &gt; +        cairo_surface_finish(surface);
&gt; 
&gt; Since this is a work-around for a GTK+ bug it&apos;s probably a good idea to put a comment here including  a URL to the GTK+ bug in question.

It&apos;s not exactly a workaround, it&apos;s a good idea to do that in any case even if there weren&apos;t bugs in GTK+, we are already doing it in WebPrintOperationGtkUnix::endPrint() and it&apos;s reason why it didn&apos;t fail for other printing errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>735658</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-10-05 08:33:17 -0700</bug_when>
    <thetext>What I mean is that it would be useful to add links to the bugs there to remove the workaround when the bugs are fixed, but it&apos;s not the case, we want to finish the surface early even if the bugs are fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>735662</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-10-05 08:46:07 -0700</bug_when>
    <thetext>Committed r130509: &lt;http://trac.webkit.org/changeset/130509&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>167280</attachid>
            <date>2012-10-05 01:42:11 -0700</date>
            <delta_ts>2012-10-05 08:22:04 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>wk2-print-test.diff</filename>
            <type>text/plain</type>
            <size>1513</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA4OWJmOWRmLi42MWJkZjhmIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcg
QEAKKzIwMTItMTAtMDUgIENhcmxvcyBHYXJjaWEgQ2FtcG9zICA8Y2dhcmNpYUBpZ2FsaWEuY29t
PgorCisgICAgICAgIFtHVEtdIFRlc3QgL3dlYmtpdDIvV2ViS2l0UHJpbnRPcGVyYXRpb24vcHJp
bnQtZXJyb3JzIGdpdmVzIHJ1bnRpbWUgY3JpdGljYWwgd2FybmluZ3MKKyAgICAgICAgaHR0cHM6
Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTk4NDk3CisKKyAgICAgICAgUmV2aWV3
ZWQgYnkg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CAtNjk3LDYg
KzY5Nyw3IEBAIHZvaWQgV2ViUHJpbnRPcGVyYXRpb25HdGs6OnByaW50KGNhaXJvX3N1cmZhY2Vf
dCogc3VyZmFjZSwgZG91YmxlIHhEUEksIGRvdWJsZSB5CiAKICAgICBPd25QdHI8UHJpbnRQYWdl
c0RhdGE+IGRhdGEgPSBhZG9wdFB0cihuZXcgUHJpbnRQYWdlc0RhdGEodGhpcykpOwogICAgIGlm
ICghZGF0YS0+aXNWYWxpZCkgeworICAgICAgICBjYWlyb19zdXJmYWNlX2ZpbmlzaChzdXJmYWNl
KTsKICAgICAgICAgcHJpbnREb25lKGludmFsaWRQYWdlUmFuZ2VUb1ByaW50KG1fcHJpbnRDb250
ZXh0KSk7CiAgICAgICAgIHJldHVybjsKICAgICB9Cg==
</data>
<flag name="review"
          id="179910"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>