@@ -19,11 +19,10 @@ private class CustomUrlRemoteFlowSource extends SourceModelCsv {
1919 // Use dictionary value contents when available.
2020 // ";UIApplicationDelegate;true;application(_:didFinishLaunchingWithOptions:);;;Parameter[1].MapValue;remote",
2121 // ";UIApplicationDelegate;true;application(_:willFinishLaunchingWithOptions:);;;Parameter[1].MapValue;remote"
22- // TODO 2: MaD doesn't seem to take into account extensions adopting to protocols even if the subtypes column is set to true.
23- // ";UIWindowSceneDelegate;true;scene(_:continue:);;;Parameter[1];remote",
24- // ";UIWindowSceneDelegate;true;scene(_:didUpdate:);;;Parameter[1];remote",
25- // ";UIWindowSceneDelegate;true;scene(_:openURLContexts:);;;Parameter[1];remote",
26- // ";UIWindowSceneDelegate;true;scene(_:willConnectTo:options:);;;Parameter[2];remote"
22+ ";UISceneDelegate;true;scene(_:continue:);;;Parameter[1];remote" ,
23+ ";UISceneDelegate;true;scene(_:didUpdate:);;;Parameter[1];remote" ,
24+ ";UISceneDelegate;true;scene(_:openURLContexts:);;;Parameter[1];remote" ,
25+ ";UISceneDelegate;true;scene(_:willConnectTo:options:);;;Parameter[2];remote"
2726 ]
2827 }
2928}
@@ -63,40 +62,6 @@ private class LaunchOptionsUrlVarDecl extends VarDecl {
6362 }
6463}
6564
66- /** A type or extension declaration adopting the protocol `UISceneDelegate`. */
67- private class AdoptingUiSceneDelegate extends Decl {
68- AdoptingUiSceneDelegate ( ) {
69- exists ( ProtocolDecl delegate |
70- this .( ExtensionDecl ) .getAProtocol ( ) .getABaseTypeDecl * ( ) = delegate or
71- this .( ClassOrStructDecl ) .getABaseTypeDecl * ( ) = delegate
72- |
73- delegate .getName ( ) = "UISceneDelegate"
74- )
75- }
76- }
77-
78- /**
79- * An `OpenURLContexts`, `NSUserActivity`, or `ConnectionOptions` parameter of a `scene` method
80- * declared in a type adopting `UISceneDelegate`.
81- */
82- // This is a temporary workaround until the TODO 2 above is addressed.
83- private class UiSceneDelegateSource extends RemoteFlowSource {
84- UiSceneDelegateSource ( ) {
85- exists ( FuncDecl f , ParamDecl p , AdoptingUiSceneDelegate d |
86- f .getName ( ) = "scene(_:" + [ "continue" , "didUpdate" , "openURLContexts" ] + ":)" and
87- p = f .getParam ( 1 )
88- or
89- f .getName ( ) = "scene(_:willConnectTo:options:)" and
90- p = f .getParam ( 2 )
91- |
92- f .getEnclosingDecl ( ) = d and
93- this .( DataFlow:: ParameterNode ) .getParameter ( ) = p
94- )
95- }
96-
97- override string getSourceType ( ) { result = "Remote data in UIWindowSceneDelegate.scene" }
98- }
99-
10065/**
10166 * A content implying that, if a `UIOpenURLContext` is tainted, then its field `url` is also tainted.
10267 */
0 commit comments