<?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>12433</bug_id>
          
          <creation_ts>2007-01-27 03:19:48 -0800</creation_ts>
          <short_desc>ASSERT right-clicking on misspelled word in fixUpOldMenus on TOT</short_desc>
          <delta_ts>2007-01-29 23:18:25 -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>New Bugs</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>12134</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32145</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-27 03:19:48 -0800</bug_when>
    <thetext>When clicking on selected text, Safari crashed in fixUpOldMenus assertion:

            // Versions of Mail compiled with older WebKits will end up without three context menu items, 
            // though with the separators between them. Here we check for that problem and reinsert the 
            // three missing items. This shouldn&apos;t affect any clients other than Mail since the tags for 
            // the three items were not public API. We can remove this code when we no longer support 
            // previously-built versions of Mail on Tiger. See 4498606 for more details.
            ASSERT([[newMenuItems objectAtIndex:1] isSeparatorItem]);
            ASSERT([[defaultMenuItems objectAtIndex:1] tag] == WebMenuItemTagSearchWeb); // crashed here.


(gdb) po defaultMenuItems
&lt;NSCFArray 0x1800a680&gt;(
&lt;MenuItem: 0x17526950 animation&gt;,
&lt;MenuItem: 0x1731fda0 &gt;,
&lt;MenuItem: 0x1804ac30 Ignore Spelling&gt;,
&lt;MenuItem: 0x173fd190 Learn Spelling&gt;,
&lt;MenuItem: 0x175ad450 &gt;,
&lt;MenuItem: 0x1753c2b0 Search in Spotlight&gt;,
&lt;MenuItem: 0x1757d6c0 Search in Google&gt;,
&lt;MenuItem: 0x173ecf40 &gt;,
&lt;MenuItem: 0x17b02980 Look Up in Dictionary&gt;,
&lt;MenuItem: 0x1797a690 &gt;,
&lt;MenuItem: 0x1798af70 Cut&gt;,
&lt;MenuItem: 0x1734ebc0 Copy&gt;,
&lt;MenuItem: 0x17725370 Paste&gt;,
&lt;MenuItem: 0x17378b10 &gt;,
&lt;MenuItem: 0x17572e30 Spelling, submenu: 0x18862d50 ()&gt;,
&lt;MenuItem: 0x1803a9b0 Font, submenu: 0x18862c30 ()&gt;,
&lt;MenuItem: 0x175f94d0 Speech, submenu: 0x17546aa0 ()&gt;,
&lt;MenuItem: 0x179a1f50 Writing Direction, submenu: 0x180aad30 ()&gt;
)


#0	0x00398122 in fixMenusFromOldClients at WebContextMenuClient.mm:89
#1	0x00398ebc in WebContextMenuClient::getCustomMenuFromDefaultItems at WebContextMenuClient.mm:177
#2	0x013eeb57 in WebCore::ContextMenuController::handleContextMenuEvent at ContextMenuController.cpp:88
#3	0x0122c247 in WebCore::EventTargetNode::defaultEventHandler at EventTargetNode.cpp:573
#4	0x01224502 in WebCore::HTMLTextFieldInnerTextElement::defaultEventHandler at HTMLTextFieldInnerElement.cpp:64
#5	0x011a5166 in WebCore::RenderTextControl::forwardEvent at RenderTextControl.cpp:753
#6	0x010d2f10 in WebCore::HTMLTextAreaElement::defaultEventHandler at HTMLTextAreaElement.cpp:238
#7	0x0122a57b in WebCore::EventTargetNode::dispatchGenericEvent at EventTargetNode.cpp:262
#8	0x0122be5e in WebCore::EventTargetNode::dispatchEvent at EventTargetNode.cpp:297
#9	0x0122acf5 in WebCore::EventTargetNode::dispatchMouseEvent at EventTargetNode.cpp:455
#10	0x0122b3a0 in WebCore::EventTargetNode::dispatchMouseEvent at EventTargetNode.cpp:382
#11	0x013e9a5c in WebCore::EventHandler::dispatchMouseEvent at EventHandler.cpp:1027
#12	0x013e9dd5 in WebCore::EventHandler::sendContextMenuEvent at EventHandler.cpp:1124
#13	0x0033af9c in -[WebHTMLView menuForEvent:] at WebHTMLView.mm:2568
#14	0x9334c33a in -[NSWindow sendEvent:]
#15	0x0002338e in ??
#16	0x9333e350 in -[NSApplication sendEvent:]
#17	0x00022f1e in ??
#18	0x93268dfe in -[NSApplication run]
#19	0x9325cd2f in NSApplicationMain
#20	0x0005f7de in ??
#21	0x0005f6f9 in ??


I was clicking on selected text in a bugzilla form.  tiger safari, TOT webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32110</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-27 03:45:48 -0800</bug_when>
    <thetext>What&apos;s the &quot;animation&quot; item in the menu item list?  Is that a local modification for a patch-in-progress, or is it something only available when right-clicking on SVG animations?

(In reply to comment #0)
&gt; (gdb) po defaultMenuItems
&gt; &lt;NSCFArray 0x1800a680&gt;(
&gt; &lt;MenuItem: 0x17526950 animation&gt;,
&gt; &lt;MenuItem: 0x1731fda0 &gt;,
&gt; &lt;MenuItem: 0x1804ac30 Ignore Spelling&gt;,
&gt; &lt;MenuItem: 0x173fd190 Learn Spelling&gt;,
&gt; &lt;MenuItem: 0x175ad450 &gt;,
&gt; &lt;MenuItem: 0x1753c2b0 Search in Spotlight&gt;,
&gt; &lt;MenuItem: 0x1757d6c0 Search in Google&gt;,
&gt; &lt;MenuItem: 0x173ecf40 &gt;,
&gt; &lt;MenuItem: 0x17b02980 Look Up in Dictionary&gt;,
&gt; &lt;MenuItem: 0x1797a690 &gt;,
&gt; &lt;MenuItem: 0x1798af70 Cut&gt;,
&gt; &lt;MenuItem: 0x1734ebc0 Copy&gt;,
&gt; &lt;MenuItem: 0x17725370 Paste&gt;,
&gt; &lt;MenuItem: 0x17378b10 &gt;,
&gt; &lt;MenuItem: 0x17572e30 Spelling, submenu: 0x18862d50 ()&gt;,
&gt; &lt;MenuItem: 0x1803a9b0 Font, submenu: 0x18862c30 ()&gt;,
&gt; &lt;MenuItem: 0x175f94d0 Speech, submenu: 0x17546aa0 ()&gt;,
&gt; &lt;MenuItem: 0x179a1f50 Writing Direction, submenu: 0x180aad30 ()&gt;
&gt; )
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32107</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-27 03:50:41 -0800</bug_when>
    <thetext>it was the spelling word I clicked on iirc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32104</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-27 03:56:40 -0800</bug_when>
    <thetext>Clicking on any misspelled word hits this assert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31343</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-28 15:40:36 -0800</bug_when>
    <thetext>&lt;rdar://problem/4960100&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30582</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2007-01-29 23:18:25 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 12134 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>