<?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>35976</bug_id>
          
          <creation_ts>2010-03-10 10:19:21 -0800</creation_ts>
          <short_desc>On Window, dwItemData from a custom context menu item cannot be retrieved when that item is selected.</short_desc>
          <delta_ts>2010-03-10 11:07:47 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Ada Chan">adachan</reporter>
          <assigned_to name="Ada Chan">adachan</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>198191</commentid>
    <comment_count>0</comment_count>
    <who name="Ada Chan">adachan</who>
    <bug_when>2010-03-10 10:19:21 -0800</bug_when>
    <thetext>A WebKit client can add a custom context menu item to the context menu via the IWebUIDelegate::contextMenuItemsForElement().  That custom context menu item (the MENUITEMINFO object) can have a non-null dwItemData.  If that context menu item is selected, IWebUIDelegate::contextMenuItemSelected() is called, but the MENUITEMINFO no longer has the dwItemData.  That&apos;s because in contextMenuItemByIdOrPosition() in ContextMenuWin.cpp, we didn&apos;t specify MIIM_DATA in the fMask when copying over the menu item information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198192</commentid>
    <comment_count>1</comment_count>
      <attachid>50413</attachid>
    <who name="Ada Chan">adachan</who>
    <bug_when>2010-03-10 10:24:07 -0800</bug_when>
    <thetext>Created attachment 50413
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198201</commentid>
    <comment_count>2</comment_count>
      <attachid>50413</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-03-10 10:34:14 -0800</bug_when>
    <thetext>Comment on attachment 50413
Patch

&gt; Index: WebCore/ChangeLog
&gt; ===================================================================
&gt; --- WebCore/ChangeLog	(revision 55785)
&gt; +++ WebCore/ChangeLog	(working copy)
&gt; @@ -1,3 +1,13 @@
&gt; +2010-03-10  Ada Chan  &lt;adachan@apple.com&gt;
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!).
&gt; +
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=35976
&gt; +
&gt; +        Retrieve any dwItemData that&apos;s set on the context menu item in contextMenuItemByIdOrPosition().

I think you should mention that this is useful for WebKit clients who store data in this member for their custom menu items.

r=me

-Adam</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198233</commentid>
    <comment_count>3</comment_count>
    <who name="Ada Chan">adachan</who>
    <bug_when>2010-03-10 11:07:47 -0800</bug_when>
    <thetext>Fixed in r55787.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>50413</attachid>
            <date>2010-03-10 10:24:07 -0800</date>
            <delta_ts>2010-03-10 10:34:14 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>35976.patch.txt</filename>
            <type>text/plain</type>
            <size>1114</size>
            <attacher name="Ada Chan">adachan</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1NTc4NSkKK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B8IE1JSU1fU1RSSU5HOworICAg
IGluZm8tPmZNYXNrID0gTUlJTV9GVFlQRSB8IE1JSU1fSUQgfCBNSUlNX1NUUklORyB8IE1JSU1f
REFUQTsKIAogICAgIGlmICghOjpHZXRNZW51SXRlbUluZm8obWVudSwgaWQsIGJ5UG9zaXRpb24s
IGluZm8pKSB7CiAgICAgICAgIGZyZWUoaW5mbyk7Cg==
</data>
<flag name="review"
          id="33553"
          type_id="1"
          status="+"
          setter="aroben"
    />
          </attachment>
      

    </bug>

</bugzilla>