-
Notifications
You must be signed in to change notification settings - Fork 904
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
[ads] RichNTT: Desktop #27466
base: master
Are you sure you want to change the base?
[ads] RichNTT: Desktop #27466
Conversation
33bb3af
to
f126167
Compare
@ShivanKaul @aseren is working on adding the missing tests. 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.
Front-end 👍
...ources/Brave/Frontend/Browser/New Tab Page/Backgrounds/NewTabPageBackgroundButtonsView.swift
Show resolved
Hide resolved
components/ntp_background_images/browser/ntp_sponsored_rich_media_source.cc
Outdated
Show resolved
Hide resolved
components/ntp_background_images/browser/ntp_sponsored_rich_media_source_util.cc
Outdated
Show resolved
Hide resolved
4a3f422
to
a52fb89
Compare
Shivan has closed security/privacy review. cc @ShivanKaul |
bbbc3fd
to
8197d6a
Compare
Agreed in comments this is ok as images are small
Co-authored-by: Terry Mancey <[email protected]>
[puLL-Merge] - brave/brave-core@27466 Here's my review of the PR: DescriptionThis PR adds support for rich media sponsored backgrounds in the New Tab Page (NTP). It allows for more interactive and dynamic sponsored content to be displayed as backgrounds, including HTML/CSS/JS content. The PR includes new handling for rich media ads, content security policy (CSP) enforcement, and proper sandboxing of this content. Possible Issues
Security Hotspots
ChangesChangesBy filename:
sequenceDiagram
participant NTP as New Tab Page
participant Handler as RichMediaHandler
participant Service as BackgroundService
participant Source as RichMediaSource
NTP->>Service: Request background
Service->>Source: Load rich media content
Source->>Source: Validate paths & CSP
Source->>NTP: Return content
NTP->>Handler: Initialize rich media
Note over NTP,Handler: Secure iframe sandbox
Handler->>Service: Report events
Service->>Service: Process metrics
|
Resolves brave/brave-browser#43512
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: