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".
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".
Created attachment 17836 [details] patch
Comment on attachment 17836 [details] patch Beautiful as always. r=me
Committed revision 28609.