Changeset 189768 in webkit


Ignore:
Timestamp:
Sep 14, 2015, 6:21:54 PM (10 years ago)
Author:
mmaxfield@apple.com
Message:

WebKitTestRunner declarative language setting is broken for iOS
https://bugs.webkit.org/show_bug.cgi?id=149119

Unreviewed.

Tools:

In all of the patches on webkit.org/b/189669, my patch to get this working on iOS was
lost in the final version which got committed. This simply implements the existing
OS X behavior on iOS.

  • WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm:

(WTR::InjectedBundle::platformInitialize):

LayoutTests:

  • platform/ios-simulator/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r189765 r189768  
     12015-09-14  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        WebKitTestRunner declarative language setting is broken for iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=149119
     5
     6        Unreviewed.
     7
     8        * platform/ios-simulator/TestExpectations:
     9
    1102015-09-14  Chris Dumez  <cdumez@apple.com>
    211
  • trunk/LayoutTests/platform/ios-simulator/TestExpectations

    r189742 r189768  
    28162816# -webkit-flex off-by-one px
    28172817webkit.org/b/126898 css3/flexbox/image-percent-max-height.html [ ImageOnlyFailure ]
    2818 
    2819 # WebKitTestRunner declarative language setting is broken for iOS
    2820 webkit.org/b/149119 fast/text/international/system-language [ Skip ]
  • trunk/Tools/ChangeLog

    r189767 r189768  
     12015-09-14  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        WebKitTestRunner declarative language setting is broken for iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=149119
     5
     6        Unreviewed.
     7
     8        In all of the patches on webkit.org/b/189669, my patch to get this working on iOS was
     9        lost in the final version which got committed. This simply implements the existing
     10        OS X behavior on iOS.
     11
     12        * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm:
     13        (WTR::InjectedBundle::platformInitialize):
     14
    1152015-09-14  Dewei Zhu  <dewei_zhu@apple.com>
    216
  • trunk/Tools/WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm

    r181677 r189768  
    3636void InjectedBundle::platformInitialize(WKTypeRef)
    3737{
    38     NSDictionary *dict = [NSDictionary dictionary];
     38    // Language was set up earlier in main(). Don't clobber it.
     39    NSArray *languages = [[[NSUserDefaults standardUserDefaults] volatileDomainForName:NSArgumentDomain] valueForKey:@"AppleLanguages"];
    3940
    40     [[NSUserDefaults standardUserDefaults] setVolatileDomain:dict forName:NSArgumentDomain];
     41    RetainPtr<NSMutableDictionary *> dict = adoptNS([[NSMutableDictionary alloc] init]);
     42    if (languages)
     43        [dict setObject:languages forKey:@"AppleLanguages"];
     44
     45    [[NSUserDefaults standardUserDefaults] setVolatileDomain:dict.get() forName:NSArgumentDomain];
    4146
    4247    [NSURLRequest setAllowsAnyHTTPSCertificate:YES forHost:@"localhost"];
Note: See TracChangeset for help on using the changeset viewer.