[DTPPCPSDK-1334] feat: add isWebView check to supportsPopups #112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added isWebView() check to supportsPopups(), so new user agents for WebView which contains 'wv' will not support pop-ups.
Added all UA Strings to the test file.
UA does NOT support popup:
![Screenshot 2023-10-24 at 8 59 25 PM](https://private-user-images.githubusercontent.com/31012905/278072094-c125f58f-5dd5-4c2d-be38-19d9d63a7ea8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2NzM5OTMsIm5iZiI6MTcxODY3MzY5MywicGF0aCI6Ii8zMTAxMjkwNS8yNzgwNzIwOTQtYzEyNWY1OGYtNWRkNS00YzJkLWJlMzgtMTlkOWQ2M2E3ZWE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDAxMjEzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzOTE5MzBmNGJlN2VkYjE2Mjg1NGMyZWE0YjllNTAxZjZlMWU1MDMwNjlmOGIzZWJhMGI0NTUzODg2YTA4Y2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4WjvJW1jvPax-4OAR-LXr2VVD6kE7UJls9cL2vsYTO0)
dkdfsna/5.25.638 Dalvik/2.1.0 (Linux; U; Android 13; SM-S908U1 Build/TP1A.220624.014; wv )
UA supports popup :
![Screenshot 2023-10-24 at 9 01 00 PM](https://private-user-images.githubusercontent.com/31012905/278072114-027e76ba-9727-4885-8c85-d4b7484cf028.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2NzM5OTMsIm5iZiI6MTcxODY3MzY5MywicGF0aCI6Ii8zMTAxMjkwNS8yNzgwNzIxMTQtMDI3ZTc2YmEtOTcyNy00ODg1LThjODUtZDRiNzQ4NGNmMDI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDAxMjEzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5ZTRjMjM5ZWQ0YmJhODRjYzE5OGMzY2NhODIzM2MwZTliYzk5ZjNjOGRiMGM4N2NkMTcxOTg4NjliY2E4YzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nFmPICV-Aj28X_M5X5HsJMUToMQU28pDodb9pVDus6o)
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1