[Webkit-unassigned] [Bug 67154] New: UIWebView: Inconsistent Regular Expression Processing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 29 14:31:01 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=67154
Summary: UIWebView: Inconsistent Regular Expression Processing
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Other
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: webkit at mdakin.mailcan.com
Created an attachment (id=105522)
--> (https://bugs.webkit.org/attachment.cgi?id=105522&action=review)
Contains test HTML and Screenshots of output.
Elias Zamaria has discovered a bug in the regular-expression processing of the webkit that runs inside the UIWebView on an iPhone 4 running iOS 4.3.3 (8J2). The user-agent string of such a UIWebView is:
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8J2
The bug presents in the following manner:
iOS 4.3.3 UIWebView: PRESENTS: iOS-4_3_3-UIWebView.png
iOS 4.3.3 Safari: DOES NOT PRESENT: iOS-4_3_3-Safari.png
MacOS Safari 5.1 (6534.50): DOES NOT PRESENT: MacOS-Safari-5_1.jpg
We believe the iOS 4.3.3 UIWebView case to be INCORRECT output. Whereas the other cases are correct.
Steps to reproduce:
Load http://eliasz.net/regexTest.html using a UIWebView.
Alternatively, regexTest.html can be found in the zipfile attached to this bug.
To be explicit, the test code is this:
<!DOCTYPE html>
<html><head>
<title>regex test</title>
</head>
<body>
<div id="test"></div>
<script>document.getElementById("test").innerText = "stuff/oldSubstr".replace(/[^\/]*?$/, "replacement");</script>
</body></html>
It is expected that "oldSubstr" be replaced with "replacement." This does not happen in the UIWebView case (the replacement string is instead appended to the end).
All of the above-mentioned files have all been incorporated into the attached regexTest.zip.
Could this bug be related to:
https://bugs.webkit.org/show_bug.cgi?id=23121
?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list