-
Notifications
You must be signed in to change notification settings - Fork 445
Fix#2907: Clearing Browsing History should clear Tab History as well #3089
Conversation
2f2366b
to
0681969
Compare
75e231b
to
bd49b3e
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.
left feedback in DMs
Not Registering first entered URL problem is fixed and method is changed with "clear" Creating the security ticket for review |
*/ | ||
let argument: [Any] = ["_c", "lea", "r"] | ||
|
||
let method = argument.compactMap { $0 as? String }.joined() |
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.
PR Looks good. This MIGHT not work if the optimizer is smart. If it is, this will get optimized back into a single string _clear
and then get flagged by the automatic review for private methods :D
Typically I base-64 encode the string and then decode it at runtime. But for now, leave it and let's see. Just adding a comment in case it does get rekt.
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.
Actually I added extra obfuscation which includes base-64 encode and unicode encoding but we decided it is unnecessary.
But like you said let's see, we can put it back.
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
Summary of Changes
This pull request fixes #2907
Security Review
https://github.com/brave/security/issues/268
Submitter Checklist:
NSLocalizableString()
Test Plan:
Screenshots:
Reviewer Checklist:
QA/(Yes|No)
release-notes/(include|exclude)
bug
/enhancement