<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>191148</bug_id>
          
          <creation_ts>2018-11-01 05:46:09 -0700</creation_ts>
          <short_desc>Build error with deprecated init function in MockLocalConnection.mm when unified sources rotate</short_desc>
          <delta_ts>2018-11-23 02:21:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>189279</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alex.gaynor</cc>
    
    <cc>cdumez</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>lforschler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1474074</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2018-11-01 05:46:09 -0700</bug_when>
    <thetext>When UIProcess/WebAuthentication/Mock/MockLocalConnection.mm is moved from the unified group

UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm
UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm
UIProcess/RemoteLayerTree/ios/ScrollingTreeOverflowScrollingNodeIOS.mm
UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm
UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm
UIProcess/WebAuthentication/Cocoa/LocalConnection.mm
UIProcess/WebAuthentication/Cocoa/LocalService.mm

to

UIProcess/WebStorage/ios/LocalStorageDatabaseTrackerIOS.mm
UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
UIProcess/ios/DragDropInteractionState.mm
UIProcess/ios/InputViewUpdateDeferrer.mm
UIProcess/ios/LayerRepresentation.mm
UIProcess/ios/PageClientImplIOS.mm
UIProcess/ios/ProcessAssertionIOS.mm

we obtain the following build error/warning on macOS:

/Users/fred/WebKit/Source/WebKit/UIProcess/WebAuthentication/Mock/MockLocalConnection.mm:66:70: error: 
      &apos;init&apos; is deprecated: first deprecated in macOS 10.12 - Use
      initWithActivityType: with a specific activity type string
      [-Werror,-Wdeprecated-declarations]
        callback(UserConsent::Yes, adoptNS([allocLAContextInstance() ini...
                                                                     ^
In file included from /Users/fred/WebKit/WebKitBuild/Debug/DerivedSources/WebKit2/unified-sources/UnifiedSource30-mm.mm:1:
In file included from /Users/fred/WebKit/Source/WebKit/WebKit2Prefix.h:49:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:127:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserActivity.h:28:1: note: 
      &apos;init&apos; has been explicitly marked deprecated here
- (instancetype)init API_DEPRECATED(&quot;Use initWithActivityType: with a sp...
^
1 error generated.

Or on iOS:

In file included from /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/DerivedSources/WebKit2/unified-sources/UnifiedSource30-mm.mm:1:
/Users/fred/WebKit/Source/WebKit/UIProcess/WebAuthentication/Mock/MockLocalConnection.mm:66:70: error: 
      &apos;init&apos; is deprecated: first deprecated in iOS 12.0 - Use
      -initRequiringSecureCoding: instead [-Werror,-Wdeprecated-declarations]
        callback(UserConsent::Yes, adoptNS([allocLAContextInstance() ini...
                                                                     ^
In file included from /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/DerivedSources/WebKit2/unified-sources/UnifiedSource30-mm.mm:1:
In file included from /Users/fred/WebKit/Source/WebKit/WebKit2Prefix.h:49:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:48:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h:63:1: note: 
      &apos;init&apos; has been explicitly marked deprecated here
- (instancetype)init API_DEPRECATED(&quot;Use -initRequiringSecureCoding: ins...
^
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1481029</commentid>
    <comment_count>1</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2018-11-22 15:12:52 -0800</bug_when>
    <thetext>(In reply to Frédéric Wang (:fredw) from comment #0)
&gt; When UIProcess/WebAuthentication/Mock/MockLocalConnection.mm is moved from
&gt; the unified group
&gt; 
&gt; UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm
&gt; UIProcess/RemoteLayerTree/ios/RemoteScrollingCoordinatorProxyIOS.mm
&gt; UIProcess/RemoteLayerTree/ios/ScrollingTreeOverflowScrollingNodeIOS.mm
&gt; UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm
&gt; UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm
&gt; UIProcess/WebAuthentication/Cocoa/LocalConnection.mm
&gt; UIProcess/WebAuthentication/Cocoa/LocalService.mm
&gt; 
&gt; to
&gt; 
&gt; UIProcess/WebStorage/ios/LocalStorageDatabaseTrackerIOS.mm
&gt; UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
&gt; UIProcess/ios/DragDropInteractionState.mm
&gt; UIProcess/ios/InputViewUpdateDeferrer.mm
&gt; UIProcess/ios/LayerRepresentation.mm
&gt; UIProcess/ios/PageClientImplIOS.mm
&gt; UIProcess/ios/ProcessAssertionIOS.mm
&gt; 
&gt; we obtain the following build error/warning on macOS:
&gt; 
&gt; /Users/fred/WebKit/Source/WebKit/UIProcess/WebAuthentication/Mock/
&gt; MockLocalConnection.mm:66:70: error: 
&gt;       &apos;init&apos; is deprecated: first deprecated in macOS 10.12 - Use
&gt;       initWithActivityType: with a specific activity type string
&gt;       [-Werror,-Wdeprecated-declarations]
&gt;         callback(UserConsent::Yes, adoptNS([allocLAContextInstance() ini...
&gt;                                                                      ^
&gt; In file included from
&gt; /Users/fred/WebKit/WebKitBuild/Debug/DerivedSources/WebKit2/unified-sources/
&gt; UnifiedSource30-mm.mm:1:
&gt; In file included from /Users/fred/WebKit/Source/WebKit/WebKit2Prefix.h:49:
&gt; In file included from
&gt; /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
&gt; Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.
&gt; framework/Headers/Foundation.h:127:
&gt; /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
&gt; Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.
&gt; framework/Headers/NSUserActivity.h:28:1: note: 
&gt;       &apos;init&apos; has been explicitly marked deprecated here
&gt; - (instancetype)init API_DEPRECATED(&quot;Use initWithActivityType: with a sp...
&gt; ^
&gt; 1 error generated.
&gt; 
&gt; Or on iOS:
&gt; 
&gt; In file included from
&gt; /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/DerivedSources/WebKit2/
&gt; unified-sources/UnifiedSource30-mm.mm:1:
&gt; /Users/fred/WebKit/Source/WebKit/UIProcess/WebAuthentication/Mock/
&gt; MockLocalConnection.mm:66:70: error: 
&gt;       &apos;init&apos; is deprecated: first deprecated in iOS 12.0 - Use
&gt;       -initRequiringSecureCoding: instead [-Werror,-Wdeprecated-declarations]
&gt;         callback(UserConsent::Yes, adoptNS([allocLAContextInstance() ini...
&gt;                                                                      ^
&gt; In file included from
&gt; /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/DerivedSources/WebKit2/
&gt; unified-sources/UnifiedSource30-mm.mm:1:
&gt; In file included from /Users/fred/WebKit/Source/WebKit/WebKit2Prefix.h:49:
&gt; In file included from
&gt; /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.
&gt; platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/
&gt; Foundation.framework/Headers/Foundation.h:48:
&gt; /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.
&gt; platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/
&gt; Foundation.framework/Headers/NSKeyedArchiver.h:63:1: note: 
&gt;       &apos;init&apos; has been explicitly marked deprecated here
&gt; - (instancetype)init API_DEPRECATED(&quot;Use -initRequiringSecureCoding: ins...
&gt; ^
&gt; 1 error generated.

Please retry it once again on ToT. This should be fixed by r238166.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1481090</commentid>
    <comment_count>2</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2018-11-23 02:21:25 -0800</bug_when>
    <thetext>(In reply to Jiewen Tan from comment #1)
&gt; Please retry it once again on ToT. This should be fixed by r238166.

OK, it&apos;s not obvious how that could fix it to me, but I&apos;ve not been able to reproduce the issue with the patch I was relying on so I guess we can close this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>