-
Notifications
You must be signed in to change notification settings - Fork 893
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
Warning text if the user has currently selected Block all cookies #27090
Warning text if the user has currently selected Block all cookies #27090
Conversation
@@ -21,6 +21,8 @@ inline constexpr char kLanguageFarblingField[] = "languageFarblingEnabled"; | |||
inline constexpr char kBraveVPNEnabledField[] = "braveVPNEnabled"; | |||
inline constexpr char kChannelField[] = "channel"; | |||
inline constexpr char kVersionField[] = "version"; | |||
inline constexpr char kCookiePolicyField[] = "cookie_policy"; | |||
inline constexpr char kBlockScriptsField[] = "block_scripts"; |
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.
I will add these fields on the server-side. Please remember to update https://github.com/brave/brave-browser/wiki/Web-compatibility-reports
components/webcompat_reporter/browser/webcompat_report_uploader.cc
Outdated
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.
LGTM
The security team is monitoring all repositories for certain keywords. This PR includes the word(s) "policy" and so security team members have been added as reviewers to take a look. |
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.
looks great, thanks
app/brave_settings_strings.grdp
Outdated
<message name="IDS_SETTINGS_BRAVE_SHIELDS_COOKIE_CONTROL_BLOCK_ALL_DEPRECATED_LABEL" desc="Block all cookies deprecation warning"> | ||
Block all cookies option is deprecated. To force-enable, | ||
</message> | ||
<message name="IDS_SETTINGS_BRAVE_SHIELDS_COOKIE_CONTROL_BLOCK_ALL_DEPRECATED_LINK_LABEL" desc="Block all cookies learn more link text"> | ||
Learn more | ||
</message> |
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.
The To force-enable, Learn more
part doesn't look right to me. Also, because this warning is shown with the setting itself, I don't think repeating Block all cookies
is necessary. I would suggest perhaps:
This option is deprecated. <link>Learn how to force-enable</link>
cc: @rmcfadden3 WDYT?
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.
@mkarolin how about The "Block all Cookies" option has been deprecated. To learn how to force-enable this option, visit [our help page](https://support.brave.com/).
Note that I just used the general support.brave.com link as a placeholder on the href. We should obviously embed the exact URL once we have it.
If the goal is to send someone to Flags or something, rather than help center, LMK and I can tweak the copy accordingly.
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.
Thanks @rmcfadden3! Sounds good to me.
<message name="IDS_BLOCK_COOKIES_DEPRECATED_LABEL" desc="Block all cookies deprecation warning"> | ||
Block all cookies option is deprecated. To force-enable, | ||
</message> | ||
<message name="IDS_BLOCK_COOKIES_DEPRECATED_LINK_LABEL" desc="Block all cookies deprecation warning link"> | ||
<ph name="BEGIN_LINK_1"><LINK_1></ph> learn more<ph name="END_LINK_1"></LINK_1></ph> | ||
</message> |
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.
Same as the desktop.
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.
I updated strings & screenshots above
app/brave_settings_strings.grdp
Outdated
<message name="IDS_SETTINGS_BRAVE_SHIELDS_COOKIE_CONTROL_BLOCK_ALL_DEPRECATED_LABEL" desc="Block all cookies deprecation warning"> | ||
The "Block all Cookies" option has been deprecated. To learn how to force-enable this option, visit | ||
</message> | ||
<message name="IDS_SETTINGS_BRAVE_SHIELDS_COOKIE_CONTROL_BLOCK_ALL_DEPRECATED_LINK_LABEL" desc="Block all cookies learn more link text"> | ||
our help page | ||
</message> |
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.
It is not great for localization when a sentence is split up between strings. It is better to use placeholders like you have in the Android file, but it should be all in one string (both here and in the Android file).
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.
fixed
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
11cccab
to
f859e52
Compare
Signed-off-by: Vadym Struts <[email protected]>
<message name="IDS_BLOCK_COOKIES_DEPRECATED_LABEL" desc="Block all cookies deprecation warning"> | ||
The "Block all Cookies" option has been deprecated. To learn how to force-enable this option, visit | ||
</message> | ||
<message name="IDS_BLOCK_COOKIES_DEPRECATED_LINK_LABEL" desc="Block all cookies deprecation warning link"> | ||
<ph name="BEGIN_LINK_1"><LINK_1></ph> our help page<ph name="END_LINK_1"></LINK_1></ph> | ||
</message> |
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.
Sorry, @vadimstruts but can you merge these into one as well?
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.
Yeah, thanks, I missed it. Done
Signed-off-by: Vadym Struts <[email protected]>
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.
strings
++ Thanks!
Released in v1.76.6 |
Resolves brave/brave-browser#42295
Resolves brave/brave-browser#42062
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:
cookie policy setting and script blocking fields in the webcompat report
"block_scripts"
- should contain value"true"
or"false"
depends from the settings"cookie_policy"
- should contain next possible values:"block"
or"block_third_party"
or"allow"
(For Desktop or Android), or as for IOS it could contain value"block"
otherwise it should not be present