<?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>14985</bug_id>
          
          <creation_ts>2007-08-16 10:32:20 -0700</creation_ts>
          <short_desc>Flash movies require double clicks when WebView is embedded in a Carbon application.</short_desc>
          <delta_ts>2011-05-23 11:46:55 -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 API</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>WONTFIX</resolution>
          
          
          <bug_file_loc>http://lists.apple.com/archives/webkitsdk-dev/2007/May/msg00009.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Perkins">cperkins</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>mrowe</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2171</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Perkins">cperkins</who>
    <bug_when>2007-08-16 10:32:20 -0700</bug_when>
    <thetext>In a mixed Carbon/Cocoa Mac OS X application, mouse click events are not properly received by Flash. Mouse over / Roll over / Drag works fine. The first click in the Flash window works fine. After the first click inside Flash, a single mouse click is not picked up by Flash. A double-click will register in Flash as a single click.

See here for a full description of the problem as well as how to re-create it: http://lists.apple.com/archives/webkitsdk-dev/2007/May/msg00009.html


There are two workarounds: 
1 - don&apos;t embed the .swf in an .html file, instead pass the .swf directly to the webview.

2. override the makeFirstResponder method of the NSView and manually pass the focus to your nsview/webview and then pass the event to it.

Workaround #1 works for older WebKits, but not later ones. For instance, if a user installs Safari 3 Beta, then the double click problem returns even if using workaround #1.

Workaround #2 requires a lot of Cocoa bridging (remember, we are working in Carbon). If you are using HIWebViewCreate() in your Carbon code you won&apos;t be able to use Workaround #2.


I suspect that Workaround #2 could be used to actually fix the bug in WebView.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-08-16 20:29:10 -0700</bug_when>
    <thetext>Chris, have you tried this in a recent nightly build of WebKit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Perkins">cperkins</who>
    <bug_when>2007-08-16 20:48:01 -0700</bug_when>
    <thetext>I got it working with the instructions on the debugging page. 

I&apos;m not debugging WebKit with XCode, just embedding it into a framework, I didn&apos;t realized those instructions would apply. I was intentionally avoiding them, trying to keep to the problem simpler. 



</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2118</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Perkins">cperkins</who>
    <bug_when>2007-08-16 20:49:07 -0700</bug_when>
    <thetext>Sorry - wrong bug.

Yes, this bug is open and still occurs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64646</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-18 10:11:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/5653340&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408110</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-05-23 11:43:29 -0700</bug_when>
    <thetext>Please use HICocoaView with a WebView, or use Cocoa proper for your app.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408111</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-05-23 11:46:55 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Please use HICocoaView with a WebView, or use Cocoa proper for your app.

Note that HIWebView has been deprecated since WebKit 4.0:
HIWebViewCreate(HIViewRef * outControl) AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_4_0;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>