Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

use cr62 download api #11466

Merged
merged 2 commits into from
Oct 13, 2017
Merged

use cr62 download api #11466

merged 2 commits into from
Oct 13, 2017

Conversation

bridiver
Copy link
Collaborator

fix #11326
requires brave/muon#342

I believe this PR will have to be modified for master, but the end result should be the same. Any other changes (file naming, etc..) in master should be replaced as this change already handles automatic renaming of files

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.

Test Plan:

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

if (state === 'completed') {
let finalSavePath = item && item.getSavePath()
let pdfDataURI = 'data:application/pdf;base64,' + data.toString('base64')
tab.downloadURL(pdfDataURI, true, savePath, (downloadItem) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't verify this works at the moment because printToPDF is broken in cr62

@darkdh darkdh mentioned this pull request Oct 12, 2017
8 tasks
app/pdf.js Outdated
let savePath = action.savePath
let openAfterwards = action.openAfterwards
const tabs = require('./browser/tabs')
const {fileUrl} = require('../../js/lib/appUrlUtil')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path should be ../js/lib/appUrlUtil

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed out a fix for that to this branch

@luixxiul luixxiul added the cr62 label Oct 12, 2017
@bbondy bbondy added this to the 0.20.x (Beta Channel) milestone Oct 13, 2017
@bbondy bbondy merged commit f228d78 into 0.19.x-c62 Oct 13, 2017
Copy link
Member

@darkdh darkdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@bbondy bbondy deleted the issue-11326-2 branch October 23, 2017 14:55
@NejcZdovc NejcZdovc modified the milestones: 0.20.x (Beta Channel), 0.19.x Hotfix 2 (Release channel) Oct 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants