remove KeySourceModel at openPage action level
This commit is contained in:
parent
773410168c
commit
56bdbb49d7
@ -35,6 +35,16 @@
|
|||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)openPageAction:(NSDictionary *)actionInformation additionalData:(NSDictionary *)additionalData delegateObject:(DelegateObject *)delegateObject {
|
||||||
|
// Cleanup the source model data to prevent it from being accidentally auto-forwarded in openPage network requests by blind additionalData insertions. (https://onejira.verizon.com/browse/CXTDT-135642, https://onejira.verizon.com/browse/CXTDT-136001).
|
||||||
|
if (additionalData[KeySourceModel]) {
|
||||||
|
NSMutableDictionary *cleanedData = [additionalData mutableCopy];
|
||||||
|
[cleanedData removeObjectForKey:KeySourceModel];
|
||||||
|
additionalData = cleanedData;
|
||||||
|
}
|
||||||
|
[super openPageAction:actionInformation additionalData:additionalData delegateObject:delegateObject];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)popupAction:(nullable NSDictionary *)actionInformation additionalData:(nullable NSDictionary *)additionalData delegateObject:(nullable DelegateObject *)delegateObject {
|
- (void)popupAction:(nullable NSDictionary *)actionInformation additionalData:(nullable NSDictionary *)additionalData delegateObject:(nullable DelegateObject *)delegateObject {
|
||||||
// Perform a popup.
|
// Perform a popup.
|
||||||
NSString *pageTypeForPopup = [actionInformation stringForKey:KeyPageType];
|
NSString *pageTypeForPopup = [actionInformation stringForKey:KeyPageType];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user