-
Notifications
You must be signed in to change notification settings - Fork 973
Use non-persistent session for requests by default #12694
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12694 +/- ##
==========================================
- Coverage 56.09% 56.09% -0.01%
==========================================
Files 279 279
Lines 27302 27307 +5
Branches 4441 4442 +1
==========================================
+ Hits 15316 15318 +2
- Misses 11986 11989 +3
|
17ec7fe
to
afe66af
Compare
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.
maybe let defaultSession = getDefaultSession()
would be better than setDefaultSession
method with side effects?
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.
Per our convo, could it be updated to be more of a getter? ex:
getDefaultSession = function () {
if (!defaultSession){
defaultSession = session.fromPartition('default')
}
return defaultSession
}
const session = getDefaultSession()
Test Plan: 1. Turn on Brave payments in a fresh profile. Everything should work. 2. Click 'check for updates'. It should not show console errors. If in a packaged build, it should say 'no updates available'.
afe66af
to
76a47b2
Compare
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.
++
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.
Changes look great! 😄
Use non-persistent session for requests by default
fix #12469
Test Plan:
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests