-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Update HTTPS by Default
to work with HttpsFirstModeV2
#28935
Comments
Once this is addressed, the |
@brave/qa-team here's the are the reduced cases that I ran through while verifying on |
The above requires |
Verification PASSED on
Case 1 (from #28809) -
|
example | example | example |
---|---|---|
Case 2 (from #27141) - PASSED
Default - Upgrade connections to HTTPS
, Standard
- PASSED
- installed
1.51.107
- launched Brave
- confirmed
Upgrade connections to HTTPS
is set toStandard
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
default |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Upgrade connections to HTTPS
, Strict
- PASSED
- installed
1.51.107
- launched Brave
- changed
Upgrade connections to HTTPS
toStrict
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
Upgrade connections, Strict |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Upgrade connections to HTTPS
, Disabled
- PASSED
- installed
1.51.107
- launched Brave
- changed
Upgrade connections to HTTPS
toDisabled
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
Upgrade connections, Disabled |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Shields down - PASSED
- installed
1.51.107
- launched Brave
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- clicked on the
Brave Shields
icon in the URL bar - toggled each of the above loaded sites' Shields to
DOWN
- opened a
New Private Window with Tor
and loaded each of the above
Global Shields pref |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Profile/Pref Migrations - PASSED
defaults - PASSED
- installed
1.50.121
- confirmed default of
Always use secure connections
set toOff
inbrave://settings/security
- upgraded to
1.51.107
- launched Brave
- confirmed via
brave://settings/shields
thatUpgrade connections to HTTPS
is set toStandard
1.50.121 |
1.51.107 |
---|---|
Always use secure connections
set to On
- ``
Verification
|
Brave | 1.51.107 Chromium: 113.0.5672.63 (Official Build) (x86_64) |
---|---|
Revision | 0e1a4471d5ae5bf128b1bd8f4d627c8cbd55f70c-refs/branch-heads/5672@{#912} |
OS | macOS Version 11.7.6 (Build 20G1231) |
Case 1 (from #28809) - PASSED
Steps:
- installed
1.51.107
- launched Brave
- used devtools to use a mobile UA (I used Android (4.0.2) browser
- loaded
https://anicobin.ldblog.jp/archives/59981055.html
- clicked on the
"comments"
button
Confirmed I could load the comments section
example | example | example | example | example |
---|---|---|---|---|
Case 2 (from #27141) - PASSED
Default - Upgrade connections to HTTPS
, Standard
- PASSED
- installed
1.51.107
- launched Brave
- confirmed
Upgrade connections to HTTPS
is set toStandard
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
default |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Upgrade connections to HTTPS
, Strict
- PASSED
- installed
1.51.107
- launched Brave
- changed
Upgrade connections to HTTPS
toStrict
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
Upgrade connections, Strict |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Upgrade connections to HTTPS
, Disabled
- PASSED
- installed
1.51.107
- launched Brave
- changed
Upgrade connections to HTTPS
toDisabled
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
Upgrade connections, Disabled |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Shields down - PASSED
- installed
1.51.107
- launched Brave
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- clicked on the
Brave Shields
icon in the URL bar - toggled each of the above loaded sites' Shields to
DOWN
- opened a
New Private Window with Tor
and loaded each of the above
Global Shields pref |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Profile/Pref Migrations - PASSED
defaults - PASSED
- installed
1.50.121
- confirmed default of
Always use secure connections
set toOff
inbrave://settings/security
- upgraded to
1.51.107
- launched Brave
- confirmed via
brave://settings/shields
thatUpgrade connections to HTTPS
is set toStandard
1.50.121 |
1.51.107 |
---|---|
Always use secure connections
set to On
- PASSED
Verification passed on
Brave | 1.51.107 Chromium: 113.0.5672.63 (Official Build) (64-bit) |
---|---|
Revision | 0e1a4471d5ae5bf128b1bd8f4d627c8cbd55f70c-refs/branch-heads/5672@{#912} |
OS | Ubuntu 18.04 LTS |
Case 1 (from #28809) - PASSED
Steps:
- installed
1.51.107
- launched Brave
- used devtools to use a mobile UA (I used Android (4.0.2) browser
- loaded
https://anicobin.ldblog.jp/archives/59981055.html
- clicked on the
"comments"
button
Confirmed I could load the comments section
Case 2 (from #27141) - PASSED
Default - Upgrade connections to HTTPS
, Standard
- PASSED
- installed
1.51.107
- launched Brave
- confirmed
Upgrade connections to HTTPS
is set toStandard
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
default |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Upgrade connections to HTTPS
, Strict
- PASSED
- installed
1.51.107
- launched Brave
- changed
Upgrade connections to HTTPS
toStrict
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
Upgrade connections, Strict |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Upgrade connections to HTTPS
, Disabled
- PASSED
- installed
1.51.107
- launched Brave
- changed
Upgrade connections to HTTPS
toDisabled
inbrave://settings/shields
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- opened a
New Private Window with Tor
and loaded each of the above
Upgrade connections, Disabled |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Tor
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|
Shields down - PASSED
- installed
1.51.107
- launched Brave
- loaded
http://insecure.arthuredelstein.net
- loaded
http://http.badssl.com
- loaded
http://upgradable.arthuredelstein.net
- clicked on the
Brave Shields
icon in the URL bar - toggled each of the above loaded sites' Shields to
DOWN
- opened a
New Private Window with Tor
and loaded each of the above
Global Shields pref |
insecure.arthuredelstein.net |
http.badssl.com |
upgradable.arthuredelstein.net |
---|---|---|---|
Profile/Pref Migrations - PASSED
defaults - PASSED
- installed
1.50.121
- confirmed default of
Always use secure connections
set toOff
inbrave://settings/security
- upgraded to
1.51.107
- launched Brave
- confirmed via
brave://settings/shields
thatUpgrade connections to HTTPS
is set toStandard
Always use secure connections
set to On
- PASSED
Verification PASSED on Case 1 (from #28809) -
|
Example |
Example |
Example |
---|---|---|
Case 2 (from #27141) - PASSED
Shields Panel (Upgrade to HTTPS whenever possible (default)
)
- ensured that
Upgrade to HTTPS whenever possible (default)
is selected as the default (if the user hasn't changed anything)- ensured that http://insecure.arthuredelstein.net loads without any issues (shouldn't be upgrading)
- ensured that http://http.badssl.com loads without any issues (shouldn't be upgrading)
- ensured that http://upgradable.arthuredelstein.net -> https://upgradable.arthuredelstein.net (should be upgraded)
Example |
Example |
Example |
Example |
---|---|---|---|
Shields Panel (Require all connections to use HTTPS (strict)
)
- visit http://insecure.arthuredelstein.net, http://http.badssl.com and http://upgradable.arthuredelstein.net and ensure that
Require all connections to use HTTPS (strict)
is selected via the shields panel- ensure that http://insecure.arthuredelstein.net displays
The connection to insecure.arthuredelstein.net is not secure
- ensure that
Continue to site
loads http://insecure.arthuredelstein.net without any issues - ensured that http://insecure.arthuredelstein.net loads without any issues after several restarts once
Continue
is selected - ensured that you
Turn on warnings
works as expected via theNot Secure
drop down
- ensure that
- ensure that http://http.badssl.com displays
The connection to http.badssl.com is not secure
- ensure that
Continue to site
loads http://http.badssl.com without any issues - ensured that http://http.badssl.com loads without any issues after several restarts once
Continue
is selected - ensured that you
Turn on warnings
works as expected via theNot Secure
drop down
- ensure that
- ensured that http://upgradable.arthuredelstein.net -> https://upgradable.arthuredelstein.net (should be upgraded)
- ensure that http://insecure.arthuredelstein.net displays
Example |
Example |
Example |
Example |
Example |
---|---|---|---|---|
Example |
Example |
Example |
Example |
Example |
---|---|---|---|---|
Shields Panel (Don't upgrade connections to HTTPS (disabled)
)
- visit http://insecure.arthuredelstein.net, http://http.badssl.com and http://upgradable.arthuredelstein.net and ensure that
Don't upgrade connections to HTTPS (disabled)
is selected via the shields panel- ensure that http://insecure.arthuredelstein.net loads without any issues
- ensure that http://http.badssl.com loads without any issues
- ensured that http://upgradable.arthuredelstein.net doesn't upgrade to
HTTPS
(make sure website loads without issues)- basically ensuring that https://upgradable.arthuredelstein.net doesn't load
Example |
Example |
Example |
Example |
---|---|---|---|
Prevent permissive HTTPS Upgrade settings from leaking from Normal
to Private
windows
Basically used the STR/Cases outlined via brave/brave-core#17421 (comment) and went through the following:
Test Case #1
- Upgrade to HTTPS whenever possible (default)
- visited http://upgradable.arthuredelstein.net in a
Normal
window and ensured thatUpgrade to HTTPS whenever possible (default)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
- opened a
Private
window and visited http://upgradable.arthuredelstein.net and ensuredUpgrade to HTTPS whenever possible (default)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
Test Case #2
- Require all connections to use HTTPS (strict)
- visited http://upgradable.arthuredelstein.net and switched HTTPS upgrades to
Require all connections to use HTTPS (strict)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
- opened a
Private
window and visited http://upgradable.arthuredelstein.net and ensuredRequire all connections to use HTTPS (strict)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
Test Case #3
- Don't upgrade connections to HTTPS (disabled)
- visited http://upgradable.arthuredelstein.net switched HTTPS upgrades to
Don't upgrade connections to HTTPS (disabled)
- reloaded http://upgradable.arthuredelstein.net and ensured that the website was not being upgraded to HTTPS
- opened a
Private
window and visited http://upgradable.arthuredelstein.net and ensuredUpgrade to HTTPS whenever possible (default)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
Ensure that Don't upgrade connections to HTTPS (disabled)
is NOT being used
Test Case #4
- Don't upgrade HTTPS connections
(Private Window Only)
- opened a
Private
window and visited http://upgradable.arthuredelstein.net and ensuredUpgrade to HTTPS whenever possible (default)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
- change the HTTPS upgrade setting to
Don't upgrade connections to HTTPS (disabled)
and loadhttp://upgradable.arthuredelstein.net
Ensure that http://upgradable.arthuredelstein.net
is not upgrade. With this case, we're basically ensuring that you can still use Don't upgrade HTTPS connections
if changed within the Private
window.
Verification PASSED on
|
Example |
Example |
Example |
Example |
---|---|---|---|
Shields Panel (Require all connections to use HTTPS (strict)
)
- visit http://insecure.arthuredelstein.net, http://http.badssl.com and http://upgradable.arthuredelstein.net and ensure that
Require all connections to use HTTPS (strict)
is selected via the shields panel- ensure that http://insecure.arthuredelstein.net displays
The connection to insecure.arthuredelstein.net is not secure
- ensure that
Continue to site
loads http://insecure.arthuredelstein.net without any issues - ensured that http://insecure.arthuredelstein.net loads without any issues after several restarts once
Continue
is selected - ensured that you
Turn on warnings
works as expected via theNot Secure
drop down
- ensure that
- ensure that http://http.badssl.com displays
The connection to http.badssl.com is not secure
- ensure that
Continue to site
loads http://http.badssl.com without any issues - ensured that http://http.badssl.com loads without any issues after several restarts once
Continue
is selected - ensured that you
Turn on warnings
works as expected via theNot Secure
drop down
- ensure that
- ensured that http://upgradable.arthuredelstein.net -> https://upgradable.arthuredelstein.net (should be upgraded)
- ensure that http://insecure.arthuredelstein.net displays
Example |
Example |
Example |
Example |
Example |
---|---|---|---|---|
Example |
Example |
Example |
Example |
Example |
---|---|---|---|---|
Shields Panel (Don't upgrade connections to HTTPS (disabled)
)
- visit http://insecure.arthuredelstein.net, http://http.badssl.com and http://upgradable.arthuredelstein.net and ensure that
Don't upgrade connections to HTTPS (disabled)
is selected via the shields panel- ensure that http://insecure.arthuredelstein.net loads without any issues
- ensure that http://http.badssl.com loads without any issues
- ensured that http://upgradable.arthuredelstein.net doesn't upgrade to
HTTPS
(make sure website loads without issues)- basically ensuring that https://upgradable.arthuredelstein.net doesn't load
Example |
Example |
Example |
Example |
---|---|---|---|
Prevent permissive HTTPS Upgrade settings from leaking from Normal
to Private
windows
Basically used the STR/Cases outlined via brave/brave-core#17421 (comment) and went through the following:
Test Case #1
- Upgrade to HTTPS whenever possible (default)
- visited http://upgradable.arthuredelstein.net in a
Normal
window and ensured thatUpgrade to HTTPS whenever possible (default)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
- opened a
Private
window and visited http://upgradable.arthuredelstein.net and ensuredUpgrade to HTTPS whenever possible (default)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
Test Case #2
- Require all connections to use HTTPS (strict)
- visited http://upgradable.arthuredelstein.net and switched HTTPS upgrades to
Require all connections to use HTTPS (strict)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
- opened a
Private
window and visited http://upgradable.arthuredelstein.net and ensuredRequire all connections to use HTTPS (strict)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
Test Case #3
- Don't upgrade connections to HTTPS (disabled)
- visited http://upgradable.arthuredelstein.net switched HTTPS upgrades to
Don't upgrade connections to HTTPS (disabled)
- reloaded http://upgradable.arthuredelstein.net and ensured that the website was not being upgraded to HTTPS
- opened a
Private
window and visited http://upgradable.arthuredelstein.net and ensuredUpgrade to HTTPS whenever possible (default)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
Ensure that Don't upgrade connections to HTTPS (disabled)
is NOT being used
Test Case #4
- Don't upgrade HTTPS connections
(Private Window Only)
- opened a
Private
window and visited http://upgradable.arthuredelstein.net and ensuredUpgrade to HTTPS whenever possible (default)
- ensured that
http://upgradable.arthuredelstein.net
->https://upgradable.arthuredelstein.net
- ensured that
- change the HTTPS upgrade setting to
Don't upgrade connections to HTTPS (disabled)
and loadhttp://upgradable.arthuredelstein.net
Ensure that http://upgradable.arthuredelstein.net
is not upgrade. With this case, we're basically ensuring that you can still use Don't upgrade HTTPS connections
if changed within the Private
window.
There's no upgrade cases that need to be done on Android
as mentioned via #28935 (comment) as HTTPS by Default
is being pushed out for the first time via 1.51.x
.
Chromium 112 has enabled
HttpsFirstModeV2
feature flag by default. This feature provides a new implementation for HTTPS by default (see the tracking issue).For now, we turned the flag to being disabled by default in Chromium 112 bump, but before the old implementation is removed upstream we need to update our implementation to work with
HttpsFirstModeV2
Test Plan:
Same test plan as outlined in brave/brave-core#16521 (comment) and #27141 (comment), as well as "steps to reproduce" in #28809
cc: @arthuredelstein @pes10k
The text was updated successfully, but these errors were encountered: