-
Notifications
You must be signed in to change notification settings - Fork 878
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
Don't impose WebSockets limits on Extensions #12597
Conversation
@@ -30,7 +30,7 @@ using WebSocketChannelImpl_BraveImpl = WebSocketChannelImpl; | |||
|
|||
namespace blink { | |||
|
|||
class MODULES_EXPORT WebSocketChannelImpl | |||
class MODULES_EXPORT WebSocketChannelImpl final |
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.
here are follow up fixes from the original PR #11609
if (settings->GetBraveFarblingLevel() != BraveFarblingLevel::OFF) { | ||
const bool is_extension = CommonSchemeRegistry::IsExtensionScheme( | ||
execution_context_->GetSecurityOrigin()->Protocol().Ascii()); | ||
if (!is_extension && |
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 is the main change in this PR.
"manifest_version": 2, | ||
"version": "0.1", | ||
"permissions": ["webRequest", "webRequestBlocking", "*://a.com/*"], | ||
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'" |
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.
unsafe-eval
is required for EvalJs
to work.
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#21661
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: