<?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>8521</bug_id>
          
          <creation_ts>2006-04-21 12:55:05 -0700</creation_ts>
          <short_desc>crash bringing up context menu with CSS generated content</short_desc>
          <delta_ts>2006-05-12 09:45: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>WebCore Misc.</component>
          <version>420+</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>http://lofotenmoose.info/css/destroy/origami.xhtml</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>EasyFix, HasReduction</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Gardner">gardnermj</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>jonathanjohnsson</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40057</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Gardner">gardnermj</who>
    <bug_when>2006-04-21 12:55:05 -0700</bug_when>
    <thetext>Try to open a context menu on http://lofotenmoose.info/css/destroy/origami.xhtml, and Safari will crash immediately. The page uses advanced CSS generated content techniques, which seems likely to be the cause of the crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40133</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-04-22 01:35:31 -0700</bug_when>
    <thetext>Thread 0 Crashed:
0   com.apple.WebCore        	0x018aec2c WebCore::FrameMac::sendContextMenuEvent(NSEvent*) + 756 (FrameMac.mm:2140)
1   com.apple.WebCore        	0x018da460 -[WebCoreFrameBridge sendContextMenuEvent:] + 52 (WebCoreFrameBridge.mm:1047)
2   com.apple.WebKit         	0x0037d070 -[WebHTMLView menuForEvent:] + 152 (WebHTMLView.m:2408)
3   com.apple.AppKit         	0x936e8e50 -[NSWindow sendEvent:] + 4520
4   com.apple.Safari         	0x00022160 0x1000 + 135520
5   com.apple.AppKit         	0x93691ef4 -[NSApplication sendEvent:] + 4172
6   com.apple.Safari         	0x00021c64 0x1000 + 134244
7   com.apple.AppKit         	0x93689330 -[NSApplication run] + 508
8   com.apple.AppKit         	0x93779e68 NSApplicationMain + 452
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40143</commentid>
    <comment_count>2</comment_count>
      <attachid>7909</attachid>
    <who name="">jonathanjohnsson</who>
    <bug_when>2006-04-22 04:53:34 -0700</bug_when>
    <thetext>Created attachment 7909
Reduced test case

This is a reduced test case, though I&apos;m not sure it displays all of the original problems of this bug. 

Right clicking on the blue or the right square crashes Safari. It&apos;s the &quot;html::before&quot; and &quot;html::after&quot; selectors that are responsible. 

As a note, Firefox renders this entirely different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41456</commentid>
    <comment_count>3</comment_count>
      <attachid>8147</attachid>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-05-07 12:19:07 -0700</bug_when>
    <thetext>Created attachment 8147
further reduced testcase

I think this is quite minimal...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41610</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-05-09 08:52:36 -0700</bug_when>
    <thetext>The problem is simply that WebCore::FrameMac::sendContextMenuEvent assumes targetNode is not 0. Easy to fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41813</commentid>
    <comment_count>5</comment_count>
      <attachid>8196</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-05-09 22:53:28 -0700</bug_when>
    <thetext>Created attachment 8196
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42106</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-05-12 09:45:06 -0700</bug_when>
    <thetext>Committed revision 14324.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7909</attachid>
            <date>2006-04-22 04:53:34 -0700</date>
            <delta_ts>2006-05-07 12:19:07 -0700</delta_ts>
            <desc>Reduced test case</desc>
            <filename>testcase.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>609</size>
            <attacher>jonathanjohnsson</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIj8+CjwhRE9DVFlQRSBodG1sIFBVQkxJQyAiLS8vVzNDLy9EVEQg
WEhUTUwgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMTEvRFREL3hodG1sMTEu
ZHRkIj4KPGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHhtbDpsYW5n
PSJlbiI+CjxoZWFkPgo8dGl0bGU+QnVnIDg1MjE8L3RpdGxlPgo8c3R5bGUgdHlwZT0idGV4dC9j
c3MiPgoKaHRtbDo6YmVmb3JlIHsKCWNvbnRlbnQ6ICIiOwoJYm9yZGVyOiBzb2xpZCByZWQgNXB4
OwoJd2lkdGg6IDUwcHg7CgloZWlnaHQ6IDUwcHg7Cglwb3NpdGlvbjogZml4ZWQ7Cn0KCmh0bWw6
OmFmdGVyIHsKCWNvbnRlbnQ6ICIiOwoJYm9yZGVyOiBzb2xpZCBibHVlIDVweDsKCXdpZHRoOiAx
MDBweDsKCWhlaWdodDogMTAwcHg7Cglwb3NpdGlvbjogZml4ZWQ7Cn0KCjwvc3R5bGU+CjwvaGVh
ZD4KCjxib2R5PgpPcGVuIGEgY29udGV4dCBtZW51IGZvciB0aGUgYmx1ZSBvciB0aGUgcmVkIHNx
dWFyZSwgYW5kIFNhZmFyaSBjcmFzaGVzLiAoV2ViS2l0LVNWTi1yMTQwMDggYW5kIFNhZmFyaSBW
ZXJzaW9uIDIuMC4zICg0MTcuOS4yKSkKPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8147</attachid>
            <date>2006-05-07 12:19:07 -0700</date>
            <delta_ts>2006-05-07 12:19:07 -0700</delta_ts>
            <desc>further reduced testcase</desc>
            <filename>origami.html</filename>
            <type>text/html</type>
            <size>256</size>
            <attacher name="Joost de Valk (AlthA)">joost</attacher>
            
              <data encoding="base64">PHN0eWxlIHR5cGU9InRleHQvY3NzIj4KaHRtbDpiZWZvcmUsIGh0bWw6YWZ0ZXIgewoJY29udGVu
dDogIiI7Cgl3aWR0aDogNTBweDsKCWhlaWdodDogNTBweDsKCXBvc2l0aW9uOiBmaXhlZDsKfQpo
dG1sOmJlZm9yZSB7Cglib3JkZXI6IHNvbGlkIHJlZCA1cHg7Cn0KaHRtbDphZnRlciB7Cglib3Jk
ZXI6IHNvbGlkIGdyZWVuIDVweDsKCXRvcDogNjBweDsKfQo8L3N0eWxlPgoKT3BlbiBhIGNvbnRl
eHQgbWVudSBhbmQgV2ViS2l0IGNyYXNoZXMuCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>8196</attachid>
            <date>2006-05-09 22:53:28 -0700</date>
            <delta_ts>2006-05-10 01:03:13 -0700</delta_ts>
            <desc>patch</desc>
            <filename>ContextMenuCrashPatch.txt</filename>
            <type>text/plain</type>
            <size>839</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IGJyaWRnZS9tYWMvRnJhbWVNYWMubW0KPT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gYnJpZGdlL21hYy9G
cmFtZU1hYy5tbQkocmV2aXNpb24gMTQyNzMpCisrKyBicmlkZ2UvbWFjL0ZyYW1lTWFjLm1tCSh3
b3JraW5nIGNvcHkpCkBAIC0yMTQxLDcgKzIxNDEsOCBAQAogCiAgICAgc3dhbGxvd0V2ZW50ID0g
di0+ZGlzcGF0Y2hNb3VzZUV2ZW50KGNvbnRleHRtZW51RXZlbnQsIG1ldi50YXJnZXROb2RlKCks
IHRydWUsIDAsIG1vdXNlRXZlbnQsIHRydWUpOwogICAgIGlmICghc3dhbGxvd0V2ZW50ICYmICFp
c1BvaW50SW5zaWRlU2VsZWN0aW9uKHZpZXdwb3J0UG9zKSAmJgotICAgICAgICAoW19icmlkZ2Ug
c2VsZWN0V29yZEJlZm9yZU1lbnVFdmVudF0gfHwgW19icmlkZ2UgaXNFZGl0YWJsZV0gfHwgbWV2
LnRhcmdldE5vZGUoKS0+aXNDb250ZW50RWRpdGFibGUoKSkpIHsKKyAgICAgICAgICAgIChbX2Jy
aWRnZSBzZWxlY3RXb3JkQmVmb3JlTWVudUV2ZW50XSB8fCBbX2JyaWRnZSBpc0VkaXRhYmxlXQor
ICAgICAgICAgICAgICAgIHx8IChtZXYudGFyZ2V0Tm9kZSgpICYmIG1ldi50YXJnZXROb2RlKCkt
PmlzQ29udGVudEVkaXRhYmxlKCkpKSkgewogICAgICAgICBfbW91c2VEb3duTWF5U3RhcnRTZWxl
Y3QgPSB0cnVlOyAvLyBjb250ZXh0IG1lbnUgZXZlbnRzIGFyZSBhbHdheXMgYWxsb3dlZCB0byBw
ZXJmb3JtIGEgc2VsZWN0aW9uCiAgICAgICAgIHNlbGVjdENsb3Nlc3RXb3JkRnJvbU1vdXNlRXZl
bnQobW91c2VFdmVudCwgbWV2LnRhcmdldE5vZGUoKSk7CiAgICAgfQo=
</data>
<flag name="review"
          id="2287"
          type_id="1"
          status="+"
          setter="adele"
    />
          </attachment>
      

    </bug>

</bugzilla>