-
Notifications
You must be signed in to change notification settings - Fork 448
Resolve #206: Add ability to download files from the browser. #1289
Conversation
7f15168
to
40414a8
Compare
40414a8
to
a581416
Compare
Running into a crash
STR:
|
|
|
I am blocking this beyond security review. Please DO NOT MERGE, until talking with me. There are some timing mechanics that need to be worked out. |
Client/Info.plist
Outdated
@@ -152,5 +152,7 @@ | |||
<string></string> | |||
</dict> | |||
</array> | |||
<key>UIFileSharingEnabled</key> | |||
<string>YES</string> |
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 needs to be a bool <true/>
, will probably need to edit the plaintext, as I see Xcode has it stuck as a string
type.
BraveShared/BraveStrings.swift
Outdated
@@ -27,6 +27,8 @@ extension Strings { | |||
public static let OpenNewPrivateTabButtonTitle = NSLocalizedString("OpenNewPrivateTabButtonTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Open in New Private Tab", comment: "Context menu option for opening a link in a new private tab") | |||
public static let DeleteLoginButtonTitle = NSLocalizedString("DeleteLoginButtonTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Delete", comment: "Label for the button used to delete the current login.") | |||
public static let SaveButtonTitle = NSLocalizedString("SaveButtonTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Save", comment: "Label for the button used to save data") | |||
public static let Share = NSLocalizedString("CommonShare", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Share", comment: "Text for share action") |
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 comment
could be a bit more clear, it is for translators, so something more like:
Text to select sharing something (example: image, video, URL)
BraveShared/BraveStrings.swift
Outdated
@@ -27,6 +27,8 @@ extension Strings { | |||
public static let OpenNewPrivateTabButtonTitle = NSLocalizedString("OpenNewPrivateTabButtonTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Open in New Private Tab", comment: "Context menu option for opening a link in a new private tab") | |||
public static let DeleteLoginButtonTitle = NSLocalizedString("DeleteLoginButtonTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Delete", comment: "Label for the button used to delete the current login.") | |||
public static let SaveButtonTitle = NSLocalizedString("SaveButtonTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Save", comment: "Label for the button used to save data") | |||
public static let Share = NSLocalizedString("CommonShare", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Share", comment: "Text for share action") | |||
public static let Download = NSLocalizedString("CommonDownload", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Download", comment: "Text for download action") |
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.
Same as above, maybe:
Text to choose for downloading a file (example: saving an image to phone)
BraveShared/BraveStrings.swift
Outdated
@@ -512,6 +514,8 @@ extension Strings { | |||
public static let SettingsMenuItem = NSLocalizedString("SettingsMenuItem", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Settings", comment: "Title for settings menu item") | |||
public static let AddToMenuItem = NSLocalizedString("AddToMenuItem", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Add to...", comment: "Title for adding new bookmark menu item") | |||
public static let ShareWithMenuItem = NSLocalizedString("ShareWithMenuItem", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Share with...", comment: "Title for sharing url menu item") | |||
public static let DownloadsMenuItem = NSLocalizedString("DownloadsMenuItem", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Downloads", comment: "Title for downloads menu item") | |||
public static let DownloadsPanelEmptyStateTitle = NSLocalizedString("DownloadsPanelEmptyStateTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Downloaded files will show up here.", comment: "Title for the Downloads screen empty state.") |
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.
comment maybe:
Title for when a user has nothing downloaded onto their device, and the list is empty.
Talked with @jumde, we can add a new check list item in Clear Private Data specifically for "downloads". |
6c5484d
to
b032660
Compare
Client/Frontend/Browser/BrowserViewController/BrowserViewController+WKNavigationDelegate.swift
Show resolved
Hide resolved
We are still blocked on:
|
Downloaded files will go straight to documents directory
Updated text:
|
e4a5c32
to
532b658
Compare
All of file download logic and Downloads panel is taken from Firefox.
What was implemented by me:
Submitter Checklist:
Fix #123: This fixes the shattered coffee cup!
(orNo Bug: <message>
if no relevant ticket)NSLocalizableString()
Test Plan:
Screenshots:
Reviewer Checklist:
QA/(Yes|No)
release-notes/(include|exclude)
bug
/enhancement