Bug 30811 - REGRESSION(49818): Tiger fails new fast/js/navigator-language.html test
Summary: REGRESSION(49818): Tiger fails new fast/js/navigator-language.html test
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 02:50 PDT by Eric Seidel (no email)
Modified: 2009-10-28 10:24 PDT (History)
3 users (show)

See Also:


Attachments
fix regression (1.18 KB, patch)
2009-10-28 07:04 PDT, Chang Shu
eric: review-
commit-queue: commit-queue-
Details | Formatted Diff | Diff
fix result content (1.20 KB, patch)
2009-10-28 09:57 PDT, Chang Shu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-10-27 02:50:42 PDT
http://build.webkit.org/results/Tiger%20Intel%20Release/r50133%20(5583)/results.html
http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/navigator-language.html

Tiger returns "en" instead of "en-us" as expected.  We could fix the Tiger codepath, or easier would be to just update the Tiger results.
Comment 1 Eric Seidel (no email) 2009-10-27 17:26:08 PDT
http://trac.webkit.org/changeset/49818
Comment 2 Eric Seidel (no email) 2009-10-27 17:47:30 PDT
Here is the file for the mac:
http://trac.webkit.org/browser/trunk/WebCore/platform/mac/Language.mm

The implementation is in WebKit:
http://trac.webkit.org/browser/trunk/WebKit/mac/WebCoreSupport/WebViewFactory.mm#L129

Which calls through to here:
http://trac.webkit.org/browser/trunk/WebKit/mac/Misc/WebNSUserDefaultsExtras.m

I'm not sure what part of that ends up different on Tiger though.  None of it is special-cased for Tiger.

It's possible that "WKCopyCFLocalizationPreferredName" has a special Tiger implementation and thus is the root of the difference here.

Again, for now I think we should just check in the "failing" result for Tiger.
Comment 3 Eric Seidel (no email) 2009-10-27 17:49:29 PDT
Really someone at Apple should confirm that we don't care about Tiger being different here.  I expect we don't.
Comment 4 Chang Shu 2009-10-28 06:23:20 PDT
(In reply to comment #3)
> Really someone at Apple should confirm that we don't care about Tiger being
> different here.  I expect we don't.

Eric, I can add the special expected result for Tiger.
Comment 5 Chang Shu 2009-10-28 07:04:03 PDT
Created attachment 42025 [details]
fix regression
Comment 6 WebKit Commit Bot 2009-10-28 09:35:35 PDT
Comment on attachment 42025 [details]
fix regression

Rejecting patch 42025 from commit-queue.

Chang.Shu@nokia.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/committers.py.
Comment 7 Eric Seidel (no email) 2009-10-28 09:48:37 PDT
Comment on attachment 42025 [details]
fix regression

This result looks wrong?  I don't see how Tiger would produce this result.  It's going to say FAIL instead of PASS.  You should pull the result off the tiger bot instead of creating it by hand.
http://build.webkit.org/results/Tiger%20Intel%20Release/r50217%20(5641)/fast/js/navigator-language-actual.txt
Comment 8 Chang Shu 2009-10-28 09:51:35 PDT
(In reply to comment #7)
> (From update of attachment 42025 [details])
> This result looks wrong?  I don't see how Tiger would produce this result. 
> It's going to say FAIL instead of PASS.  You should pull the result off the
> tiger bot instead of creating it by hand.
> http://build.webkit.org/results/Tiger%20Intel%20Release/r50217%20(5641)/fast/js/navigator-language-actual.txt

You are right, Eric. Thanks!
Comment 9 Chang Shu 2009-10-28 09:57:23 PDT
Created attachment 42040 [details]
fix result content
Comment 10 Eric Seidel (no email) 2009-10-28 09:59:53 PDT
Comment on attachment 42040 [details]
fix result content

LGTM.  The commit-queue will close the bug.  I'm not sure if we need a bug open about tiger's misbehavior here or not.  I guess I'll assume not for now.  If one of the apple folks feels otherwise they should feel free to re-open.
Comment 11 Eric Seidel (no email) 2009-10-28 10:00:29 PDT
Thank you very much for taking care of this Chang.
Comment 12 WebKit Commit Bot 2009-10-28 10:10:15 PDT
Comment on attachment 42040 [details]
fix result content

Clearing flags on attachment: 42040

Committed r50223: <http://trac.webkit.org/changeset/50223>
Comment 13 WebKit Commit Bot 2009-10-28 10:10:24 PDT
All reviewed patches have been landed.  Closing bug.
Comment 14 Chang Shu 2009-10-28 10:24:13 PDT
(In reply to comment #11)
> Thank you very much for taking care of this Chang.

My pleasure. I usually panic when I see my patches cause regression. :)