<?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>14128</bug_id>
          
          <creation_ts>2007-06-13 16:17:36 -0700</creation_ts>
          <short_desc>Webkit crashes in HIWebView.m Line 772 when moving window</short_desc>
          <delta_ts>2007-06-18 17:15:06 -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 Misc.</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="geoff kruse">gkruse</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dev+webkit</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7636</commentid>
    <comment_count>0</comment_count>
    <who name="geoff kruse">gkruse</who>
    <bug_when>2007-06-13 16:17:36 -0700</bug_when>
    <thetext>Running a QT app that uses carbon webkit.  The webview is not visible and the application window is moved, this causes a crash.  The view returned by HIViewGetViewForMouseEvent() is null.  See the thread stack trace attached.

Thread 0 Crashed:
0   com.apple.HIToolbox  	0x92e097fd HIObjectIsOfClass + 13
1   com.apple.WebKit     	0x006b0da3 WindowHandler + 482
2   com.apple.HIToolbox  	0x92df0537 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1093
3   com.apple.HIToolbox  	0x92defbdc SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 304
4   com.apple.HIToolbox  	0x92df6fbc SendEventToEventTarget + 56
5   com.apple.HIToolbox  	0x92df744f ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1169
6   com.apple.HIToolbox  	0x92df08ee DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2044
7   com.apple.HIToolbox  	0x92defbdc SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 304
8   com.apple.HIToolbox  	0x92df6fbc SendEventToEventTarget + 56
9   QtGui                	0x0142c5ae qt_mac_send_event(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;, OpaqueEventRef*, OpaqueWindowPtr*) + 86
10  QtGui                	0x014397f6 QEventDispatcherMac::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) + 624
11  QtCore               	0x01ef4fdf QCoreApplication::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) + 49
12  Whisher              	0x00197953 connection::utils::AbstractPacketsIOHandler::waitForResponse(QString const&amp;, bool const&amp;, bool const&amp;) + 107
13  Whisher              	0x00197fc5 connection::utils::AbstractPacketsIOHandler::sendPacketAndWaitForResponse(connection::utils::WPacket&amp;, bool const&amp;) + 81
14  Whisher              	0x0018f2fb connection::server::ServerSession::sendPacketAndWaitForResponse(connection::utils::WPacket&amp;, bool const&amp;, bool const&amp;, bool const&amp;) + 337
15  Whisher              	0x00167e82 connection::server::AccessPointsConnector::logVisibleAccessPoints(QList&lt;data::WiFiAccessPoint&gt; const&amp;) const + 382
16  Whisher              	0x00096ffa business::AccessPointsManager::logVisibleAccessPoints(QList&lt;data::WiFiAccessPoint&gt; const&amp;) const + 36
17  Whisher              	0x000a110d MainWindow::processEvent(utils::Event const&amp;) + 5205
18  Whisher              	0x00131821 MainWindow::qt_metacall(QMetaObject::Call, int, void**) + 273
19  QtCore               	0x01f0483b QMetaObject::activate(QObject*, int, int, void**) + 941
20  Whisher              	0x0016bd85 utils::EventProducer::fireEvent(utils::Event const&amp;) const + 61
21  Whisher              	0x00142b94 business::GeneralServicesManager::processEvent(utils::Event const&amp;) + 1092
22  Whisher              	0x0016f3f6 business::GeneralServicesManager::qt_metacall(QMetaObject::Call, int, void**) + 82
23  QtCore               	0x01f0483b QMetaObject::activate(QObject*, int, int, void**) + 941
24  Whisher              	0x0016bd85 utils::EventProducer::fireEvent(utils::Event const&amp;) const + 61
25  Whisher              	0x0016f0fc connection::server::GeneralServicesConnector::processEvent(utils::Event const&amp;) + 112
26  Whisher              	0x0019177d connection::server::GeneralServicesConnector::qt_metacall(QMetaObject::Call, int, void**) + 75
27  QtCore               	0x01f00f51 QMetaCallEvent::placeMetaCall(QObject*) + 43
28  QtCore               	0x01f02638 QObject::event(QEvent*) + 700
29  QtGui                	0x013e7006 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 438
30  QtGui                	0x013e943d QApplication::notify(QObject*, QEvent*) + 255
31  QtCore               	0x01ef4f7b QCoreApplication::notifyInternal(QObject*, QEvent*) + 83
32  QtCore               	0x01ef6976 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 672
33  QtCore               	0x01ef6ba1 QCoreApplication::sendPostedEvents(QObject*, int) + 33
34  QtGui                	0x014395e7 QEventDispatcherMac::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) + 97
35  QtCore               	0x01ef4b9c QEventLoop::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) + 54
36  QtCore               	0x01ef4cbb QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) + 109
37  QtCore               	0x01ef6c37 QCoreApplication::exec() + 147
38  Whisher              	0x000904e2 main + 2114
39  Whisher              	0x000084d2 _start + 216
40  Whisher              	0x000083f9 start + 41</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7631</commentid>
    <comment_count>1</comment_count>
    <who name="geoff kruse">gkruse</who>
    <bug_when>2007-06-13 16:37:15 -0700</bug_when>
    <thetext>Here is a crashing build of the app in question.  Note, not for public release.
http://wireless.kicks-ass.org/Whisher.app.zip</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7622</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-06-13 17:46:51 -0700</bug_when>
    <thetext>What steps need to be taken when using the application to reproduce the crash?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7623</commentid>
    <comment_count>3</comment_count>
    <who name="geoff kruse">gkruse</who>
    <bug_when>2007-06-13 17:48:38 -0700</bug_when>
    <thetext>Launch the application and move the main window across the screen.  If that doesn&apos;t do it, &quot;jiggle&quot; the window a little.  The crash didn&apos;t occur before installing safari 3, however it does occur when with tot as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7624</commentid>
    <comment_count>4</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-06-13 18:02:29 -0700</bug_when>
    <thetext>Confirmed on Tiger (10.4.9 8P135) with Safari 3.0 Beta and r23484.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7612</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-06-13 21:07:38 -0700</bug_when>
    <thetext>The code in question fails to check the return value of the call HIViewGetViewForMouseEvent, which leads to NULL being passed on to another API.  The fact HIViewGetViewForMouseEvent is returning an error indicates that the arguments it is being passed are in some way incorrect as the conditions in which it will fail are very limited.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7599</commentid>
    <comment_count>6</comment_count>
    <who name="geoff kruse">gkruse</who>
    <bug_when>2007-06-13 22:51:48 -0700</bug_when>
    <thetext>This is similar to the setup I do in Qt taken from http://doc.trolltech.com/qq/qq20-hiviews.html

   WebWidget::WebWidget(QWidget *parent)
        : QWidget(parent)
    {
        HIViewRef webView;
        WebInitForCarbon();
        HIWebViewCreate(&amp;webView);
        create(WId(webView));
    }

For some reason, it seems to cause problems?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7158</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-06-18 10:59:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/5276271&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7116</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-06-18 17:15:06 -0700</bug_when>
    <thetext>Kevin landed a fix for this in r23574.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>