Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display warning page for malicious sites (#5416)
Task/Issue URL: https://app.asana.com/0/72649045549333/1208836754662807/f ### Description ### Steps to test this PR _Pre-requisites_ - [ ] Enable maliciousSiteProtection and enableMaliciousSiteProtection RC flags _Feature 1_ - [ ] Open https://privacy-test-pages.site/security/badware/, check snackbar isn't shown - [ ] Check a Snackbar informing of a malicious site is shown for the following tests - [ ] [Standard Phishing Test](https://privacy-test-pages.site/security/badware/phishing.html) - [ ] [Standard Malware Test](https://privacy-test-pages.site/security/badware/malware.html) - [ ] [Phishing iFrame Loader](https://privacy-test-pages.site/security/badware/phishing-iframe-loader.html) - [ ] [Phishing JS Redirector (Direct)](https://privacy-test-pages.site/security/badware/phishing-js-redirector-helper.html) - [ ] [Phishing JS Redirector (Indirect)](https://privacy-test-pages.site/security/badware/phishing-js-redirector.html) - [ ] [Phishing Legit iFrame Loader](https://privacy-test-pages.site/security/badware/phishing-legit-iframe-loader.html) - [ ] [Phishing Redirect via Meta Refresh (Not Flagged in Dataset)](https://privacy-test-pages.site/security/badware/phishing-meta-redirect-clean.html) - [ ] [Phishing Redirect via Meta Refresh (Flagged in Dataset)](https://privacy-test-pages.site/security/badware/phishing-meta-redirect.html) - [ ] [Phishing Open via Popups](https://privacy-test-pages.site/security/badware/phishing-popups.html) - [ ] [Phishing Opening with URL Tampering](https://privacy-test-pages.site/security/badware/phishing-url-tampering.html) - [ ] [Phishing Form Submission](https://privacy-test-pages.site/security/badware/phishing-form-submission.html) -> Submit form - [ ] [Phishing Service Worker](https://privacy-test-pages.site/security/badware/phishing-service-worker.html) - Only navigate, not fetch - [ ] [HTTP 301 Redirect to Main Phishing Test Page](https://privacy-test-pages.site/security/badware/phishing-redirect/) - [ ] [HTTP 302 Redirect to Main Phishing Test Page](https://privacy-test-pages.site/security/badware/phishing-redirect/302) - [ ] [HTTP Redirect to Phishing JS Redirector (Indirect)](https://privacy-test-pages.site/security/badware/phishing-redirect/js) - [ ] [HTTP Redirect to Phishing JS Redirector (Direct)](https://privacy-test-pages.site/security/badware/phishing-redirect/js2) - [ ] [HTTP Redirect to Phishing iFrame Loader](https://privacy-test-pages.site/security/badware/phishing-redirect/iframe) - [ ] [HTTP Redirect to Clean Meta Refresh Redirector](https://privacy-test-pages.site/security/badware/phishing-redirect/meta) - [ ] [HTTP Redirect to Flagged Meta Refresh Redirector](https://privacy-test-pages.site/security/badware/phishing-redirect/meta2) _Feature 2_ - [x] Open [Standard Phishing Test](https://privacy-test-pages.site/security/badware/phishing.html) - [x] Wait for the error page to show - [ ] Check the globe icon is shown instead of privacy shield. Known issue, will be addressed as a follow-up. See https://app.asana.com/0/0/1209270355529416/f - [x] Tap on the omnibar and load the same page again - [x] Check the error is shown again _Feature 3_ - [x] Open wikipedia - [x] On the same tab, navigate to [Standard Phishing Test](https://privacy-test-pages.site/security/badware/phishing.html) - [x] Wait for the error page to show - [x] Tap on the omnibar and load the same page again - [x] Check the error is shown again _Feature 4_ - [x] Open [Standard Phishing Test](https://privacy-test-pages.site/security/badware/phishing.html) - [x] Wait for the error page to show - [x] Tap on the omnibar and navigate to a different site - [x] Check navigation is performed normally _Feature 5_ - [x] Open [Standard Phishing Test](https://privacy-test-pages.site/security/badware/phishing.html) - [x] Wait for the error page to show - [x] Tap on "Leave This Site" - [x] Check current tab is closed and a new one is opened _Feature 6_ - [x] Open [Standard Phishing Test](https://privacy-test-pages.site/security/badware/phishing.html) - [x] Wait for the error page to show - [x] Tap on "Advanced" - [x] Tap on "Accept Risk and Visit Site" - [x] Check the site is loaded - [x] Reload the site - [x] Check it's loaded normally, no error page shown - [x] Kill the app - [x] Open it again and load the same site again - [x] Check error page is now shown ### UI changes | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)| --------- Co-authored-by: laghee <[email protected]>
- Loading branch information