<?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>30812</bug_id>
          
          <creation_ts>2009-10-27 02:53:07 -0700</creation_ts>
          <short_desc>[Regression 50090] Windows and Qt fail new editing/style/remove-nested-inline-styles.html test</short_desc>
          <delta_ts>2009-10-28 10:33:23 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>30784</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adele</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>158131</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-27 02:53:07 -0700</bug_when>
    <thetext>Windows and Qt fail new editing/style/remove-nested-inline-styles.html test

http://build.webkit.org/results/Windows%20Release%20(Tests)/r50133%20(5506)/editing/style/remove-nested-inline-styles-pretty-diff.html
http://build.webkit.org/results/Qt%20Linux%20Release/r50134%20(3134)/editing/style/remove-nested-inline-styles-pretty-diff.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158282</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-10-27 11:32:03 -0700</bug_when>
    <thetext>This is due to the bug 30784.  My patch for 30784 (which has been r- for various reasons) should also fix this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158286</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-10-27 11:38:11 -0700</bug_when>
    <thetext>To clarify, on very platform except Mac, executeToggleStyle will check if the entire selection has the specified style.  But because of the bug 30784 (nested b&apos;tag result in tri state of false), the selectionHasStyle returns false in Windows and Qt platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158290</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-27 11:41:11 -0700</bug_when>
    <thetext>So what&apos;s your suggestion for how we should resolve this?  We can&apos;t leave tests red on the bots. :(

Do Windows/Qt need platform-specific results?  Should the &quot;failing&quot; section of the test be split out into a mac-only test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158315</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-10-27 12:28:37 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; So what&apos;s your suggestion for how we should resolve this?  We can&apos;t leave tests
&gt; red on the bots. :(
&gt; 
&gt; Do Windows/Qt need platform-specific results?  Should the &quot;failing&quot; section of
&gt; the test be split out into a mac-only test?

I have fixed my patch for the bug 30784.  Could you take a look?  This should fix Windows build unless I misunderstood the problem and I&apos;m not reproducing the error properly.

Around L166 of EditorCommand.cpp inside executeToggleStyle, there is a if-statement that changes behavior for Mac.  I have confirmed that this bug is demonstrated when I forced to run the statement in else clause, and is fixed with my patch.  I&apos;d like to confirm this on Windows but unfortunately, I don&apos;t have access to Windows machine with WebKit check out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158631</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-10-28 10:33:23 -0700</bug_when>
    <thetext>This regression has been fixed in http://trac.webkit.org/changeset/50172.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>