Bug 16379 - REGRESSION(r28525): Failures in http/tests/xmlhttprequest/response-encoding.html and fast/dom/xmlhttprequest-html-response-encoding.html
Summary: REGRESSION(r28525): Failures in http/tests/xmlhttprequest/response-encoding.h...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Darin Adler
URL:
Keywords: LayoutTestFailure, Regression
Depends on:
Blocks:
 
Reported: 2007-12-10 06:25 PST by Mark Rowe (bdash)
Modified: 2007-12-10 22:09 PST (History)
2 users (show)

See Also:


Attachments
patch (9.26 KB, patch)
2007-12-10 21:10 PST, Darin Adler
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Rowe (bdash) 2007-12-10 06:25:55 PST
http/tests/xmlhttprequest/response-encoding.html and fast/dom/xmlhttprequest-html-response-encoding.html started failing after r28525.  As of r28581 they are still failing.

A reduction is:
print("foo<body>bar</body>baz".replace(/.*<body>(.*)<\/body>.*/, "$1") == "bar");

With Safari 3 this displays true, but with TOT it displays false as it evaluates to "fbar" rather than "bar".
Comment 1 Mark Rowe (bdash) 2007-12-10 06:30:06 PST
A clearer reduction is the following:
"foo<body>bar</body>baz".replace(/.*<body>(.*)<\/body>.*/, "")

This should evaluate to the empty string, but is currently evaluating to "f".
Comment 2 Darin Adler 2007-12-10 21:10:30 PST
Created attachment 17836 [details]
patch
Comment 3 Sam Weinig 2007-12-10 21:52:13 PST
Comment on attachment 17836 [details]
patch

Beautiful as always.  r=me
Comment 4 Darin Adler 2007-12-10 22:09:02 PST
Committed revision 28609.