@@ -19,11 +19,10 @@ private class CustomUrlRemoteFlowSource extends SourceModelCsv {
19
19
// Use dictionary value contents when available.
20
20
// ";UIApplicationDelegate;true;application(_:didFinishLaunchingWithOptions:);;;Parameter[1].MapValue;remote",
21
21
// ";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"
27
26
]
28
27
}
29
28
}
@@ -63,40 +62,6 @@ private class LaunchOptionsUrlVarDecl extends VarDecl {
63
62
}
64
63
}
65
64
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
-
100
65
/**
101
66
* A content implying that, if a `UIOpenURLContext` is tainted, then its field `url` is also tainted.
102
67
*/
0 commit comments