-
Notifications
You must be signed in to change notification settings - Fork 974
Magnet link doesn't start torrent download #5981
Comments
@dcposch if you still have cycles available it'd be helpful if you could take a look on the chromium54 branch. |
@bbondy sure, checking it out |
Just reproduced the error:
Here's let webtorrentEntryPage = 'gen/webtorrentPage.entry.js'
var queryString = window.location.search
var portMatch = queryString && queryString.match(/devServerPort=([0-9]+)/)
var devServerPort
if (portMatch) {
devServerPort = portMatch[1]
}
let webtorrentEntryPage = 'gen/webtorrentPage.entry.js'
// [...] Looks like this commit duplicates It's on |
looks like a rebase issue. The webtorrent.js file shouldn't exist anymore |
had to sort some things out in master and I'll update the changes for 54 |
@bbondy @bridiver LMK if there's anything you'd like me to do. Right now, Torrent Viewer doesn't work on the |
Aha, looks like it's called |
@dcposch I get a CSP error when opening this magnet link in Brave 0.13.0 pre4: |
the urls work with "open in new tab" or ctrl/cmd-click now, but do nothing if you just click on them |
I see the same thing as @srirambv. |
reverting eb19c30 is definitely not the right thing to do. The original code incorrectly bypassed the webpack dev server and the csp issues should be resolved in extensions.js |
@bridiver sure, but eb19c30 doesn't actually run at all due to the syntax error (duplicate not sure how that got merged. running without the webpack dev server means you have to run what are the remaining CSP issues? cc @feross |
actually eb19c30 was already replaced by other code to handle the dev server and that file doesn't even exist anymore |
there are a lot of comments on this thread that are no longer relevant so I'm not sure what the outstanding issues are, but the code from eb19c30 is definitely not part of the problem because that file was removed a while ago and the webpack dev server is handled in filtering.js |
i'm building brave now to try out:
is |
yep, everything from chromium54 has been merged into master and |
I don't think the webtorrent filtering code is seeing the magnet protocol URLs at all |
@bbondy that is correct in some cases, but not others and I'm not sure why. Cmd-click seems to work, but normal links don't. Maybe they aren't registering as a navigation?
… On Dec 28, 2016, at 1:00 PM, Brian R. Bondy ***@***.***> wrote:
I don't think the webtorrent filtering code is seeing the magnet protocol URLs at all
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
why is the page trying to connect to example.com? The only reference I see to that is in a comment |
Looks like @jhiesey - is there any way to remove |
Working on a PR to |
@feross master is looking pretty good and is what you should branch from! 😄 if you haven't recently, please remove node_modules and re-npm install You can tag me as a reviewer (I'd love to try this functionality out; I haven't tried it yet actually) |
Sounds good! 👍 Right now, it looks to me like the torrent viewer code isn't even being triggered when clicking on a magnet link. This must have broken at some point and no one noticed. 😐 |
@feross that is a known issue in 54 |
PR to Haven't confirmed this fixes the CSP issue since I haven't gotten the torrent viewer to run on @bridiver Is there an issue for that? |
@feross isn't this the issue? |
@bridiver It looks like That used to get called in the past, and in there we detect it's a |
the redirect is handled here https://github.com/brave/browser-laptop/blob/master/app/browser/webtorrent.js#L37 but that never gets hit because the navigation is completely ignored and I'm not sure why yet |
Unlike normal web requests, the magnet link clicks are getting lost here: browser-laptop/js/components/frame.js Line 767 in b466a44
e.isMainFrame is false for some reason. Any ideas?
|
Okay, the CSP bug fix was just merged and released in @bridiver @bbondy Any ideas why |
It was erroring with: ``` _stream_writable.js var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : ``` because our webpack config sets process to false and the process object we provide doesn't have a version property until now. processNextTick; Related to brave/browser-laptop#5981
I'll take a look next, I was trying today but this was blocking me, fixed now: |
@feross by the way the torrent file downloads ok, but when I try to play it, in this case an MP3 from here: It errors with this: |
I got this working even for links inside pages, it'll be in the next release. I ended up removing the filtering code and doing it through the same API as navigator.registerProtocolHandler uses. It'll be available in the next preview build (0.13.0-preview10) QA |
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
Magnet link doesn't start torrent download
Expected behavior:
Should load the torrent viewer and start downloading
Platform (Win7, 8, 10? macOS? Linux distro?):
Windows 10 x64
Brave Version:
0.13.0 preview 2
Steps to reproduce:
Screenshot if needed:
Any related issues:
Extension downloading not working for C54 #5945
The text was updated successfully, but these errors were encountered: