-
Notifications
You must be signed in to change notification settings - Fork 892
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
[WIP] WebTorrent Support #353
Conversation
bool IsComponentExtensionWhitelisted(int manifest_resource_id) { | ||
switch (manifest_resource_id) { | ||
// Please keep the list in alphabetical order. | ||
+ case IDR_BRAVE_EXTENSON: | ||
+ case IDR_BRAVE_WEBTORRENT: |
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.
I'll adapt @bridiver's work in sync WIP on moving it to chromium_src
} | ||
#endif // !BUILDFLAG(DISABLE_FTP_SUPPORT) | ||
|
||
+ job_factory->SetProtocolHandler("magnet", std::make_unique<MagnetProtocolHandler>()); |
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 should not be added here. See ProfileIOData::AddProtocolHandlersToBuilder and ProfileIOData::InstallProtocolHandlers
script/build-brave-webtorrent.py
Outdated
@@ -0,0 +1,51 @@ | |||
import argparse |
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.
we already have a transpile_web_ui
action and it should be adapted if any changes are needed to handle this
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.
addressed by 32c0fe2
.gitignore
Outdated
@@ -2,6 +2,7 @@ | |||
.tags* | |||
/.idea/ | |||
/browser/resources/brave_extension/ | |||
/browser/resources/brave_webtorrent/*.bundle.js |
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.
we shouldn't be writing back into the source directory. Please see the wip sync branch
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.
It seems we couldn't access these *.bundle.js files from the extension if it's in gen, so I'm still generating webpack output files into src, they're now under components/brave_webtorrent/entension/out
.
@@ -0,0 +1,22 @@ | |||
import("//tools/grit/grit_rule.gni") |
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.
I think this should all move into components/webtorrent
and resources should be kept inside the component like sync
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.
addressed by 32c0fe2
@@ -20,6 +20,11 @@ | |||
<include name="IDR_BRAVE_EXTENSON_EN_US_MESSAGES_JSON" file="brave_extension/_locales/en_US/messages.json" type="BINDATA" /> | |||
<include name="IDR_BRAVE_EXTENSON_BRAVE_SHIELDS_HTML" file="brave_extension/braveShieldsPanel.html" type="BINDATA" /> | |||
<include name="IDR_BRAVE_EXTENSON_BRAVELIZER_JS" file="brave_extension/bravelizer.css" type="BINDATA" /> | |||
|
|||
<!-- Brave Webtorrent --> |
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.
see 88818ab - it handles both local and generated resources
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.
addressed by 32c0fe2
71c0c62
to
1940802
Compare
Oops... sorry, I accidentally delete this remote branch, I'll open a new PR. |
TODO:
What's included in this PR:
What's not included in this PR:
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: