-
Notifications
You must be signed in to change notification settings - Fork 885
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
Misc fixes for DeAMP #12999
Misc fixes for DeAMP #12999
Conversation
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.
As long as those regex's do what they say on the tin, LGTM
@@ -56,6 +56,18 @@ | |||
pref="{{prefs.brave.shields.stats_badge_visible}}" | |||
label="$i18n{showStatsBlockedBadgeLabel}"> | |||
</settings-toggle-button> | |||
<settings-toggle-button | |||
class="cr-row" |
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.
need to fix the indentation here, rest everything looks good and all CI passed.
…re into feature/de-amp/misc-fixes
- Tweak DeAMP regexes to be lazy - The amp html attribute might have empty value i.e. amp="" - Move DeAMP (from Security & Privacy section) and ReduceLanguage (from bottom of brave://settings/shields) settings to be near-top of brave://settings/shields so as to separate them from other per-site privacy settings
Added the AMP option here: Screen without the option |
@aguscruiz I think that mockup might also need to include Reduce Language setting that @pilgrim-brave added in #12234: |
Ok, added. @rebron would you confirm that's right? I can always revert |
Verification PASSED on
Ensured that
Also as per #12999 (comment), went thorough the websites and ensured that they're loading the
Verification PASSED on
As per @ShivanKaul, the settings changes do not apply to Android so we basically just need to ensure that the websites mentioned via #12999 (comment) are working as expected.
|
Uplift - Misc fixes for DeAMP (#12999)
Resolves brave/brave-browser#22262
amp
html attribute might have empty value i.e.amp=""
For 3, this is what the brave://settings/shields page looks like after this PR:
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
https://amp.theguardian.com/us-news/commentisfree/2016/feb/16/thomas-piketty-bernie-sanders-us-election-2016
https://www.buzzfeed.com/amphtml/hbraga/your-new-favorite-products
https://www.foxnews.com/world/russian-crematoria-mariupol-new-auschwitz-mayor.amp
https://www.nbcnews.com/news/amp/rcna23233 and make sure that they all load non-AMP version instead (i.e. view source should not have <html ... amp> anywhere. Applicable for both Android and Desktop.
Auto-redirect AMP pages
no longer lives in brave://settings/privacy but instead lives in brave://settings/shields, andPrevent sites from fingerprinting me based on my language preferences
setting is next to the former setting. NOTE: this is only applicable for Desktop.