-
Notifications
You must be signed in to change notification settings - Fork 839
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
[Settings] Fixes fonts subpage flakiness in search. #23064
Conversation
A Storybook has been deployed to preview UI for the latest push |
@@ -50,6 +50,14 @@ RegisterPolymerTemplateModifications({ | |||
} else { | |||
console.error('[Brave Settings Overrides] People Page cannot find syncSetup/advanced template') | |||
} | |||
const syncSetupPageContent = templateContent.querySelector( |
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.
Q) It's also leftover and could be deleted as we have our own sync page?
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.
Yes, we don't seem to be using this page. It seems to have something to do with the Privacy Guide, which we disable anyway. When using search in settings, if not removed, this template causes an exception because it can't find the trigger control for the page.
@@ -126,6 +126,13 @@ RegisterPolymerTemplateModifications({ | |||
} else { | |||
customizeFontsSubpageTrigger.remove() | |||
} | |||
const customizeFontsTemplate = templateContent.querySelector( | |||
'template[is=dom-if][route-path="/fonts"]') |
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.
ditto
'template[is=dom-if][route-path="/fonts"]') | |
'template[is=dom-if][route-path="/braveContents/fonts"]') |
if (r.FONTS) { | ||
delete r.FONTS | ||
} | ||
r.FONTS = r.BRAVE_CONTENT.createChild('/fonts'); |
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.
How about having brave://settings/braveContent/fonts
instead of brave://settings/fonts
?
r.FONTS = r.BRAVE_CONTENT.createChild('/fonts'); | |
r.FONTS = r.BRAVE_CONTENT.createChild('/braveContent/fonts'); |
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 personally have no objections. The only thing I wonder if people who are used to going to brave://settings/fonts
would be unhappy with the URL change.
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.
ah, i see. Using current one would be helpful for many users.
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.
++
Verification PASSED on
Using Using the same STR/Cases as mentioned above, went through the following:
|
Resolves brave/brave-browser#37555
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: