Skip to content
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

[iOS] Handle non-passbook attachment downloads correctly #25651

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

kylehickinson
Copy link
Collaborator

@kylehickinson kylehickinson commented Sep 19, 2024

Resolves brave/brave-browser#41073

Submitter Checklist:

  • I confirm that no security/privacy review is needed and no other type of reviews are needed, or that I have requested them
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

From https://community.brave.com/t/downloaded-videos-on-ios/568738/4

  • Copy an instagram link (e.g. https://www.instagram.com/reel/DABSg8nJb4D/)
  • Visit snapinsta.app and submit the link to be downloaded
  • Click "Download" when it appears

@kylehickinson kylehickinson added CI/skip-android Do not run CI builds for Android CI/skip-macos-x64 Do not run CI builds for macOS x64 CI/skip-windows-x64 Do not run CI builds for Windows x64 CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-teamcity Do not run builds in TeamCity labels Sep 19, 2024
@kylehickinson kylehickinson requested a review from a team as a code owner September 19, 2024 14:40
@bompao108
Copy link

No no. It ain't fix nothing yet bro

@bompao108
Copy link

Still get nothing after finishing download video from Youtube and Tiktok
IMG_0465
IMG_0466
IMG_0467

@Brandon-T
Copy link
Contributor

Brandon-T commented Sep 20, 2024

Still get nothing after finishing download video from Youtube and Tiktok

Hi, can you please provide the steps you took to download the TikTok video?

I have tested this PR on Instagram and a few other websites and it downloads and saves to the downloads folder.

If you could provide the exact steps to reproduce the issue it would help tremendously.

@Uni-verse
Copy link
Contributor

Uni-verse commented Sep 20, 2024

Verified on iPhone 12 running iOS 18 using version 1.72 (27)

Case: snapinsta.app - PASSED

  • Went through the test steps below and ensured that file is downloaded successfully and shown in Downloads folder.
example example example
IMG_7380 IMG_7381 IMG_7382

Case: PDF download - PASSED

  • Ensured that downloading PDF files is working using Save to Files in share menu
example example
IMG_7384 IMG_7385

Case: Saving Image to Photos - PASSED

example example
IMG_7393 IMG_7395

Case: Add to Wallet - PASSED

example example
IMG_7387 IMG_7388

Case: Direct Download (unsplash) - PASSED

example example
IMG_7389 IMG_7390

Case: App Download - PASSED

example example
IMG_7391 IMG_7392

@hffvld
Copy link
Collaborator

hffvld commented Sep 20, 2024

Verified on iPhone 14 using version(s):

Device/OS: iPhone 14 / iOS 17.7
Brave build: 1.72 (27)
BraveCore: 1.72.27 (129.0.6668.59)

Direct Download Picture

STEPS:

  1. Launch Brave
  2. Go to https://unsplash.com/
  3. Download a random image > Verify

ACTUAL RESULTS:

  • Verified that downloading images directly using the Download button works as expected.

1 2 3
1 2 3
App Download

STEPS:

  1. Launch Brave
  2. Go to https://apkmirror.com/
  3. Download a random app > Verify

ACTUAL RESULTS:

  • Verified that downloading an app using the Download button works as expected.

1 2 3
1 2 3
Instagram Download

STEPS:

  1. Launch Brave
  2. Go to https://snapinsta.app/ > Paste the link https://www.instagram.com/p/DABAwvLM41w/?igsh=dmlndm1uM2kxb2pt
  3. Download an image > Verify

ACTUAL RESULTS:

  • Verified that downloading an image from https://snapinsta.app/ works as expected.

1 2 3
1 2 3
PDF download

STEPS:

  1. Launch Brave
  2. Go to https://basicattentiontoken.org/BasicAttentionTokenWhitePaper-4.pdf
  3. Save PDF > Verify

ACTUAL RESULTS:

  • Verified that saving PDF works as expected.

1 2 3
1 2 3
Adding ticket/pass to Apple Wallet

STEPS:

  1. Launch Brave
  2. Go to https://pub1.pskt.io/4wcEqRJZVWU7XGKbt6sXof on Desktop
  3. Scan QR code > Add to Wallet > Verify

ACTUAL RESULTS:

  • Verified that the pass can be downloaded and saved to Apple Wallet.

1 2 3
1 2 3
Song download

STEPS:

  1. Launch Brave
  2. Go to https://www.last.fm/ru/music/+free-music-downloads
  3. Download a song > Verify

ACTUAL RESULTS:

  • Verified that a song can be downloaded successfully.

1 2 3
1 2 3

@bompao108
Copy link

bompao108 commented Sep 20, 2024

Verified on iPhone 14 using version(s):

Device/OS: iPhone 14 / iOS 17.7
Brave build: 1.72 (27)
BraveCore: 1.72.27 (129.0.6668.59)

Direct Download Picture
App Download
Instagram Download
PDF download
Adding ticket/pass to Apple Wallet
Song download

Where u download this version of Brave ? I'm at 1.69.1 and it's the newest version on appstore

kjozwiak pushed a commit that referenced this pull request Sep 20, 2024
kjozwiak pushed a commit that referenced this pull request Sep 20, 2024
kjozwiak pushed a commit that referenced this pull request Sep 20, 2024
@kjozwiak
Copy link
Member

Verified on iPhone 14 using version(s):

Device/OS: iPhone 14 / iOS 17.7
Brave build: 1.72 (27)
BraveCore: 1.72.27 (129.0.6668.59)

Direct Download Picture
App Download
Instagram Download
PDF download
Adding ticket/pass to Apple Wallet
Song download

Where u download this version of Brave ? I'm at 1.69.1 and it's the newest version on appstore

@bompao108 it's on an internal build via TF (TestFlight). We just verified the above fix and merged it into 1.71.x, 1.70.x & 1.69.x. We'll be kicking off RC (Release Candidate) builds in a few moments. We're hoping to push the fixed build for Apple Review and start releasing it sometime today/tomorrow. But it depends on how long it takes Apple to approve the builds.

@bompao108
Copy link

Finally it works
Thank devs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-android Do not run CI builds for Android CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-macos-x64 Do not run CI builds for macOS x64 CI/skip-teamcity Do not run builds in TeamCity CI/skip-windows-x64 Do not run CI builds for Windows x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Downloads aren’t saving, files disappear after download
6 participants