<?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>57414</bug_id>
          
          <creation_ts>2011-03-29 19:02:16 -0700</creation_ts>
          <short_desc>[Qt] segfault on javascript alert()</short_desc>
          <delta_ts>2012-08-01 02:11:41 -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 Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://developer.qt.nokia.com/forums/viewthread/4760/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>54202</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Thijs">ttf11</reporter>
          <assigned_to name="Ademar Reis">ademar</assigned_to>
          <cc>ademar</cc>
    
    <cc>benjamin</cc>
    
    <cc>jturcotte</cc>
    
    <cc>kling</cc>
    
    <cc>menard</cc>
    
    <cc>wolfram</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>375990</commentid>
    <comment_count>0</comment_count>
    <who name="Thijs">ttf11</who>
    <bug_when>2011-03-29 19:02:16 -0700</bug_when>
    <thetext>Full bug report (including nice formatting + stack trace) here:
http://developer.qt.nokia.com/forums/viewthread/4760/

Summary: very simple demo application crashes after clicking the button on a javascript alert().
I&apos;m using Qt Creator 2.1.0 (based on Qt 4.7.1 / 32 bit, Windows XP)). It&apos;s QtWebKit version is supposedly based on SVN version 56441, so I&apos;m not sure which version to pick exactly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376193</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-03-30 04:47:07 -0700</bug_when>
    <thetext>Confirming the P1 since it is a crash.

You are adding a blocking call in the frame loader, this is really nasty way of doing JavaScript, but that should not crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376576</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-03-30 12:16:54 -0700</bug_when>
    <thetext>Is this reproducible with WebKit trunk?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376851</commentid>
    <comment_count>3</comment_count>
    <who name="Thijs">ttf11</who>
    <bug_when>2011-03-30 18:48:22 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; You are adding a blocking call in the frame loader, 
&gt; this is really nasty way of doing JavaScript, but that should not crash.
Yes, it&apos;s mostly for testing, but I can imagine this situation will also happen in our product.

(In reply to comment #2)
&gt; Is this reproducible with WebKit trunk?
Yesterday and today I&apos;m trying to build QtWebKit 2.1 and/or WebKit from trunk. I&apos;m not a Windows developer, so learning how to setup my environment &amp; build everything from source is taking some time. If/when I get them compiled, I will try again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377048</commentid>
    <comment_count>4</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-03-31 04:19:37 -0700</bug_when>
    <thetext>&gt; (In reply to comment #2)
&gt; &gt; Is this reproducible with WebKit trunk?
&gt; Yesterday and today I&apos;m trying to build QtWebKit 2.1 and/or WebKit from trunk. I&apos;m not a Windows developer, so learning how to setup my environment &amp; build everything from source is taking some time. If/when I get them compiled, I will try again.

In case you have not seen it yet, here is the doc to build WebKit trunk on Windows: http://trac.webkit.org/wiki/BuildingQtOnWindows


Jocelyn, would you have a recent build to test this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377160</commentid>
    <comment_count>5</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2011-03-31 08:14:49 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; Is this reproducible with WebKit trunk?
&gt; &gt; Yesterday and today I&apos;m trying to build QtWebKit 2.1 and/or WebKit from trunk. I&apos;m not a Windows developer, so learning how to setup my environment &amp; build everything from source is taking some time. If/when I get them compiled, I will try again.
&gt; 
&gt; In case you have not seen it yet, here is the doc to build WebKit trunk on Windows: http://trac.webkit.org/wiki/BuildingQtOnWindows
&gt; 
&gt; 
&gt; Jocelyn, would you have a recent build to test this?

Loading the html with qttestbrowser on trunk doesn&apos;t crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377164</commentid>
    <comment_count>6</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-03-31 08:20:46 -0700</bug_when>
    <thetext>&gt; Loading the html with qttestbrowser on trunk doesn&apos;t crash.

Reducing the priority since this is already fixed in trunk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377228</commentid>
    <comment_count>7</comment_count>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-03-31 09:20:56 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; Is this reproducible with WebKit trunk?
&gt; &gt; &gt; Yesterday and today I&apos;m trying to build QtWebKit 2.1 and/or WebKit from trunk. I&apos;m not a Windows developer, so learning how to setup my environment &amp; build everything from source is taking some time. If/when I get them compiled, I will try again.
&gt; &gt; 
&gt; &gt; In case you have not seen it yet, here is the doc to build WebKit trunk on Windows: http://trac.webkit.org/wiki/BuildingQtOnWindows
&gt; &gt; 
&gt; &gt; 
&gt; &gt; Jocelyn, would you have a recent build to test this?
&gt; 
&gt; Loading the html with qttestbrowser on trunk doesn&apos;t crash.

Well it has to be on a server no? I believe loading local file triggers a different path and the report says it was on a server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377240</commentid>
    <comment_count>8</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-03-31 09:35:23 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Well it has to be on a server no? I believe loading local file triggers a different path and the report says it was on a server.

Good point, here is the test case: http://chaos.troll.no/~poulain/57414/ (trunk does not crash for me on Linux)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377242</commentid>
    <comment_count>9</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2011-03-31 09:37:05 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; Well it has to be on a server no? I believe loading local file triggers a different path and the report says it was on a server.
&gt; 
&gt; Good point, here is the test case: http://chaos.troll.no/~poulain/57414/ (trunk does not crash for me on Linux)

Doesn&apos;t crash on Windows neither.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377257</commentid>
    <comment_count>10</comment_count>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-03-31 09:50:29 -0700</bug_when>
    <thetext>Ademar what you want to do from that bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383315</commentid>
    <comment_count>11</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-04-11 11:36:50 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; Ademar what you want to do from that bug?

I&apos;m not sure yet. :P

I&apos;m inclined to close it as FIXED (since it&apos;s fixed on trunk), but since it&apos;s a crash with a proper testcase, I&apos;ll keep it open until I finish my current list of pending issues, then I&apos;ll revisit it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383961</commentid>
    <comment_count>12</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-04-12 06:03:26 -0700</bug_when>
    <thetext>Closing the bug as fixed and adding it to the qtwebkit-2.0 maintainance bug to keep track of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>384722</commentid>
    <comment_count>13</comment_count>
    <who name="Thijs">ttf11</who>
    <bug_when>2011-04-13 00:53:18 -0700</bug_when>
    <thetext>I just wanted to let you know that after upgrading to QtWebKit branch 2.1 (I finally got it to compile on Linux!) this was also solved for me. Good news it&apos;s also solved in the 2.0 trunk already!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>384808</commentid>
    <comment_count>14</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-04-13 05:36:04 -0700</bug_when>
    <thetext>(In reply to comment #13)
&gt; I just wanted to let you know that after upgrading to QtWebKit branch 2.1 (I finally got it to compile on Linux!) this was also solved for me. Good news it&apos;s also solved in the 2.0 trunk already!

Unfortunately it has not been fixed in 2.0. It&apos;s marked as a blocker, so it&apos;s a candidate for a future maintainance release, but the fix is not in the branch yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>684003</commentid>
    <comment_count>15</comment_count>
    <who name="wolfy">wolfram</who>
    <bug_when>2012-08-01 02:11:41 -0700</bug_when>
    <thetext>Could anybody reopen this? 

This bug appeared again in QT 4.8.1 and 4.8.2.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>