Skip to content

Port MASTG-TEST-0027: Testing for URL Loading in WebViews (android) #3061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

TheDauntless
Copy link
Collaborator

If your PR is related to an issue. Please end your PR test with the following line:
This PR closes #2993

@cpholguera cpholguera changed the title Refactor of WebView URL Loading Port MASTG-TEST-0027 Nov 7, 2024
@cpholguera
Copy link
Collaborator

cpholguera commented Nov 7, 2024

@TheDauntless please check the spell checker errors and remember to deprecate the old test and add also the covered_by field

example:

status: deprecated
covered_by: [MASTG-TEST-0203, MASTG-TEST-0x03]

@TheDauntless
Copy link
Collaborator Author

Good catch. Please review again :)

- The `WebViewClient` is missing the `shouldOverrideUrlLoading` or `shouldInterceptRequest` handlers
- The `shouldOverrideUrlLoading` or `shouldInterceptRequest` handlers do not correctly prevent untrusted data from being loaded in the `WebView`

If the `WebView` does not have a custom `WebViewClient`, then any navigation event will automatically trigger the default browser.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure the last sentence is needed, since the test case is only for webviews with custom clients?

@cpholguera cpholguera changed the title Port MASTG-TEST-0027 Port MASTG-TEST-0027: Testing for URL Loading in WebViews (android) Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MASTG v1->v2 MASTG-TEST-0027: Testing for URL Loading in WebViews (android)
3 participants