Bug 52524

Summary: fast/dom/Range/range-clone-contents.html fails only on Windows
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: CLOSED FIXED    
Severity: Normal CC: adele, ap, aroben, bweinstein, commit-queue, enrica, jberlin
Priority: P1 Keywords: InRadar, LayoutTestFailure
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Bug Depends on: 52512    
Bug Blocks:    
Attachments:
Description Flags
Patch to try
none
Unskip the test none

Description David Kilzer (:ddkilzer) 2011-01-15 18:07:22 PST
LayoutTests/fast/dom/Range/range-clone-contents.html only fails on Windows bots.

It would be interesting to know if disabling optimization on WebCore/dom/Range.cpp affects the results of the test.  The Range::processContents() method reuses a lot of variables, also shadows many variables, and uses multiple variables within for() loop conditions.
Comment 1 David Kilzer (:ddkilzer) 2011-01-15 18:15:44 PST
Added the test to the Windows skip list:

Committed r75889.  <http://trac.webkit.org/changeset/75889>
Comment 2 David Kilzer (:ddkilzer) 2011-01-15 18:17:48 PST
<rdar://problem/8870569>
Comment 3 David Kilzer (:ddkilzer) 2011-01-16 06:45:04 PST
Brian/Adam: Are there any known issues where DOMAllInOne.cpp isn't always rebuilt properly for Windows if one of its constituent files is changed?
Comment 4 Adele Peterson 2011-01-16 11:55:10 PST
Does anyone on Windows see this failure in their local build?
Comment 5 David Kilzer (:ddkilzer) 2011-01-16 14:48:30 PST
Created attachment 79114 [details]
Patch to try

Patch to try if there is a codegen issue with MSVC compiler.
Comment 6 Adam Roben (:aroben) 2011-01-17 05:36:41 PST
(In reply to comment #3)
> Brian/Adam: Are there any known issues where DOMAllInOne.cpp isn't always rebuilt properly for Windows if one of its constituent files is changed?

I don't know of any such issues.
Comment 7 Adam Roben (:aroben) 2011-01-17 05:37:04 PST
A link to the failure diff would be handy.
Comment 8 David Kilzer (:ddkilzer) 2011-01-17 07:53:52 PST
(In reply to comment #7)
> A link to the failure diff would be handy.

Here are links to the failure diffs from Bug 52512 Comment #7:

Windows 7 Release bot:  <http://build.webkit.org/results/Windows%207%20Release%20(Tests)/r75882%20(8257)/fast/dom/Range/range-clone-contents-pretty-diff.html>

Windows XP Debug bot:  <http://build.webkit.org/results/Windows%20XP%20Debug%20(Tests)/r75882%20(24216)/fast/dom/Range/range-clone-contents-pretty-diff.html>
Comment 9 Adam Roben (:aroben) 2011-01-17 08:11:37 PST
(In reply to comment #8)
> (In reply to comment #7)
> > A link to the failure diff would be handy.
> 
> Here are links to the failure diffs from Bug 52512 Comment #7:

Thanks! FYI, our standard procedure in cases like this (where the test is just failing, as opposed to crashing or timing out) is to check in platform-specific results that reflect the current behavior, rather than skipping the test.
Comment 11 David Kilzer (:ddkilzer) 2011-01-17 11:04:33 PST
A local Release build of WebKit r75949 on Windows XP shows that fast/dom/Range/range-clone-contents.html passes.

This appears to be an issue with needing a clean build on the Windows buildbots.  However, I'll wait for independent verification from another source before removing the test from the Skipped list.
Comment 12 David Kilzer (:ddkilzer) 2011-01-17 11:29:40 PST
Created attachment 79192 [details]
Unskip the test
Comment 13 WebKit Commit Bot 2011-01-17 13:17:04 PST
Comment on attachment 79192 [details]
Unskip the test

Clearing flags on attachment: 79192

Committed r75970: <http://trac.webkit.org/changeset/75970>
Comment 14 WebKit Commit Bot 2011-01-17 13:17:09 PST
All reviewed patches have been landed.  Closing bug.
Comment 15 David Kilzer (:ddkilzer) 2011-01-17 14:05:50 PST
(In reply to comment #13)
> (From update of attachment 79192 [details])
> Clearing flags on attachment: 79192
> 
> Committed r75970: <http://trac.webkit.org/changeset/75970>

Windows 7 Release tests for r75970:
<http://build.webkit.org/builders/Windows%207%20Release%20%28Tests%29/builds/8298>

Windows XP Debug tests for r75970:
<http://build.webkit.org/builders/Windows%20XP%20Debug%20%28Tests%29/builds/24245>

The new test now passes.