<?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>32525</bug_id>
          
          <creation_ts>2009-12-14 10:24:05 -0800</creation_ts>
          <short_desc>Assertion failure in addStyleMarkup copying link text (from maps.google.com at least)</short_desc>
          <delta_ts>2024-01-18 13:39:53 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Sullivan">sullivan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>enrica</cc>
    
    <cc>eric</cc>
    
    <cc>hbono</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>171461</commentid>
    <comment_count>0</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2009-12-14 10:24:05 -0800</bug_when>
    <thetext>To reproduce:

1. visit maps.google.com
2. click-and-drag to select the word &quot;Maps&quot; in the &quot;Put &lt;your business on Google Maps&gt;&quot; link on the left side. (Selecting more of the link will also show the bug. It doesn&apos;t happen with all the links on this page though.)
3. Command-C to Copy

ASSERTION FAILED: propertyMissingOrEqualToNone(style, CSSPropertyTextDecoration) &amp;&amp; propertyMissingOrEqualToNone(style, CSSPropertyWebkitTextDecorationsInEffect)

The assertion is here:

static void addStyleMarkup(Vector&lt;String&gt;&amp; preMarkups, Vector&lt;String&gt;&amp; postMarkups, CSSStyleDeclaration* style, Document* document, bool isBlock = false)
{
    // All text-decoration-related elements should have been treated as special ancestors
    // If we ever hit this ASSERT, we should export StyleChange in ApplyStyleCommand and use it here
    ASSERT(propertyMissingOrEqualToNone(style, CSSPropertyTextDecoration) &amp;&amp; propertyMissingOrEqualToNone(style, CSSPropertyWebkitTextDecorationsInEffect));


The assertion and preceding comment were added by Ryosuke Niwa (rniwa@webkit.org) in r46446.

I don&apos;t know what effect this would have on a release build, but I suspect it is minor. 

This is in Radar as rdar://problem/7469282.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171473</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-12-14 10:36:15 -0800</bug_when>
    <thetext>I thought http://trac.webkit.org/changeset/49129 fixed the assertion problem but it seems like it wasn&apos;t the case.  I feel like we need the real surgery.  See https://bugs.webkit.org/show_bug.cgi?id=28710 for more information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173015</commentid>
    <comment_count>2</comment_count>
      <attachid>45117</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-12-17 18:30:51 -0800</bug_when>
    <thetext>Created attachment 45117
copying a link inside a table cell causes an assertion failure

It turned out that this assertion fails when a link inside a table cell is copied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935979</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-02-22 15:02:46 -0800</bug_when>
    <thetext>I am not able to get assert in DEBUG build on WebKit ToT (260689@main) on both WK1 and WK2 window and tried to copy link just Maps and also full link and link with text as well and no assert.

Do we need to track it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2005952</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2024-01-18 13:39:53 -0800</bug_when>
    <thetext>&lt;rdar://7469282&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45117</attachid>
            <date>2009-12-17 18:30:51 -0800</date>
            <delta_ts>2009-12-17 18:30:51 -0800</delta_ts>
            <desc>copying a link inside a table cell causes an assertion failure</desc>
            <filename>32525.html</filename>
            <type>text/html</type>
            <size>152</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8dGFibGU+PHRyPjx0ZD5QdXQgPGEgaHJlZj1odHRwOi8vd3d3Lmdvb2ds
ZS5jb20vbG9jYWwvYWRkP2hsPWVuJmdsPXVzPnlvdXIgYnVzaW5lc3Mgb24gR29vZ2xlIE1hcHM8
L2E+PC90ZD48L3RyPjwvdGFibGU+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>