-
Notifications
You must be signed in to change notification settings - Fork 973
Local file doesn't open in Brave, DDG search is run instead #5828
Comments
Additional note: if I open the file via |
I've also noticed this with other file types, such as PDFs. |
I think that I found the problem. Problem is in the path that is send to the browser. If you drag and drop file with path something like @bsclifton @bbondy @luixxiul Any suggestion where to look in the code to fix this problem? |
@NejcZdovc I believe this is the code you'd want to look at: This code should be getting executed on all platforms (I've only personally verified on Windows) after the extension handler finds Brave to be a match for the file being double clicked. It passes the input in this format: I think the resolution would be to join all remaining argv indices together by spaces, starting at index + 1 |
@bsclifton Thank you for a pointer. How can I easily debug this process? The only way that I found out is by creating build package and then test it (problem is that you don't have debug options in package). I tried to fix it without debugging but with no luck. |
We need to do two things I think. First merge arguments and them encode them. Second thing I already implemented in #6404 for drag and drop and it's working correctly. |
@NejcZdovc this is not the easiest to debug. Basically, you'd need to make your changes, then run You are 100% correct though- we will want to sanitize the arguments also |
@bsclifton will try to fix it with building, hope will figure it out without debug 📦 |
Fixes #brave#5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes #brave#5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
@bsclifton as far as I can tell the problem was only in encoding so it was a easy fix when I found out where the code is located 😄 |
Fixed with #6424 which was merged into branch |
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes #brave#5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Fixes ##5828 Auditors: @bsclifton @echosa Test Plan: - Build brave - Open local file with brave (double click) - Local file should be opened
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
In Safari, I started playing Zork here: http://www.ifiction.org/games/playz.php?cat=2&game=386&mode=html
According to their FAQ, you save your game by saving the HTML page to your computer. I did that, and when I open it in Safari, it correctly opens. When I make a move, it correctly takes me back to the actual ifiction.org page so I can continue playing.
When I open the file in Brave, either by double-clicking the file or drag-and-dropping the file onto the tab bar, Brave runs a DDG search for the file location on my computer.
It's weird to explain, so here's a screecast of what's going on. First I double-click the file to open in Brave. Brave attempts a DDG search. Then I open the file in Safari (opens a file:/// url) then make a move in the game (takesme to ifiction.org).
https://cl.ly/0v3Y1O3L402j
Expected behavior:
The file should open in Brave and work like it does in Safari.
OS X 10.11.6
0.12.10
iFiction - Game - Dungeon.zip
The text was updated successfully, but these errors were encountered: