-
Notifications
You must be signed in to change notification settings - Fork 920
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
Fix custom ad notification z-ordering and possible display issues. #17997
Conversation
@@ -62,6 +56,12 @@ constexpr char kFieldTrialParameterNotificationAdDarkModeBackgroundColor[] = | |||
// Default color value is SkColorSetRGB(0x20, 0x23, 0x27); | |||
constexpr char kDefaultNotificationAdDarkModeBackgroundColor[] = "202327"; | |||
|
|||
// Set to true to support multiple displays or false to only support the primary | |||
// display |
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.
nit: .
at end of sentence
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.
All other comments in this file don't have .
at the end of a sentence. Maybe it is better to fix all of them as a followup?
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.
Sounds good to me
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 raise a PR over the weekend as in the process of adding some public facing comments anyhow. Thanks
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++
Resolves brave/brave-browser#22203
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 lint
,npm 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:
The issue should be tested on Windows and MacOS platforms.
--enable-features="CustomAdNotifications:should_attach_ad_notification_to_browser_window/true"
UPD: Features names in Brave Nightly were refactored. Nightly parameter is renamed to
use_same_z_order_as_browser_window
and it is turned on by default. So for Nightly now it is needed to enableCustomNotificationAds
feature only with--enable-features=CustomNotificationAds
or using a Flag in brave://flags