-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[iOS] Wrap HTTPS-by-default logic around feature flags #25263
Conversation
...rave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BVC+WKNavigationDelegate.swift
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chromium_src ++
Just an update here that I'm chatting with @diracdeltas and @fmarier about whether we want this, let's not merge for now. |
e988ae8
to
aba394c
Compare
aba394c
to
c98f586
Compare
Verification PASSED on
|
Example |
Example |
---|---|
![]() |
![]() |
While both brave://flags#https-by-default
& brave://flags#https-only-mode
are enabled, went through the STR/Cases outlined via brave/brave-browser#36408 (comment) as per the following:
Test interstitial
Example |
Example |
Example |
Example |
Example |
---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
Test upgrading
Example |
Example |
Example |
Example |
Example |
Example |
---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Test Case #2
- brave://flags#https-only-mode
disabled
- disabled
brave://flags#https-only-mode
viabrave://flags
after installing1.71.29 Chromium: 128.0.6613.85
- restart the browser once the
brave://flag
has been changed - once disabled, ensured that
Upgrade Connections to HTTPS
is set as a boolean toggle (enabled/disabled) - visited http://http.badssl.com and ensured that a interstitial page re: HTTP upgrade is NOT being displayed
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Test Case #3
- brave://flags#https-by-default
disabled
- disabled
brave://flags#https-by-default
viabrave://flags
after installing1.71.29 Chromium: 128.0.6613.85
- restart the browser once the
brave://flag
has been changed - ensured that
Upgrade Connections to HTTPS
is set as a boolean toggle (enabled/disabled)brave://flags#https-only-mode
is also being disabled whenbrave://flags#https-by-default
has been disabled
- visited http://http.badssl.com and ensured that a interstitial page re: HTTP upgrade is NOT being displayed
- ensured that
http://brave.com
-->https://brave.com
- ensured that
http://google.com
-->https://google.com
- ensured that
http://facebook.com
-->https://m.facebook.com
- ensured that
http://reddit.com
-->https://reddit.com
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Test Case #4
- brave://flags#https-only-mode
being disabled but user has Strict
selected
- installed
1.71.29 Chromium: 128.0.6613.85
- set
Upgrade Connections to HTTPS
asStrict
viaSettings
- disabled
brave://flags#https-only-mode
viabrave://flags
and restarted the browser - ensured that the
Upgrade Connections to HTTPS
setting is now set as a boolean withoutStrict
mode - visited
http://http.badssl.com
and ensured that the interstitial page re: HTTP upgrade is NOT being displayed - enabled
brave://flags#https-only-mode
viabrave://flags
and restarted the browser - ensured that
Upgrade Connections to HTTPS
is now a drop down andStrict
is being selected (users previous choice) - visited
http://http.badssl.com
and ensured that the interstitial page is being used/displayed
Resolves brave/brave-browser#40634
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: