-
Notifications
You must be signed in to change notification settings - Fork 970
Conversation
fa5f403
to
964b859
Compare
Codecov Report
@@ Coverage Diff @@
## master #13667 +/- ##
==========================================
+ Coverage 56.65% 56.74% +0.09%
==========================================
Files 285 285
Lines 28920 29038 +118
Branches 4782 4803 +21
==========================================
+ Hits 16385 16479 +94
- Misses 12535 12559 +24
|
8c0c3e7
to
6bfd999
Compare
4f8afbd
to
cf3babb
Compare
ce5601e
to
c44ea1e
Compare
f592a7e
to
98ddc15
Compare
Auditors: Test Plan:
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.
Security review is complete in brave/internal#250. r+
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.
++
if (!mainFrameUrl) { | ||
return { | ||
resourceName | ||
const domain = urlParse(mainFrameUrl).hostname.split('.').slice(-2).join('.') |
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.
this doesn't work for domains that have subdomains, ex: play.spotify.com
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.
you can use getBaseDomain
to get the full domain
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.
though it looks like it also does this on master
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 this code is on the master as well, where I only moved this code into named funtion
This reverts commit 08b54da.
0.22.x-c66 2e1adbd |
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
brave-development
and addpromoCode
fileReviewer Checklist:
Tests